GET/v1/quote

Claude ↗ChatGPT ↗
Auth X-Hub-Key from API_HUB_KEYExecute GET /run/aerodrome/v1/quoteCache cached 1s, never served stale past that windowCost free · weight 0 · standard rate classSource billing free

Read-only exact-input swap quote across one or more pool hops with post-swap sqrtPriceX96 and ticks crossed.

Try this endpoint

Reads the credential from API_HUB_KEY; it never appears in the URL.

curl -sH "X-Hub-Key: $API_HUB_KEY" "https://openapihub.dev/run/aerodrome/v1/quote?chain=base&pools=0x4A7af46bC8aBc00048c6c7920a1488DAF568366c&token_in=0x4200000000000000000000000000000000000006&amount_in=1000000000000000000"

Parameters

nameintypedescription
chainquerystroptionalTarget chain: base (8453, default), optimism (10), arbitrum (42161), or ethereum (1).
default: base
example: base
poolsquerystrrequiredComma-separated pool contract addresses forming the swap path.
example: 0x4A7af46bC8aBc00048c6c7920a1488DAF568366c
token_inquerystrrequiredInput token contract address.
example: 0x4200000000000000000000000000000000000006
amount_inquerystrrequiredInput amount in smallest integer token units.
example: 1000000000000000000

Response

type: object
data key: pools
pagination: none
sample: {
  "chain": "str",
  "chain_id": "int",
  "quoter": "str",
  "pools": [
    "str"
  ],
  "token_in": "str",
  "amount_in": "str",
  "amount_out": "str",
  "sqrt_price_x96_after": [
    "str"
  ],
  "initialized_ticks_crossed": [
    "int"
  ]
}