NATIVE 关键字于 fromToken/toToken 来交换原生资产(ETH、SOL 等)。需要 Idempotency-Key 头。仅 Solana 主网。对于 EVM,如兑换因 allowance 错误失败,请先批准代币。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).