Prerequisites
Before starting a checkout flow, you need acheckoutId. Create one by calling the Create a checkout API endpoint:
id field — use this as the checkoutId when calling createCheckoutTransaction.
Supported Chains
The checkout flow supports the following chains:- BTC
- EVM
- SOL
- SUI
| Name | ID |
|---|---|
| Base Sepolia Testnet | "84532" |
| Arbitrum Sepolia Testnet | "421614" |
| Arc Testnet | "5042002" |
| OP Sepolia Testnet | "11155420" |
Overview
The checkout flow follows these steps:- Create a transaction with
createCheckoutTransaction - Attach the source wallet with
attachCheckoutTransactionSource - Quote the conversion with
getCheckoutTransactionQuote - Submit the transaction with
submitCheckoutTransaction(prepares, signs, and broadcasts) - Poll for completion with
getCheckoutTransaction
Full example
Handling cancellation and errors
Polling for status
After submission, pollgetCheckoutTransaction to track progress through execution and settlement states:
Related
createCheckoutTransaction- Create a transactionattachCheckoutTransactionSource- Attach source walletgetCheckoutTransactionQuote- Get a conversion quotesubmitCheckoutTransaction- Submit for signing and broadcastgetCheckoutTransaction- Poll transaction statecancelCheckoutTransaction- Cancel a transaction