Skip to main content
POST
Get a quote

请求体

application/json
fromAmountBaseUnit
string
必填

Amount of tokens to send

示例:

"10000000"

fromChainId
string
必填

Source Chain ID

示例:

"137"

fromTokenAddress
string
必填

Source token address

示例:

"0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359"

recipientAddress
string
必填

Address of the recipient

示例:

"0x17eC161f126e82A8ba337f4022d574DBEaFef575"

toChainId
string
必填

Destination Chain ID

示例:

"137"

toTokenAddress
string
必填

Destination token address

示例:

"0xC011a7E12a19f7B1f670d46F03B03f3342E82DFB"

响应

Quote retrieved successfully

estCheckoutTimeMs
integer

Estimated time to complete the checkout in milliseconds

示例:

25000

estFeeBreakdown
object

Breakdown of the estimated fees

estInputUsd
number

Estimated token amount received in USD

示例:

14.488305

estOutputUsd
number

Estimated token amount sent in USD

示例:

14.488305

estToTokenBaseUnit
string

Estimated token amount received

示例:

"14491203"

quoteId
string

Unique quote id of the request

示例:

"0x00c34ba467184b0146406d62b0e60aaa24ed52460bd456222b6155a0d9de0ad5"