Forwarder Flow
AARC SDK supports the migrations of tokens with gas fees paid in stable tokens.
Last updated
AARC SDK supports the migrations of tokens with gas fees paid in stable tokens.
Last updated
The executeMigrationForward
function of our SDK implements a forwarder flow that enables the migration of tokens between wallets or contracts with a unique feature: the gas fees are paid using stable tokens instead of the native blockchain currency. This method is tailored for users who prefer or need to utilize stable tokens to cover transaction costs, offering a practical solution in volatile market conditions.
executeMigrationForward
accepts the following parameters:
Parameter | Type | Description |
---|---|---|
NOTE:
If transferTokenDetails
is not passed, then all the assets will be transferred.
If you face any trouble, feel free to reach out to our engineers in the Telegram support group.
Token | Address |
---|---|
Token | Address |
---|---|
Token | Address |
---|---|
Token | Address |
---|---|
Token | Address |
---|---|
senderSigner
ethers.Signer
Signer object obtained from ethers
chainId
number
The chain id of the current network.
receiverAddress
string
The address of the recipient.
transferTokenDetails
[OPTIONAL]
TransferTokenDetails[]
The object specifies tokens with respective amounts to transfer or, in the case of NFTs tokenIds need to be
mentioned
senderSigner
WalletClient
Wallet client object obtained from viem
chainId
number
The chain id of the current network.
account
JSON RPC Account
A JSON RPC account generated using viem and window.ethereum
receiverAddress
string
The address of the recipient.
transferTokenDetails
[OPTIONAL]
TransferTokenDetails[]
The object specifies tokens with respective amounts to transfer or, in the case of NFTs tokenIds need to be
mentioned
USDC
0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48
USDT
0xdac17f958d2ee523a2206206994597c13d831ec7
BUSD
0x4fabb145d64652a948d72533023f6e7a623c7c53
DAI
0x6b175474e89094c44da98b954eedeac495271d0f
UNI
0x1f9840a85d5af5bf1d1762f925bdaddc4201f984
USDC
0x2791bca1f2de4661ed88a30c99a7a9449aa84174
USDT
0xc2132d05d31c914a87c6611c10748aeb04b58e8f
BUSD
0x9c9e5fd8bbc25984b178fdce6117defa39d2db39
DAI
0x8f3cf7ad23cd3cadbd9735aff958023239c6a063
UNI
0xb33eaad8d922b1083446dc23f610c2567fb5180f
USDC
0xfd086bc7cd5c481dcc9c85ebe478a1c0b69fcbb9
USDT
0xaf88d065e77c8cc2239327c5edb3a432268e5831
DAI
0xda10009cbd5d07dd0cecc66161fc93d7c9000da1
UNI
0xfa7f8980b0f1e64a2062791cc3b0871572f1f7f0
USDC
0x7f5c764cbc14f9669b88837ca1490cca17c31607
USDT
0x94b008aa00579c1307b0ef2c499ad98a8ce58e58
DAI
0xda10009cbd5d07dd0cecc66161fc93d7c9000da1
USDC
0xDDAfbb505ad214D7b80b1f830fcCc89B60fb7A83
USDT
0x4ECaBa5870353805a9F068101A40E0f32ed605C6