Custom cross-chain call
Call your contract with custom payload on different destination chain
The getDepositAddress
function allows developers to interact with contracts on a different destination chain. For instance, if a user holds funds on `Arbitrum` but needs to call a contract on Polygon
, they can achieve this seamlessly by generating a deposit address with getDepositAddress
and submitting the payload on-chain.
Expected parameters
getDepositAddress
accepts following parameters.
Function Call
The getDepositAddress
function generates an address based on the provided payload, which must then be funded and submitted on-chain.
Using onramp for contract call
For more comprehensive implementation, refer cookbook example.
Last updated