Chains
Include capabilities
Add include=capabilities to see which features each chain supports, including webhooks, before you call them.
Overview
The chain list tells you which chains you can use. Adding include=capabilities also tells you what works on each one, so you can show or hide features in your app, such as Send, NFTs, DeFi, Swap, or deposit alerts.
Query
| Field | Required | Description |
|---|---|---|
| include | No | capabilities |
Request
curl -sS "https://blockchain.gray3.io/v1/chains?include=capabilities" \
-H "X-Gray-Project-Id: proj_your_project_id" \
-H "Authorization: Bearer gray_sk_your_secret"Response
Each chain has the same fields as the plain list, plus a capabilities object.
HTTP 200 — success envelope wraps the payload in data.
{
"data": {
"items": [
{
"id": "ethereum",
"name": "Ethereum",
"family": "evm",
"pathSlots": 2,
"native": { "symbol": "ETH", "name": "Ether", "decimals": 18 },
"explorer": { "url": "https://etherscan.io" },
"capabilities": {
"portfolio": { "status": "available", "code": 2 },
"balance": { "status": "available", "code": 2 },
"activity": { "status": "available", "code": 2 },
"nfts": { "status": "available", "code": 2 },
"defi": { "status": "available", "code": 2 },
"swap": { "status": "available", "code": 2 },
"transactions": { "status": "available", "code": 2 },
"nativeTransfer": { "status": "available", "code": 2 },
"tokenTransfer": { "status": "available", "code": 2 },
"prices": { "status": "available", "code": 2 },
"pricesMulti": { "status": "available", "code": 2 },
"webhook": {
"status": "available",
"code": 2,
"events": ["native_transfer", "token_transfer", "nft_transfer", "approval", "swap", "defi", "contract_interaction"],
"confirmations": 6,
"inPlan": true,
"enabled": true
}
}
}
]
}
}Status values
| Field | Required | Description |
|---|---|---|
| unavailable | No | Route blocked for this chain on your plan or network type |
| partial | No | Some operations work (e.g. portfolio without USD prices) |
| available | No | Feature is expected to work when other gates pass |
Each capability also includes a numeric code for programmatic checks in SDKs.
Common capability keys
| Field | Required | Description |
|---|---|---|
| portfolio / balance | No | Balances and token holdings |
| activity | No | Single-chain transaction history |
| nfts | No | Mainnet NFT list (see NFTs guide) |
| defi | No | DeFi positions and action preparation (mainnet) |
| swap | No | Swap and bridge quotes and route status (mainnet) |
| transactions | No | Prepare / simulate / broadcast / receipt |
| nativeTransfer / tokenTransfer | No | Which send shapes prepare accepts |
| prices / pricesMulti | No | USD price quotes (mainnet) |
| transferMemo | No | Optional memo/tag support and UI label for that chain |
| webhook | No | Address notifications: supported event types, confirmation depth, and whether they are on for this project |
The webhook capability
webhook tells you whether Webhooks can watch addresses on the chain, which kinds of activity are reported, and whether your project will receive them right now.
| Field | Required | Description |
|---|---|---|
| status / code | Yes | available (2) when Gray3 can watch this chain, otherwise unavailable (0). |
| events | Yes | Event types sent on this chain: native_transfer, token_transfer, nft_transfer, approval, swap, defi, contract_interaction. Empty when unavailable. |
| confirmations | No | Blocks before the confirmed message is sent. Only on available chains. |
| inPlan | Yes | Your plan includes webhooks. |
| enabled | Yes | Messages will be sent for this chain now: webhooks are in the plan, the chain is usable, the project's webhook is active, and the chain is one of its networks. |
A chain can be available but not enabled, for example on a plan without webhooks or when the chain is not one of the webhook's networks. Use status to decide whether to offer the feature and enabled to show whether it is on.
Errors
Errors use HTTP { "error": { "code", "message", "retryable" } }. Branch on code, not the message text.
| Code | HTTP | When |
|---|---|---|
| unauthorized | 401 | Missing project credentials |
| revoked_secret | 401 | Secret revoked |
{
"error": {
"code": "unauthorized",
"message": "Human-readable detail (may be sanitized).",
"retryable": false
}
}