getCheckoutTransactionQuote
Fetches a conversion quote for a checkout transaction. The quote includes fee breakdowns and the signing payload needed for on-chain execution. CallattachCheckoutTransactionSource before requesting a quote to specify the source wallet and chain.
Usage
Parameters
| Parameter | Type | Description |
|---|---|---|
transactionId | string | The checkout transaction ID returned by createCheckoutTransaction. |
fromTokenAddress | string | The contract address of the token the user is paying with. |
slippage | number (optional) | Maximum allowed slippage as a decimal (e.g., 0.005 for 0.5%). |
Returns
Promise<CheckoutTransaction> - The updated transaction with quote data populated:
Examples
Display quote to user
With custom slippage
Related
attachCheckoutTransactionSource- Attach a wallet source (call before getting a quote)submitCheckoutTransaction- Submit after reviewing the quoterequiresConversion- Check if a token swap is needed