Skip to main content
POST
/
api
/
quote
Quote multiple transactions
curl --request POST \
  --url https://api.example.com/api/quote \
  --header 'Content-Type: application/json' \
  --data '
{
  "amountIn": [
    "1000000000000000000"
  ],
  "chainId": 1,
  "tokenIn": "0xdac17f958d2ee523a2206206994597c13d831ec7",
  "tokenOut": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
  "transactions": [
    {
      "data": "0x1234",
      "from": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
      "to": "0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D",
      "value": "1000000000000000000",
      "executor": "<string>",
      "operationType": 123,
      "origin": "<string>",
      "receiver": "<string>",
      "spender": "<string>"
    }
  ]
}
'
[
  {
    "status": "Success",
    "amountOut": [
      "1000000000000000000"
    ],
    "error": "<unknown>",
    "gas": "<unknown>",
    "stateOverride": {}
  }
]

Body

application/json

Request to quote multiple transactions

amountIn
string[]
required

List of input amounts (as decimal strings)

chainId
integer<int64>
required

Chain ID (e.g., 1 for Ethereum mainnet)

Required range: x >= 0
Example:

1

tokenIn
string[]
required

List of input token addresses

Example:

"0xdac17f958d2ee523a2206206994597c13d831ec7"

tokenOut
string[]
required

List of output token addresses

Example:

"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"

transactions
object[]
required

List of transactions to quote

Response

Quote successful

status
enum<string>
required

Status of the quote (Success or Error)

Available options:
Success,
Error
amountOut
string[] | null

Output amounts for each output token (as decimal strings)

error
object

Error details if the quote failed

gas
null | string

Estimated gas for the transaction

Example:

"1000000000000000000"

stateOverride
object

State override used for simulation