raw_query
Run arbitrary GraphQL queries against Uniswap subgraphs across chains and versions to access entities like pairs, pools, swaps, and tokens.
Instructions
Escape hatch: run an arbitrary GraphQL query against the resolved Uniswap subgraph for a (chain, version). V2 exposes pairs, swaps, tokens; V3/V4 expose pools, swaps, tokens. Run a standard { __schema { types { name } } } introspection query first if you need exact entity/field names.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | Yes | Chain: ethereum, arbitrum, base, polygon, optimism, or bsc (aliases like eth/arb/matic/bnb are accepted) | |
| query | Yes | GraphQL query string | |
| version | No | Uniswap version: v2, v3, or v4. Omit to use the highest-volume version on that chain. | |
| variables | No |