pending status and can be polled for confirmation.
View the full API reference for the swap endpoint.
Usage
- REST API
To execute a swap via REST API, make a
POST request to:Body
Chain identifier in CAIP-2 format (e.g.,
eip155:8453 for Base). See supported chains.Token address to sell, or
"native" for the chain’s native token.Token address to buy, or
"native" for the chain’s native token. Must be different from input_token.Amount in base units (e.g., wei for ETH).
Whether
amount refers to the input or output token. Defaults to exact_input.Maximum slippage tolerance in basis points (e.g.,
50 for 0.5%). If omitted, auto-slippage is used.Address to receive the output tokens. Defaults to the wallet address if not specified.
Response
The response includes the following fields:The ID of the wallet action.
The current status of the wallet action.
The ID of the wallet involved in the swap.
Chain identifier.
Token address being sold.
Token address being bought.
Amount of input token in base units.
Example
Wallets with explicit owners or signers must provide an authorization signature as a request header.Example response

