Watched addresses
Add an address
POST /v1/webhook/addresses starts watching one address on one network for one credit.
Overview
POST/v1/webhook/addresses
Starts watching one address on one network. To watch the same address on several networks, add it once per network. Adding an address that is already watched is free and returns it unchanged.
Body
| Field | Required | Description |
|---|---|---|
| chainId | Yes | Network to watch on, such as base. Must be in the webhook's enabledChainIds. |
| address | Yes | The address to watch. On EVM networks a 0x address, any casing. On Bitcoin-family networks any address format the network uses; Gray3 checks it belongs to that network and stores it in standard form. On Solana the wallet address (base58). On Tron a T… address, or its 41… hex form, stored as T…. On Sui, Aptos, and Movement a 0x address, stored as 0x plus 64 lowercase hex characters (short forms such as 0x1 are padded). On XRPL the classic r… address (not an X-address). On Stellar the G… account (not a muxed M… address). On NEAR the account id, such as name.near, stored lowercase. On TON the EQ… / UQ… address or the raw 0:… form, stored as raw 0:… with uppercase hex. On Hedera the 0.0.N account id (a checksum suffix is dropped). On Algorand the 58-character address. On VeChain a 0x address, stored lowercase. On Polkadot and Bittensor an SS58 address or 0x public key, stored in the network's SS58 format. On Stacks an SP… / SM… principal, stored uppercase. On Cardano an addr1… payment address, stored lowercase. |
| label | No | Your own name for it, up to 60 characters, such as a user ID. Searchable. |
| categories | No | Event types to send for this address. Leave out for every type the network sends. |
Request
Request
curl -sS -X POST "https://webhooks.gray3.io/v1/webhook/addresses" \
-H "X-Gray-Project-Id: proj_your_project_id" \
-H "Authorization: Bearer gray_whk_your_webhook_key" \
-H "Content-Type: application/json" \
-d '{
"chainId": "base",
"address": "0x8ba1f109551bD432803012645Ac136ddd64DBA72",
"label": "user_1842",
"categories": ["native_transfer", "token_transfer"]
}'Response
HTTP 201 — success envelope wraps the payload in data.
json
{
"data": {
"items": [{
"id": "whsub_7Qm2…",
"chainId": "base",
"address": "0x8ba1f109551bD432803012645Ac136ddd64DBA72",
"label": "user_1842",
"categories": ["native_transfer", "token_transfer"],
"status": "active",
"lastActiveAt": "2026-10-16T09:31:12.081Z",
"createdAt": "2026-10-02T14:05:51.220Z"
}],
"created": 1,
"existing": 0,
"reactivated": 0,
"creditsCharged": 1
}
}| Field | Required | Description |
|---|---|---|
| items | Yes | One address object per unique row, in request order. |
| created | Yes | New addresses added by this call. Each costs 1 credit. |
| existing | Yes | Addresses you already watched. Free and left unchanged. |
| reactivated | Yes | Of the existing ones, how many were switched off and are now back on. Free. |
| creditsCharged | Yes | Credits used by this call. |
Errors
Errors use HTTP { "error": { "code", "message", "retryable" } }. Branch on code, not the message text.
| Code | HTTP | When |
|---|---|---|
| invalid_argument | 400 | Malformed address or one from another network, unknown category or one the network does not send, more than 500 rows, or a network not enabled on the webhook. The message names the row. |
| plan_chain_denied | 403 | The network is not on your plan |
| credits_exhausted | 402 | Not enough credits for the new addresses |
| plan_limit_addresses | 403 | The new addresses would go over your plan's watched-address limit. Nothing is added or charged. |
| conflict | 409 | The webhook has not passed a test event yet |
| not_found | 404 | The project has no webhook |
json
{
"error": {
"code": "invalid_argument",
"message": "Human-readable detail (may be sanitized).",
"retryable": false
}
}