API: rfqQuote
Quote the Celer Intent system to get the call data for Celer Intent transaction submitting
POST
https://cbridge-prod2.celer.app/v1/rfqQuote
Request Body
price*
JSON
refer to the Price Table
mmId*
String
market marker uniq id
sender*
String
user wallet address
receiver*
String
wallet address who receive the token on destination chain
refundTo*
String
refund address when source transaction failed
srcDeadline*
Number
srcDepositPeriod (price struct) + current timestamp
dstDeadline*
Number
dstTransferPeriod (price struct) + current timestamp
srcNative*
Bool
true when source token is a native token
dstNative*
Bool
true when destination receive token is a native token
// Response example
{
"srcTokenUsdPrice": 1,
"dstTokenUsdPrice": 1,
"quote": {
"hash": "0x99f8c9969000a8adca8282d278853dcbd822f48873152b2c951317173d656eb1",
"srcToken": {
"chainId": 5,
"symbol": "USDC",
"address": "0xCbE56b00d173A26a5978cE90Db2E33622fD95A28",
"decimals": 6,
"name": "USD Coin",
"logoUri": "https://get.celer.app/cbridge-icons/USDC.png"
},
"srcAmount": "100000000",
"srcReleaseAmount": "99900000",
"dstToken": {
"chainId": 97,
"symbol": "USDC",
"address": "0x855fC87f7F14Db747ef27603b02bAe579ba947B6",
"decimals": 6,
"name": "",
"logoUri": ""
},
"dstAmount": "98826590",
"srcDeadline": 1665563808,
"dstDeadline": 1665564278,
"nonce": 718699599,
"sender": "0x82571c922D3FAaf48df53C74bB0f116e48C34f93",
"receiver": "0x82571c922D3FAaf48df53C74bB0f116e48C34f93",
"refundTo": "0x82571c922D3FAaf48df53C74bB0f116e48C34f93",
"mmAddr": "0x58b529F9084D7eAA598EB3477Fe36064C5B7bbC1"
}
}
Request Parameters
mmId
String
market marker uniq id
sender
String
user wallet address
receiver
String
wallet address who receive the token on destination chain
refundTo
String
refund address when source transaction failed
srcDeadline
Number(Second)
srcDepositPeriod (from priceRfq) + current timestamp in second
dstDeadline
Number(Second)
dstTransferPeriod (from priceRfq) + current timestamp in second
srcNative
Bool
true when source token is a native token
dstNative
Bool
true when destination receive token is a native token
Response Parameters
srcTokenUsdPrice
String
source token usd price
dstTokenUsdPrice
String
destination token usd price
Quote
hash
String
The quote hash, uniq id to mark this quote.
srcAmount
String
Input amount with source token decimal
dstAmount
String
quote received amount
nonce
Number
nonce for rfq contract transaction calling
sender
String
sender address
receiver
String
receive address
refundTo
String
refund address when source transaction failed
mmAddr
String
market marker address
Last updated