In this document, I'll demonstrate how you can transfer CERE tokens from the Cere testnet to the Binance Smart Chain (BSC) testnet using Hyperbridge. Let's get started!
<aside> 💡
Don’t have Testnet $CERE? To get started, you will need some $CERE testnet tokens, which you can get here from Bren on Telegram or Discord ; We recommend using a clean, new wallet for the test.
Or you can use the development accounts (if they are not empty):
go to Cere Testnet Explorer
Click on “Accounts” → Accounts
Choose a development account eg Alice and click send </aside>
Navigate to the Developer >> Extrinsics Section: Open the Cere Testnet Explorer and go to the Developer tab, then select Extrinsics from the dropdown menu.
Select an Account for Signing the Transaction: From the Account dropdown menu, choose the account you want to use to sign the transaction. Ensure the account has sufficient funds to execute the transaction.
Choose the TokenGateway
Extrinsic:
In the module section, select TokenGateway and then choose the Teleport function.
Input the Required Parameters:
Asset ID: Enter 0
since the native asset ID for CERE tokens has been set to 0
in the runtime.
Destination: Select EVM as the host machine.
Evm: u32: Enter 97
, which is the chain ID for the BSC testnet.
Recipient Address: Provide the recipient's address in H256 format. Ensure the address is compatible with the BSC network.
<aside> 💡
E.g. if your address is 0x97BXxZAD9F96A47A5EC1lo3589b0f99d1AaB96c4
Then take everything behind 0x → 97BXxZAD9F96A47A5EC1lo3589b0f99d1AaB96c4
And add it to this: 0x000000000000000000000000
Final result: 0x00000000000000000000000097BXxZAD9F96A47A5EC1lo3589b0f99d1AaB96c4
</aside>
Amount: Enter the number of tokens you wish to transfer in u128 format
<aside> 💡
E.g. if you want to transfer 800 $CERE then you need to write it as: 8000000000000
So it’s the number you want (eg 800) plus 10 zeros
</aside>
Timeout: Leave this field as 0
.
Token Gateway Address:
0xFcDa26cA021d5535C3059547390E6cCd8De7acA6
Relayer Fee:
0
for this demo.Submit the Transaction:
Track the Transaction on BSCScan:
Once the transaction is submitted, you can track its status by navigating to BSCScan. Use the Token Gateway address to find the corresponding transaction.
Check Internal Transactions:
In BSCScan, go to the Internal Transactions section. This will show the transfer and confirm that the tokens have been successfully teleported to the recipient address.
For example: https://testnet.bscscan.com/token/0xf310641b4b6c032d0c88d72d712c020fca9805a3