NATIVE keyword for fromToken/toToken to swap native assets (ETH, SOL, etc.). Requires Idempotency-Key header. Solana mainnet only. For EVM, approve token first if swap fails with allowance error.Authorizations
Headers
Provide a unique Idempotency-Key per user to ensure single submission.
Body
- EVM
- Solana
EVM chain slug.
Token or native address (0xEeee... for native)
Output token address (0x...).
Amount in wei (decimal or 0x-hex supported for EVM).
Optional sender wallet; defaults to user's default wallet for the chain.
Percentage (e.g., 1 = 1%). Optional; defaults to 1%.
Include gas estimates in the build (optional).
Comma-separated allowlist of protocols (optional).
Comma-separated blocklist of protocols (optional).
Response
Submission accepted
AFK transaction id for the submitted action.
Submission status.
SUBMITTED On-chain transaction hash/signature (may be null at submission time).
Direct link to the transaction on a chain explorer. Null until a hash/signature exists.
Human-readable chain name for display (e.g., Base, Ethereum, Solana).