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:
Parameter | Type | Description |
---|---|---|
| ethers.Signer | The signer object from ethers |
| number | Source chain id |
| string | address of initial token on source chain |
| number | Chain id of the destination chain |
| string | Address of the final token on the destination chain. |
| string | Amount of the initial token on the source chain. |
| string | Address of the sender on the source chain. |
| string | Address of the receiver on the destination chain. |
| string | Default route is |
| boolean | Default is set to |
Function call
performDeposit
function will initiate all required transactions on source chain such as getting an approval and sending tokens for bridging & swapping.
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