Peti Protocol
Search
K

API: rfqQuote

Quote the Peti system to get the call data for Peti transaction submitting
post
https://cbridge-prod2.celer.app/v1/rfqQuote

Request Parameters

Name
Type
Description
price
Price
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

Name
Type
Description
srcTokenUsdPrice
String
source token usd price
dstTokenUsdPrice
String
destination token usd price
quote
Quote

Quote

Name
Type
Description
hash
String
The quote hash, uniq id to mark this quote.
srcToken
TokenInfo
source token
srcAmount
String
Input amount with source token decimal
dstToken
TokenInfo
Receiving token on destination chain
dstAmount
String
quote received amount
srcDeadline
Number(Second)
srcDepositPeriod (from rfqPrice API) + current timestamp
dstDeadline
Number(Second)
dstTransferPeriod (from priceRfq) + current timestamp in second
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