Skip to main content
POST
Get trade quote (EVM + Solana)
使用 NATIVE 关键字于 fromToken/toToken 来交易原生资产(ETH、SOL 等)。频率限制(每用户 15/分钟)。仅 Solana 主网(不支持 devnet/testnet)。若 ERC20 提供 from,返回 approvalNeededspender

授权

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
必填