Get a price quote for swapping tokens within a wallet.
Documentation Index
Fetch the complete documentation index at: https://docs.privy.io/llms.txt
Use this file to discover all available pages before exploring further.
Basic Auth header with your app ID as the username and your app secret as the password.
ID of your Privy app.
Request authorization signature. If multiple signatures are required, they should be comma separated.
ID of the wallet.
Input for requesting a token swap quote.
Amount in base units (e.g., wei for ETH). Must be a non-negative integer string.
1 - 78^\d+$The input side of a swap request, including token and chain.
The output side of a swap quote request.
Whether the amount refers to the input token (exact_input) or output token (exact_output).
exact_input, exact_output Maximum slippage tolerance in basis points (e.g., 50 for 0.5%). If omitted, auto-slippage is used.
Swap quote retrieved successfully.
Pricing data for a token swap.
Chain identifier.
Token address being sold.
Token address being bought.
Amount of input token in base units.
Estimated amount of output token in base units.
Minimum output amount accounting for slippage, in base units.
Estimated gas cost in base units of the native token.