curl -s "https://relay-production-f175.up.railway.app/v1/limits?chainId=84532&taker=0xTaker&sellToken=0xe2387F04d3858e7Cb64Ef5Ed6617f9B2fcEEAfa2&buyToken=0x036CbD53842c5426634e7929541eC2318f3dCF7e"
{
"chainId": 84532,
"sellToken": "0xe2387F04d3858e7Cb64Ef5Ed6617f9B2fcEEAfa2",
"buyToken": "0x036CbD53842c5426634e7929541eC2318f3dCF7e",
"balance": "50000000000000", "allowance": "115792089237316195423570985008687907853269984665640564039457584007913129639935",
"max": "50000000000000", "takerPays": "50000000000000",
"feeBps": 5, "feeToken": "0x036CbD53842c5426634e7929541eC2318f3dCF7e",
"gasFee": "100000", "gasFeeToken": "0x036CbD53842c5426634e7929541eC2318f3dCF7e", "gasFeeUsd": 0.1,
"minimum": "1000000000"
}
Swaps
Swap limits
The largest amount a taker can swap, from the same arithmetic that prices a quote.
GET
/
v1
/
limits
curl -s "https://relay-production-f175.up.railway.app/v1/limits?chainId=84532&taker=0xTaker&sellToken=0xe2387F04d3858e7Cb64Ef5Ed6617f9B2fcEEAfa2&buyToken=0x036CbD53842c5426634e7929541eC2318f3dCF7e"
{
"chainId": 84532,
"sellToken": "0xe2387F04d3858e7Cb64Ef5Ed6617f9B2fcEEAfa2",
"buyToken": "0x036CbD53842c5426634e7929541eC2318f3dCF7e",
"balance": "50000000000000", "allowance": "115792089237316195423570985008687907853269984665640564039457584007913129639935",
"max": "50000000000000", "takerPays": "50000000000000",
"feeBps": 5, "feeToken": "0x036CbD53842c5426634e7929541eC2318f3dCF7e",
"gasFee": "100000", "gasFeeToken": "0x036CbD53842c5426634e7929541eC2318f3dCF7e", "gasFeeUsd": 0.1,
"minimum": "1000000000"
}
“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.
Errors:
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.
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.
curl -s "https://relay-production-f175.up.railway.app/v1/limits?chainId=84532&taker=0xTaker&sellToken=0xe2387F04d3858e7Cb64Ef5Ed6617f9B2fcEEAfa2&buyToken=0x036CbD53842c5426634e7929541eC2318f3dCF7e"
{
"chainId": 84532,
"sellToken": "0xe2387F04d3858e7Cb64Ef5Ed6617f9B2fcEEAfa2",
"buyToken": "0x036CbD53842c5426634e7929541eC2318f3dCF7e",
"balance": "50000000000000", "allowance": "115792089237316195423570985008687907853269984665640564039457584007913129639935",
"max": "50000000000000", "takerPays": "50000000000000",
"feeBps": 5, "feeToken": "0x036CbD53842c5426634e7929541eC2318f3dCF7e",
"gasFee": "100000", "gasFeeToken": "0x036CbD53842c5426634e7929541eC2318f3dCF7e", "gasFeeUsd": 0.1,
"minimum": "1000000000"
}

