Execute a token swap 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.
Idempotency keys ensure API requests are executed only once within a 24-hour window.
ID of the wallet.
Input for executing a token swap.
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%).
Address to receive the output tokens. Defaults to the wallet address if not specified.
Swap initiated successfully.
Result of a token swap execution.
The ID of the wallet action.
The current status of the wallet action.
pending, succeeded, rejected, failed The ID of the wallet involved in the action.
Chain identifier.
Token address being sold.
Token address being bought.
Amount of input token in base units.
The steps of the wallet action. Only returned if ?include=action_steps is provided.
A wallet action step consisting of an EVM transaction.