Integrate RSP
Last updated
Was this helpful?
Last updated
Was this helpful?
RSP members (with existing channel_id
) can integrate RSP through the following three options:
Option 1 - Through
Option 2 - Through
Option 3 - Through
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.
Integrate Bifrost (Polkadot) vToken Mint API: vtokenminting_mint
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:
Construct a XCM batch call to call Bifrost-Polkadot API: slpx_mint
Let’s assume Alice wants to mint DOT to vDOT on Hydration, a utility.batchAll call is needed:
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.
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
: 0x7300080000e40b54020000000000000000000000000100000000
Check Bifrost Token indexes and decimals at .
Input your channel_id
(Apply you channel id via )
(Coming soon…)
Hydration called Bifrost SLPx via XCM and minted 1M DOT to vDOT:
Inside of this preimage, it contained the to call SLPx mint for vDOT.
, which includes several calls inside
Check Bifrost Token indexes and decimals at .
Bifrost Dapp frontend has adapted to the RSP. Attach your channel ID at the end of , for instance, . 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 will be counted as the effective minting amount of Staking Rewards.