Skip to main content
POST
The same quote as GET /evm/quote, with the parameters in a JSON body. Guide: EVM swaps.

Authorizations

x-api-key
string
header
required

Body

application/json
chain
required

eth, bsc, base or robinhood (also ethereum, bnb), or the chain id as a number or a string. Alias chainId

Example:

"base"

inputMint
string
required

Token you spend

Example:

"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"

outputMint
string
required

Token you receive; different from inputMint

Example:

"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"

amount
required

What you spend, a uint256 in the token's smallest unit: a decimal string (any size up to 2^256 − 1) or a JSON integer (up to 2^64 − 1). No sign, fraction or exponent; 0 is 400 declined zero_amount

swapMode
enum<string>
default:ExactIn

ExactOut is 400

Available options:
ExactIn,
exactIn
slippageBps
default:50

0–10000: the floor is outAmount × (10000 − slippageBps) / 10000, rounded down

maxHops
default:2

1 direct only, 2 through at most one intermediate token, 3 two. 0 counts as 1, more than 3 as 3

onlyDirectRoutes
boolean
default:false

true is maxHops 1

dexes

Only these venues: dex labels or venue ids from /evm/venues. Alias includeDex

excludeDexes

Never these venues. Alias excludeDex

platformFeeBps

Only 0: no platform fee on EVM

Response

The quote (live answers of the public router)

inputMint
string
required

Lower case; the native coin is 0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee

inAmount
string
required

What you spend: the amount asked

outputMint
string
required
outAmount
string
required

What the route gives at the quote's block, in base units of outputMint, before any tax the token itself takes

otherAmountThreshold
string
required

The floor the swap will enforce on chain: outAmount × (10000 − slippageBps) / 10000, rounded down (inAmount for a wrap or an unwrap)

swapMode
string
required
Allowed value: "ExactIn"
slippageBps
integer
required
priceImpactPct
string
required

Not computed on EVM: always 0

Allowed value: "0"
routePlan
object[]
required

One step per hop, in order

contextSlot
integer
required

The block number the quote was priced at

timeTaken
number
required

Seconds spent inside the router

quoteId
string<uuid>
required

What POST /evm/swap builds, until expiresAt

chain
enum<string>
required

eth (chain id 1), bsc (56), base (8453), robinhood (4663)

Available options:
eth,
bsc,
base,
robinhood
chainId
integer
required
router
string
required

The contract the swap transaction goes to: the venue's router (also the approvals' spender), or the wrapped token for a wrap or an unwrap

gasEstimate
string
required

Indicative (QuoterV2 on V3, a fixed estimate per hop on V2). The build's simulation gives the real figure

blockHash
string
required

The hash of the block the quote was priced at

expiresAt
string<date-time>
required

Until when the quote can be built: the chain's quoteTtlSecs after quoting (15 s; 30 s on eth)

candidates
integer
required

Routes priced (0 for a wrap or an unwrap)