Embedded Crosschain Swap Actions
Executing Destination Chain Actions
The Action Object Structure
{
"actions":[
{
"target": "0x...", // The contract or recipient address
"functionSignature": "function transfer(address,uint256)", // The function to call, or "" for native transfers
"args": [
// Array of arguments for the function, or [] for native transfers
{
"value": "1000", // Static value for an argument
"populateDynamically": false, // Whether to use the swap balance instead
"balanceSourceToken": "0x..." // Token to get the balance from if dynamic
}
],
"value": "0", // Static msg.value to send, in wei
"isNativeTransfer": false, // True for simple native currency transfers
"populateCallValueDynamically": false // True to use the entire swapped native balance as msg.value
}
]
}
Breaking Down the Action Object
Examples
Tracking Deposits
Last updated



