Buy/Checkout API
Enables buy or checkout usecase based on the request.
Last updated
Was this helpful?
Enables buy or checkout usecase based on the request.
Last updated
Was this helpful?
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.
Steps to follow:
Generate Deposit Address
Use the deposit-address
endpoint to:
Obtain a precise quote for the requested buy/checkout parameters.
Determine if the current configuration is viable.
Receive deposit parameters and a requestId
for tracking purposes.
Transaction Notification for Transfers from EOAs
If transferring funds from an Externally Owned Account (EOA), inform the Aarc system by calling the schedule-transaction
endpoint. Provide transaction details along with the requestId
.
Track Transaction Status
Use the request-status
endpoint to monitor the progress of your transaction. The endpoint returns detailed information about the transaction state, allowing for real-time tracking.
Check Supported Tokens and Chains (optional)
Before initiating a transaction, verify if the token and chain are supported by Aarc using the v3/supported-chains
and v3/supported-tokens
endpoints. This ensures compatibility with the Aarc system.
/v3/deposit-address
onramp
, cex
, wallet
time
, fee
, value
/v3/schedule-transaction
/v3/request-status/{requestId}
/v3/supported-chains
/v3/supported-tokens