Discovery and markets API

Chain directory brief: every platform id with its EVM chain id

Every blockchain as platform id and EVM chain id, plus the chains this API serves in full.

GET/api/external/discovery/chain-directory-brief

What it returns

The brief of chain-directory; prefer it unless you need every chain's name or native coin. Every blockchain coins are issued on, A to Z, as its platform id (the key coin lists contracts under) and EVM chain id, so an agent can still read a contract's platform or turn a chain id into a blockchain. The chains this API serves are repeated in full, with name, short name, native coin and chain code.

Chains

This endpoint is not tied to a chain: it takes no chain in its request.

Request

Send your key in the x-dex-data-key header. Replace each <placeholder> with a real value.

curl -H "x-dex-data-key: $DEXDATA_API_KEY" \
  "https://api.dexdata.io/api/external/discovery/chain-directory-brief"

Response fields

A JSON response. Every field is always present; null means the value could not be established, never zero.

Response fields of Chain directory brief: every platform id with its EVM chain id
FieldTypeDescription
chainCountintegerBlockchains in the directory.
evmChainCountintegerOf them, those with an EVM chain id.
servedobject[]The chains this API serves (chain not null), each exactly as chain-directory lists it.
served[].platformstringThe platform id, e.g. ethereum, binance-smart-chain, solana: the key coin lists contracts under.
served[].namestringThe blockchain name, e.g. BNB Smart Chain.
served[].shortNamestring | nullA short name, e.g. BSC. Null for most.
served[].evmChainIdinteger | nullThe EVM chain id, e.g. 1, 56, 8453. Null for a chain that is not EVM or has none published.
served[].nativeCoinIdstring | nullThe coin id of its native (gas) coin, e.g. ethereum, binancecoin; coin answers it.
served[].chainstring | nullThe chain code this API uses for it (ETH, BNB, SOL), or null when no endpoint serves it.
chainsobject[]Every blockchain, by platform id, A to Z.
chains[].platformstringThe platform id, e.g. ethereum, binance-smart-chain: the key coin lists contracts under.
chains[].evmChainIdinteger | nullThe EVM chain id; null for a chain that is not EVM or has none published.

Start building with DexData today

Sign in, create a key and make your first call in a minute. Free credits every month, and you only pay for calls that succeed.

Get a free API key