Deposit API
This is the single API required to get the calldata for your deposit transactions.
Last updated
This is the single API required to get the calldata for your deposit transactions.
Last updated
The /deposit-calldata
endpoints get you the best way to deposit funds from your user's balance into your application while utilising the user's assets for the gas fee.
Let's consider that your application wants to accept TokenA on ChainA.
There are different scenarios where this endpoint will handle everything for you.
Scenarios | API Response |
---|---|
NOTE: This currently works with a SINGLE TOKEN ONLY, which means you can deposit a single token in your application.
This API only provides the calldata. Learn how to execute the calldata here.
There are some more endpoints provided here.
Users have TokenA on ChainA
Calldata generated for Direct Transfer
Users have TokenB on ChainA
Calldata generated for Swap on ChainA
Users have TokenA on ChainB
Calldata generated for bridging TokenA from ChainB to ChainA
Users have TokenB on ChainB
Calldata generated for swapping and bridging the TokenB from ChainB to TokenA on ChainA.
To get the deposit call data for the provided parameters.
Response
true