Skip to main content

Transfer of Tokens via the Reverse Verification Mechanism

function iDeposit(
uint256 partnerId,
bytes32 destChainIdBytes,
bytes calldata recipient,
address srcToken,
uint256 amount,
uint256 destAmount
) external payable {}

Voyager enables cross-chain transfers of multiple tokens via this function. Whenever a user wants to transfer tokens from a source chain to a destination chain, this function has to be called. After this function is invoked on the source chain, Voyager will handle the transfer of tokens to the user on the destination chain.

Parameters

partnerIdUnique ID for each partner who integrates this functionality and has a fee sharing model with Router. This helps them to track and analyze their cross-chain transactions easily.
destChainIdBytesNetwork IDs of the chains in bytes32 format. These can be found here.
recipientWallet address that will receive the tokens on the destination chain.
srcTokenAddress of the token that has to be transferred from the source chain.
amountDecimal-adjusted amount of the token that has to be transferred from the source chain.
destAmountMinimum amount of tokens expected to be received by the recipient on the destination chain. This can be achieved by subtracting the forwarder fee from the source chain amount.
info

You can estimate the forwarder fee using this API. Mark the checkLiquidity boolean value as true.