Interaction Flow With Fees
Go trhough the complete deployment flow and send an incentivized message.
Now we have all the Smart Contract 📜 set we can start sending incentivized cross-chain messages. Now let complete the flow
- Deploy sender contract on C-Chain
- Deploy receiver contract on Dispatch
- Approve the sender contract to spend ERC20 funds from the message sender address
- Send the message
Approve ERC20 Token Expense
👩 The Message Sender (User) requires to approve the Cross-Avalanche L1 dApp as a spender on the ERC20 contract to be used as fee. We'll approve 0.0005 tokens (500000000000000 wei) from your total supply of 1,000,000 tokens which matches the fee amount set in the sender contract.
Verify message was received on Avalanche L1
Success! The message was received on the destination chain while incentivizing the Relayer.
Is this guide helpful?