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"
}
]
}
}| Field | Required | Description |
|---|---|---|
| id | Yes | Chain ID to pass as chainId in other requests. |
| name | Yes | Display name. |
| family | Yes | Address and signing family, such as evm, utxo, or solana. |
| pathSlots | Yes | How many HD path segments wallet SDKs let users change. |
| native | Yes | The chain's own coin: symbol, name, and decimals. |
| explorer | Yes | Block explorer base URL. |
| isTestnet | No | true on test networks. |
| mainnetId | No | On 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.
| Code | HTTP | When |
|---|---|---|
| unauthorized | 401 | Missing or invalid project id / secret |
| revoked_secret | 401 | Secret was rotated or revoked |
json
{
"error": {
"code": "unauthorized",
"message": "Human-readable detail (may be sanitized).",
"retryable": false
}
}