Tool detail
Codex · GraphQL query (token data, trades, liquidity, NFTs, wallets)
Executes a caller-supplied GraphQL query against Codex's onchain data graph: token prices, trades, liquidity, wallet balances and prediction markets across 80+ chains.
Categories: Market prices, Onchain data
Use when
- look up a token's current price and liquidity on a chain
- get OHLC price bars/candles for a token over a time range
- check a crypto wallet's token balances and portfolio value
- get odds and volume for a prediction market like Polymarket or Kalshi
- query recent trades or swaps for a token pair
Not for
- not a natural-language interface, the caller must supply a valid GraphQL query
- not for chains or tokens Codex does not index
Inputs
POST JSON body: { query: string (required, GraphQL) }, e.g. getTokenPrices/getBars/balances; variables optional; exact schema undocumented
Inputs undocumented: mpp.dev lists no input schema; see the provider's API reference
Endpoint
- Method
POST- URL
https://graph.codex.io/graphql
Payment
- Protocol
- MPP
- Listed price
- 0.001 units of asset 0x20c000000000000000000000b9537d11c60e8b50 per call on tempo:mainnet (6 decimals)
- Payment method
- tempo
- Network
- tempo:mainnet
- Asset
- 0x20c000000000000000000000b9537d11c60e8b50
Listed terms are catalog metadata. The caller supplies inputs and calls the tool outside Onelayer. If payment is required, the caller uses a compatible wallet to pay.
Source
- Directory
- MPP directory
- Record
- codex POST /graphql
- Retrieved
- 2026-09-30T20:37:07.382Z
- Catalog file SHA-256
6837ccddf886f0007cf3727ea9d27faaa5047b51b4f425345c554ce1c271a524- Catalog built
- 2026-09-30T22:31:58.034Z