This flow is for first-party conversions only: the source and destination, whether a wallet or a bank account, must both be yours. It is not available for paying third parties.
API flow
1
Get a quote
Specify the input asset, the output asset, and exactly one amount. Source and destination are optional. Save the
quoteId of the quote you choose. See Get Quote.2
Execute the quote
Create a transaction from the
quoteId before the quote expires. See Execute Quote.3
Approve the transaction
The new transaction is
PENDING until approved. Get the approval message, sign it, and submit the approval. The SDK’s createTransactionFromIntent() does this for you. See Approvals.4
Track the transaction
Use Retrieve Transaction or webhooks to track it until it reaches
COMPLETED, FAILED, or DECLINED.