Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

API: rfqQuote

POST https://cbridge-prod2.celer.app/v1/rfqQuote

Request Body

NameTypeDescription
price*JSONrefer to the Price Table
mmId*Stringmarket marker uniq id
sender*Stringuser wallet address
receiver*Stringwallet address who receive the token on destination chain
refundTo*Stringrefund address when source transaction failed
srcDeadline*NumbersrcDepositPeriod (price struct) + current timestamp
dstDeadline*NumberdstTransferPeriod (price struct) + current timestamp
srcNative*Booltrue when source token is a native token
dstNative*Booltrue 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

NameTypeDescription
pricePrice
mmIdStringmarket marker uniq id
senderStringuser wallet address
receiverStringwallet address who receive the token on destination chain
refundToStringrefund address when source transaction failed
srcDeadlineNumber(Second)srcDepositPeriod (from priceRfq) + current timestamp in second
dstDeadlineNumber(Second)dstTransferPeriod (from priceRfq) + current timestamp in second
srcNativeBooltrue when source token is a native token
dstNativeBooltrue when destination receive token is a native token

Response Parameters

NameTypeDescription
srcTokenUsdPriceStringsource token usd price
dstTokenUsdPriceStringdestination token usd price
quoteQuote

Quote

NameTypeDescription
hashStringThe quote hash, uniq id to mark this quote.
srcTokenTokenInfosource token
srcAmountStringInput amount with source token decimal
dstTokenTokenInfoReceiving token on destination chain
dstAmountStringquote received amount
srcDeadlineNumber(Second)srcDepositPeriod (from rfqPrice API) + current timestamp
dstDeadlineNumber(Second)dstTransferPeriod (from priceRfq) + current timestamp in second
nonceNumbernonce for rfq contract transaction calling
senderStringsender address
receiverStringreceive address
refundToStringrefund address when source transaction failed
mmAddrStringmarket marker address