Skip to content
Docs

Chains

List available chains

Plan-filtered catalog of chains your project can use.

Endpoint

GET/v1/chains

Returns the chains your project can call right now. Chains outside your plan, or switched off for your account or project, are left out. See Filter by plan.

Request

Request
curl -sS "https://blockchain.gray3.io/v1/chains" \
  -H "X-Gray-Project-Id: proj_your_project_id" \
  -H "Authorization: Bearer gray_sk_your_secret"

Response

HTTP 200 — success envelope wraps the payload in data.

json
{
  "data": {
    "items": [
      {
        "id": "ethereum",
        "name": "Ethereum",
        "family": "evm",
        "pathSlots": 2,
        "native": { "symbol": "ETH", "name": "Ether", "decimals": 18 },
        "explorer": { "url": "https://etherscan.io" }
      },
      {
        "id": "ethereum-sepolia",
        "name": "Ethereum Sepolia",
        "family": "evm",
        "pathSlots": 3,
        "native": { "symbol": "ETH", "name": "Ethereum", "decimals": 18 },
        "explorer": { "url": "https://sepolia.etherscan.io" },
        "isTestnet": true,
        "mainnetId": "ethereum"
      }
    ]
  }
}
FieldRequiredDescription
idYesChain ID to pass as chainId in other requests.
nameYesDisplay name.
familyYesAddress and signing family, such as evm, utxo, or solana.
pathSlotsYesHow many HD path segments wallet SDKs let users change.
nativeYesThe chain's own coin: symbol, name, and decimals.
explorerYesBlock explorer base URL.
isTestnetNotrue on test networks.
mainnetIdNoOn testnets, the mainnet this network mirrors.

Need more?

  • To see what each chain supports (portfolio, NFTs, swaps, webhooks, and so on), add include=capabilities. See Include capabilities.
  • To see every chain, including the ones you cannot use, call GET /v1/chains/all.

Errors

Errors use HTTP { "error": { "code", "message", "retryable" } }. Branch on code, not the message text.

CodeHTTPWhen
unauthorized401Missing or invalid project id / secret
revoked_secret401Secret was rotated or revoked
json
{
  "error": {
    "code": "unauthorized",
    "message": "Human-readable detail (may be sanitized).",
    "retryable": false
  }
}