मुख्य सामग्री पर जाएं
POST
Get trade quote (EVM + Solana)
नेटिव एसेट्स (ETH, SOL, आदि) के व्यापार के लिए fromToken/toToken में NATIVE कीवर्ड का उपयोग करें। रेट सीमित (प्रति उपयोगकर्ता 15/मिनट)। केवल Solana mainnet (devnet/testnet समर्थित नहीं)। यदि ERC20 के साथ from प्रदान की गई है, तो approvalNeeded और spender लौटाता है।

प्राधिकरण

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
आवश्यक