Get a price quote for swapping tokens within a wallet.
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.
Chain identifier (e.g., "eip155:1" for Ethereum mainnet).
Token address to sell, or "native" for the chain's native token.
Token address to buy, or "native" for the chain's native token.
Amount in base units (e.g., wei for ETH).
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.