Skip to main content

Codex: Direct API Endpoints

Codex provides 61 unique direct API endpoints across the following categories:
  • DeFi (20 endpoints)
  • Market Data (6 endpoints)
  • NFT (22 endpoints)
  • Token (25 endpoints)
  • Transaction (1 endpoint)
  • Wallets (4 endpoints)
Note: Some endpoints appear in multiple categories. The count above reflects unique API paths.
Learn more: Codex Documentation

Prefix and Example

Prefix: No prefix is required for Codex, an example URL will therefore look like: https://api.uniblock.dev/direct/v1/Codex + /[Codex_endpoint]. Example Request:

Request format: GraphQL over POST

Codex’s underlying API is GraphQL. Uniblock exposes each Codex query as a REST-style POST endpoint whose path segment matches the Codex operation name exactly. For example, batch pricing is direct/v1/Codex/getTokenPrices, not tokenPrices. Use the paths listed in the tables below. Every Codex endpoint accepts a standard GraphQL HTTP body with two fields:
  • query: the GraphQL document as a string, using the arguments and fields from the linked Codex reference page
  • variables: an object with values for any variables in the query (use {} if there are none)
Example: Look up a single token with direct/v1/Codex/token, which takes an input object of address and networkId:
Authenticate with your Uniblock API key in the x-api-key header. You do not need a Codex API key. The full schema for each query (arguments, response fields, network IDs) is documented on the linked Codex reference pages.

DeFi

POST

Market Data

POST

NFT

POST

Token

POST

Transaction

POST

Wallets

POST