Integrate RSP
Last updated
Last updated
RSP members (with existing channel_id
) can integrate RSP through the following three options:
Option 1 - Through Bifrost SLP API
Option 3 - Through Bifrost Dapp Portal
Target Audience: Your front end can directly connect to the Bifrost (Polkadot / Kusama) parachain, such as Wallets and Dapps, etc.
Get your UI & UX ready.
Target Audience: Blockchains that can call or deploy Bifrost SLPx across chains, such as Hydration, Moonbeam, Astar, Manta, Ethereum (coming soon), Base etc.
Get your UI & UX ready.
Integrate SLPx API in your corresponding environment:
Your Dapp deployed on Ethereum Mainnet (Coming soon…)
Hydration democracy called Bifrost SLPx via XCM and minted 1M DOT to vDOT: https://hydration.subscan.io/referenda/138?tab=preimage
Inside of this preimage, it contained the call data to call SLPx mint for vDOT.
Construct a XCM batch call to call Bifrost-Polkadot API: slpx_mint
The cases below demonstrate the workflow of how to mint and redeem vToken on Hydration (parachain) via Bifrost SLPx, which leveraged by XCM.
Let’s assume Alice wants to mint DOT to vDOT on Hydration, a utility.batchAll call is needed:
Extrinsic Call Data, which includes several calls inside
Call 1:
Call xToken sending 1 DOT to Alice’s derived account on Bifrost.
Call 2:
Call xToken sending 0.02 BNC to Alice’s derived account on Bifrost.
Check Bifrost Token indexes and decimals at here.
Call 3:
Execute slpx_mint
Why do I need to send 0.02 BNC when minting/redeeming DOT?
Because after the user on Hydration sends an XCM transact with the command to Bifrost, it needs the derived address of the Hydration user to perform the SLPx mint operation, and there is no asset in the derived address, which will cause the transaction fail.
How that derived account is being calculated?
Target Audience: Any entities need a Bifrost Dapp Portol to direct users by attached with your channel_id
.
Make sure you already have a channel_id
Generate your Bifrost Dapp Portal
Bifrost Dapp frontend has adapted to the RSP. Attach your channel ID at the end of app.bifrost.io, for instance, https://app.bifrost.io/?channel=[channel_id]. All stakes via this link will be counted as your valid minting.
For example, the channel_id of Staking Rewards is 1, the vToken minting of users who enter the Bifrost Dapp through the https://app.bifrost.io/?channel=1 will be counted as the effective minting amount of Staking Rewards.