Direct Deposit
The performDeposit
function in our SDK returns the transaction data only by selecting the best way to deposit the funds. This functionality ensures optimal transaction efficiency and enhances user convenience.
Expected parameters
performDeposit
accepts the following parameters:
senderSigner
: The signer object from ethers.fromChainId
: Chain id of the source chainfromTokenAddress
: Address of the initial token on the source chain.toChainId
: Chain id of the destination chaintoTokenAddress
: Address of the final token on the destination chain.fromAmount
: Amount of the initial token on the source chain.userAddress
: Address of the sender on the source chain.recipient
: Address of the receiver on the destination chain.destinationPayload
[OPTIONAL]: If you want to interact with the contract directly. NOTE: If usingdestinationPayload
, then therecipient
should be the contract addresss.destinationGasLimit
[OPTIONAL]: The gas limit on the destination chain.routeType
[OPTIONAL]: The type of route to be preferred. It can beValue
,Fee
andTime
.estimateGas
[OPTIONAL]: Default is set totrue
. If you don't want to estimate gas on the backend.
Function call
Response
The response from the performDeposit
will be:
Support
If you face any trouble, feel free to reach out to our engineers in the Telegram support group.
Last updated