Skip to main content
POST
Get trade quote (EVM + Solana)
使用 NATIVE 關鍵字於 fromToken/toToken 來交易原生資產(ETH、SOL 等)。頻率限制(每使用者 15/分鐘)。僅 Solana 主網(不支援 devnet/testnet)。若 ERC20 提供 from,回傳 approvalNeededspender
若無法檢查 allowance,approvalNeeded 可能為 null。當上游省略 srcAmount 時,請求中的 amount 可能會回顯以利說明。

授權

x-api-key
string
header
必填

主體

application/json
chain
string
必填

EVM chain slug

fromToken
string
必填
toToken
string
必填
amount
string
必填

Amount in wei (decimal or 0x-hex)

from
string | null

Wallet address for allowance checks (optional)

includeGas
boolean | null

Include gas estimates (optional)

protocols
string | null

Comma-separated allowlist of protocols (optional)

excludeProtocols
string | null

Comma-separated blocklist of protocols (optional)

回應

Quote response

quote
object
必填