A: Interacting with Multichain (previously Anyswap) ROUTER will require 2 transactions.
1. A Contract Approve Transaction. (Approval of Token)
You must give Multichain ( Previously Anyswap ) contract permission to use your assets. You only have to do this once per token:
Video Explained:
🕑 Once Approval of Token complete, you can do a Cross-Chain via our frontend
2. A Cross-chain Transaction
This is how our Router Cross-Chain Transaction looks like:
More on How to Use - Multichain
Due to the way erc-20 token on Ethereum ( all EVM compatible chains ) are designed, in order to use a token (e.g. DAI, USDC, USDT, ETH) in a contract interaction, you cannot simply send the tokens along with your transaction as you would be able to with ETH.
Instead, the contract needs your approval to “take” the tokens from you. For example, when you want to bridge 100 DAI using AnySwap Protocol, the Multichain (previously Anyswap) smart contract needs your permission (approval) to take 100 DAI from your wallet and cross-chain it to other network.
* This is a one-time transaction only! You can enjoy your future cross-chain swap with same token as much as you want without approving that token again. Likewise, cross-chain other tokens, setting up a new wallet will require contract approval again!
Disclaimer:
This video tutorial is intended for general guidance and information purposes only for beginners participating in cryptocurrencies and DeFi. The contents of this article are not to be construed as legal, business, investment, or tax advice. You should consult with your advisors for all legal, business, investment, and tax implications and advice. Multichain (previously Anyswap) is not responsible for any lost funds. Please use your best judgment and practice due diligence before interacting with smart contracts.