Loading...
Loading...
© 2026 Hydrex. All rights reserved.
Quotes each swap leg in parallel and returns a single executeSwaps transaction. Ideal for portfolio rebalances or multi-token purchases.
Content-Type: application/json
| Parameter | Description |
|---|---|
taker | Final wallet receiving output tokens. |
swaps | Array of swap legs (see Swap Item schema below). |
| Parameter | Default | Description |
|---|---|---|
chainId | 8453 | EVM chain ID (e.g. 8453 for Base). |
slippage | 50 | Execution slippage in BIPS. |
source | — | Source filter — comma-separated. Omit for all. |
referral | — | Referral address for attribution. |
referralFeeBps | 0 | Referral fee in BIPS. |
spread | — | Aggregator fee in BIPS passed to upstream aggregators. |
spreadDirection | — | "input" or "output" — which token the spread is taken from. |
admin | — | Wallet that receives the spread fee. |
origin | — | Origin label for tracking. |
Each object in the swaps array:
| Field | Required | Description |
|---|---|---|
fromTokenAddress | Yes | Input token contract address. |
toTokenAddress | Yes | Output token contract address. |
amount | Yes | Input amount in base units (wei). |
POST /quote/multi
Content-Type: application/json
{
"taker": "0xYourWalletAddress",
"chainId": "8453",
"slippage": "50",
"swaps": [
{
"fromTokenAddress": "0x4200000000000000000000000000000000000006",
"toTokenAddress": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "500000000000000000"
},
{
"fromTokenAddress": "0x4200000000000000000000000000000000000006",
"toTokenAddress": "0x50c5725949A6F0c72E6C4a641F24049A917DB0Cb",
"amount": "500000000000000000"
}
]
}Each leg draws from the taker's existing balance — legs do not chain outputs into the next leg's input.