Skip to main content
GET
“Swap max” for a wallet: its balance, its Permit2 allowance, and the most it can sell once the fee and gas lines are charged in the sell token. Ask before quoting so the taker never signs a fill their balance cannot cover.
number
Defaults to the primary EVM chain.
string
required
string
required
string
required
number
string
string
string
What the taker holds of sellToken.
string
Approved to Permit2. Equals balance on Solana.
string
The largest sellAmount the balance covers.
string
What max costs including fee lines charged in the sell token.
number
string
string
Today’s gas fee in gasFeeToken.
string
number | null
string | null
The corridor’s minimum sell amount.
Errors: 400 wrong_chain, same_token, unsupported_token, unsupported_pair (Solana), or a plain message when a parameter is missing; 503 chain_unavailable when the RPC did not answer.