Skip to main content
POST
/
quote
Get a quote
curl --request POST \
  --url https://bridge.polymarket.com/quote \
  --header 'Content-Type: application/json' \
  --data '
{
  "fromAmountBaseUnit": "10000000",
  "fromChainId": "137",
  "fromTokenAddress": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
  "recipientAddress": "0x17eC161f126e82A8ba337f4022d574DBEaFef575",
  "toChainId": "137",
  "toTokenAddress": "0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174"
}
'
{
"estCheckoutTimeMs": 25000,
"estFeeBreakdown": {
"appFeeLabel": "Fun.xyz fee",
"appFeePercent": 0,
"appFeeUsd": 0,
"fillCostPercent": 0,
"fillCostUsd": 0,
"gasUsd": 0.003854,
"maxSlippage": 0,
"minReceived": 14.488305,
"swapImpact": 0,
"swapImpactUsd": 0,
"totalImpact": 0,
"totalImpactUsd": 0
},
"estInputUsd": 14.488305,
"estOutputUsd": 14.488305,
"estToTokenBaseUnit": "14491203",
"quoteId": "0x00c34ba467184b0146406d62b0e60aaa24ed52460bd456222b6155a0d9de0ad5"
}

Body

application/json
fromAmountBaseUnit
string
required

Amount of tokens to send

Example:

"10000000"

fromChainId
string
required

Source Chain ID

Example:

"137"

fromTokenAddress
string
required

Source token address

Example:

"0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359"

recipientAddress
string
required

Address of the recipient

Example:

"0x17eC161f126e82A8ba337f4022d574DBEaFef575"

toChainId
string
required

Destination Chain ID

Example:

"137"

toTokenAddress
string
required

Destination token address

Example:

"0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174"

Response

Quote retrieved successfully

estCheckoutTimeMs
integer

Estimated time to complete the checkout in milliseconds

Example:

25000

estFeeBreakdown
object

Breakdown of the estimated fees

estInputUsd
number

Estimated token amount received in USD

Example:

14.488305

estOutputUsd
number

Estimated token amount sent in USD

Example:

14.488305

estToTokenBaseUnit
string

Estimated token amount received

Example:

"14491203"

quoteId
string

Unique quote id of the request

Example:

"0x00c34ba467184b0146406d62b0e60aaa24ed52460bd456222b6155a0d9de0ad5"