

Gas price can be adjusted to speed up transaction verification. Press the "Write" button to send the transaction. Wad (uint256): the amount of tokens to transfer in wei Next, click on Write Contract and go to the approve method. The mediator contract uses the transferFrom functionality of the ERC20 token contract to lock the tokens it must be explicitly approved to perform this operation.įirst, connect to the Web3 provider (MetaMask or other). Approve the mediator contract to transfer tokens.The MetaMask/NiftyWallet must be unlocked and rights to access the account must be granted for BinanceScan.įor demonstration purposes we transfer Sai tokens.The account is funded with some ether to cover gas fees.The account performing the actions owns some amount of an ERC20 token on BSC.The transaction sent by a validator to BSC will execute the request to unlock the tokens. After that, they will collect confirmations on Gnosis chain and transfer them to BSC. Once the transaction is included in a block, the Arbitrary Message Bridge validators will wait for one more block. This is typically completed in a few seconds.
#Binance smart chain bridge verification
Once the transaction is confirmed in MetaMask, wait for verification by the Gnosis chain validators. Gas price should be 1 GWei, adjust if needed. In the transferAndCall method enter the multi-token mediator contract address on Gnosis chain ( 0x59447362798334d3485c64d1e4870fde2ddc0d75), amount of tokens to transfer, and "0x" in the _data field. Go to the "Write Proxy" tab of the token contract in BlockScout The token contract deployed by the mutli-token mediator supports the ERC677 standard, so instead of calling approve and relayTokens, a single method transferAndCall can be used to transfer tokens to the mediator contract and notify it regarding this action at the same time. Call the transferAndCall method to transfer tokens.Token contracts deployed as part of the multi-token mediator operations are not verified automatically, so if the token does not allow read and write in the block explorer, follow the steps to verify the contract before starting. Make sure that the token contract is verified in BlockScout.
