Mint/Redeem vToken without Dapp
Last updated
Last updated
This tutorial will guide you through vToken minting and redemption without using the Bifrost Dapp, or in case the Bifrost Dapp is temporarily unavailable.
By using Polkadot.JS, you can directly interact with Bifrost parachain, calling specific functions such vToken minting or redemption. Choose the environment below, depends on where your assets at:
NOTE: Decimal means how many "0" follows 1 Token. E.g, DOT or vDOT decimal is 10, so 1 DOT = 10,000,000,000 which by followed up with ten "0".
DOT
Token2, 0
10
-
vDOT
vToken2, 0
10
0-28
GLMR
Token2, 1
18
-
vGLMR
vToken2, 1
18
0-7
ASTR
Token2, 3
18
-
vASTR
vToken2, 3
18
0-10
FIL
Token2, 4
18
-
vFIL
vToken2, 4
18
0-520
MANTA
Token2, 8
18
-
vMANTA
vToken2, 8
18
-
BNC
Native, BNC
12
-
vBNC
vToken, BNC
12
0-7
NOTE: Decimal means how many "0" follows 1 Token. E.g, KSM or vKSM decimal is 12, so 1 KSM = 1,000,000,000,000 which by followed up with twelve "0".
KSM
Token, KSM
12
-
vKSM
vToken, KSM
12
0-7
MOVR
Token, MOVR
18
-
vMOVR
vToken, MOVR
18
0-2
Quick calls can help you quickly construct the transactions, but overview the details of each step in tutorials is strongly suggested.
All the quick calls below had constructed with right decimals with 1 Token as cases, so you can just replace the 1st number to how many acutal tokens that you want to mint or redeem , so it works.
For example, if the value is 10,000,000,000 in the case below, and you want to mint or redeem 15 tokens, simply replace 1 with 15 so that it becomes 150,000,000,000 with the correct decimals.
vDOT
vGLMR
vASTR
vBNC
vFIL
vMANTA
vKSM
vMOVR
Please make sure you select the right chain of Polkadot JS before you follow up with the following process, it depends on what vToken you want to mint, check above section at Where to do?.
Selet Extrinsics
Select which address that you want to mint vToken, and construct vtokenminting
, mint
as below. (make sure you have BNC in balance to pay for transaction fee)
Fill up what token that you want to mint for, we take an example as using 1 DOT for vDOT minting here. (Check Token Index Chart to find what to put here.)
Since DOT index is Token2, 0, so we put Token2 in tokenid
, and put 0 in token2:u8
.
Since DOT decimal is 10, so we put 10,000,000,000 in tokenAmount
You can put anything in remark
.
Submit and sign transaction. (make sure you have wallet extension installed)
Wait for transction processing and check the right corner, green means succeed, red means failed.
Check your balance by select Chain State
Select tokens
, accounts,
and input what token balance that you are checking for. In the above case, we used DOT to mint vDOT, so we want to check my vDOT balance here.
Please make sure you select the right chain of Polkadot JS before you follow up with the following process, it depends on what vToken you want to mint, check above section at Where to do?.
Selet Extrinsics
Select which address that you want to redeem vToken, and construct vtokenminting
, redeem
as below. (make sure you have BNC in balance to pay for transaction fee)
Fill up what token that you want to redeem for, we take an example as using 0.4 vDOT redeeming DOT here. (Check Token Index Chart to find what to put here.) NOTE: The minimum redeem for vDOT is 0.4 vDOT
Since vDOT index is vToken2, 0, so we put vToken2 intokenid
, and put 0 in vtoken2:u8
.
Since vDOT decimal is 10, so we put 4,000,000,000 in tokenAmount
Submit and sign transaction. (make sure you have wallet extension installed)
Wait for transction processing and check the right corner, green means succeed, red means failed.
Wait for redemption period and receive Token back. Check corresponding redemption period of each vToken above.
1