Create a cross-chain transaction
In this example, we are going to deposit 1 ETH liquidity in Aave on Base using USDC on Arbitrum.1
Build your destination transaction.
We’ll use helper functions from Viem; however, you can use your preferred library.
2
Configure the transaction request
Cross-chain calls can handle all non-permissioned functions. If your function
includes a
Calldata Transaction Configmsg.sender check, please consider updating it to a multi-chain
compatible sender authentication method based on this
guide.3
Generate the transaction
Please visit the Get Action API reference for type definitions, including the
ActionRequest and ActionResponse. This API endpoint will return a transaction object we will use to actually execute this transaction.That’s it! You now have a transaction you can broadcast on your source
chain. Please see the swap broadcast flows
for how you can send this transaction on chain.