使用先前的報價或內嵌建構在 EVM 或 Solana 上執行代幣兌換。
NATIVE 關鍵字於 fromToken/toToken 來交換原生資產(ETH、SOL 等)。需要 Idempotency-Key 標頭。僅 Solana 主網。對於 EVM,如兌換因 allowance 錯誤失敗,請先批准代幣。Provide a unique Idempotency-Key per user to ensure single submission.
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).
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).