API: rfqQuote
Quote the Peti system to get the call data for Peti transaction submitting
POST
https://cbridge-prod2.celer.app/v1/rfqQuote
Request Body
Name | Type | Description |
---|---|---|
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 |
Request Parameters
Name | Type | Description |
---|---|---|
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
Name | Type | Description |
---|---|---|
hash | String | The quote hash, uniq id to mark this quote. |
srcToken | source token | |
srcAmount | String | Input amount with source token decimal |
dstToken | 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 |
Last updated