getDepositAddress function allows developers to obtain a deposit address for cross-chain transactions, enabling seamless transfer of assets between different blockchain networks.
Expected parameters
| Parameters | Type | Description |
|---|---|---|
contractPayload | string | The encoded contract call data for the transaction. |
fromToken | object | Object containing details about the source token:
|
fromAmount | string | Amount of tokens to transfer. |
transferType | TransferType | Type of transfer (e.g., WALLET). |
destinationChainId | string | Chain ID of the destination network. |
destinationTokenAddress | string | Contract address of the destination token. |
toAmount | string | Amount of tokens to receive on destination chain. |
destinationRecipient | string | Address to receive the tokens on destination chain. |
targetCalldata | string | Contract call data for the transaction. |
fromAddress | string | Source wallet address. |
Function call
Response
The response from thegetDepositAddress will contain the deposit address and related information for the cross-chain transaction.
