Webhooks
The activity of the addresses you watch on Robinhood Chain, sent to your server and signed.
What it is
A webhook sends your server the activity of the addresses it watches on Robinhood Chain.
Each event is an HTTPS POST of JSON to your URL, signed with the webhook’s signing key.
It covers ETH sent by a transaction, ETH moved inside contracts, ERC-20 tokens, and ERC-721 and ERC-1155 NFTs.
It is Alchemy’s Address Activity webhook, field for field, with an object of Blockhash’s own beside it.
A webhook sends one event for every 10 blocks that hold activity.
You can ask for an event for every block instead.
- Network
- Robinhood Chain
- Type
- ADDRESS_ACTIVITY
- Price
- 0.04 units a byte
Making one
Make one on the dashboard’s Webhooks page: an app to charge it to, its URL, its addresses, and how often it is sent.
Its signing key is shown as it is made.
The dashboard shows it again to a session signed in, or proven by your password, within 15 minutes.
Or make one with the Notify API, with an app’s Notify API token.
The URL is an https URL on port 443, of a public name, never an IP address.
Addresses can be pasted, or read from a CSV file of any columns: every address in it is taken once.
curl -X POST https://api.blockhash.xyz/notify/api/create-webhook \
-H "X-Alchemy-Token: $NOTIFY_TOKEN" \
-H "Content-Type: application/json" \
-d '{"network": "ROBINHOOD_MAINNET", "webhook_type": "ADDRESS_ACTIVITY", "webhook_url": "https://example.com/webhooks", "addresses": ["0x1111111111111111111111111111111111111111"]}'A delivery
The body is Alchemy’s: webhookId, id, createdAt, type, and event with its network and its activity.
The activities are in the chain’s order: by block, by transaction, then a transaction’s own ETH, the ETH its calls moved, and its logs.
A token’s activity carries its log.
An event’s id is the same each time it is sent, so a receiver that kept the ids it handled passes over one it has.
A window of more than 1,000 activities, or a body of more than 262,144 bytes, is sent in parts, each an event of its own.
| Field | What it says |
|---|---|
fromBlock, toBlock | The window the event is of, in hex. |
uniqueIds | Each activity’s id, in the order of activity, as the Data API’s transfers name it. |
notTraced | The spans of the window whose ETH moved inside contracts the index did not trace. Left out where there is none. |
part, parts | Where a window is sent in parts: which part this is, and how many there are. |
removed | True where the event takes back one a reorg removed. |
replay | True where the event was replayed. |
test | True for a test. |
{
"webhookId": "wh_2m6qk4ztd7q3xfa1",
"id": "whevt_7c3k9m2q5t8w4z6b",
"createdAt": "2026-11-25T12:00:01.000Z",
"type": "ADDRESS_ACTIVITY",
"event": {
"network": "ROBINHOOD_MAINNET",
"activity": [
{
"blockNum": "0x72c1910",
"hash": "0x4e4e…4e4e",
"fromAddress": "0x1111111111111111111111111111111111111111",
"toAddress": "0x2222222222222222222222222222222222222222",
"value": 0.25,
"erc721TokenId": null,
"erc1155Metadata": null,
"asset": "ETH",
"category": "external",
"rawContract": {
"rawValue": "0x00000000000000000000000000000000000000000000000003782dace9d90000",
"decimals": 18
},
"typeTraceAddress": null
},
{
"blockNum": "0x72c1915",
"hash": "0x9a9a…9a9a",
"fromAddress": "0x2222222222222222222222222222222222222222",
"toAddress": "0x1111111111111111111111111111111111111111",
"value": 125.5,
"erc721TokenId": null,
"erc1155Metadata": null,
"asset": "USDG",
"category": "token",
"rawContract": {
"rawValue": "0x00000000000000000000000000000000000000000000000000000000077afa60",
"address": "0x5fc5360d0400a0fd4f2af552add042d716f1d168",
"decimals": 6
},
"typeTraceAddress": null,
"log": {
"address": "0x5fc5360d0400a0fd4f2af552add042d716f1d168",
"topics": [
"0xddf2…b3ef",
"0x0000…2222",
"0x0000…1111"
],
"data": "0x00000000000000000000000000000000000000000000000000000000077afa60",
"blockNumber": "0x72c1915",
"transactionHash": "0x9a9a…9a9a",
"transactionIndex": "0x1",
"blockHash": "0xc7c7…c7c7",
"logIndex": "0x4",
"removed": false
}
}
]
},
"blockhash": {
"fromBlock": "0x72c190e",
"toBlock": "0x72c1917",
"uniqueIds": [
"0x4e4e…4e4e:external",
"0x9a9a…9a9a:log:4"
]
}
}Content-Type: application/json; charset=utf-8
User-Agent: Blockhash-Webhooks/1.0 (+https://blockhash.xyz)
X-Alchemy-Signature: <hex>
Blockhash-Signature: t=<seconds>,v1=<hex>
Blockhash-Webhook-Id: wh_2m6qk4ztd7q3xfa1
Blockhash-Event-Id: whevt_7c3k9m2q5t8w4z6b
Blockhash-Attempt: 1Checking a delivery
Check the signature before you trust the body, on the body as it arrived, before any JSON parsing.
Blockhash-Signature is an HMAC-SHA256 of the time it was signed at, a dot and the body. A signature more than 300 seconds from now is refused.
X-Alchemy-Signature is an HMAC-SHA256 of the body alone, as Alchemy signs, for a receiver written for Alchemy.
A rotation can keep the key before it signing for up to 24 hours: Blockhash-Signature then carries a v1 of each key, and X-Alchemy-Signature the new key’s alone.
import { createHmac, timingSafeEqual } from 'node:crypto'
// Checks a Blockhash webhook's signature before its body is trusted.
// rawBody is the request's body as it arrived, before any JSON parsing.
// signingKey is the webhook's signing key, from the dashboard or from create-webhook.
// Blockhash-Signature: t=<seconds>,v1=<hex>[,v1=<hex>]
// It holds the time it was signed at, so a delivery captured and sent again later is refused.
export function verifyBlockhashSignature(rawBody, header, signingKey, nowSeconds = Math.floor(Date.now() / 1000)) {
const fields = header.split(',').map((part) => part.trim().split('='))
const t = Number(fields.find(([name]) => name === 't')?.[1])
if (!Number.isInteger(t) || Math.abs(nowSeconds - t) > 300) return false
const expected = createHmac('sha256', signingKey).update(`${t}.`).update(rawBody).digest()
return fields.some(([name, value]) => name === 'v1' && /^[0-9a-f]{64}$/.test(value ?? '') && timingSafeEqual(Buffer.from(value, 'hex'), expected))
}
// X-Alchemy-Signature: <hex>, as Alchemy signs, for a receiver written for Alchemy.
export function verifyAlchemySignature(rawBody, header, signingKey) {
const expected = createHmac('sha256', signingKey).update(rawBody).digest()
return /^[0-9a-f]{64}$/.test(header) && timingSafeEqual(Buffer.from(header, 'hex'), expected)
}import hashlib
import hmac
import time
# Checks a Blockhash webhook's signature before its body is trusted.
# raw_body is the request's body as it arrived (bytes), before any JSON parsing.
# signing_key is the webhook's signing key, from the dashboard or from create-webhook.
# Blockhash-Signature: t=<seconds>,v1=<hex>[,v1=<hex>]
# It holds the time it was signed at, so a delivery captured and sent again later is refused.
def verify_blockhash_signature(raw_body, header, signing_key, now_seconds=None):
fields = [part.strip().partition("=") for part in header.split(",")]
stamps = [value for name, _, value in fields if name == "t"]
if not stamps or not stamps[0].isdigit():
return False
t = int(stamps[0])
if abs((time.time() if now_seconds is None else now_seconds) - t) > 300:
return False
expected = hmac.new(signing_key.encode(), f"{t}.".encode() + raw_body, hashlib.sha256).hexdigest()
return any(name == "v1" and hmac.compare_digest(value.encode(), expected.encode()) for name, _, value in fields)
# X-Alchemy-Signature: <hex>, as Alchemy signs, for a receiver written for Alchemy.
def verify_alchemy_signature(raw_body, header, signing_key):
expected = hmac.new(signing_key.encode(), raw_body, hashlib.sha256).hexdigest()
return hmac.compare_digest(header.encode(), expected.encode())Order and retries
A webhook’s events are sent one at a time, in order.
An answer of 2xx within 10 seconds is a delivery. A redirect is not followed.
A delivery that fails is tried again after 15 seconds, then after twice as long each time, up to an hour.
Each wait is somewhere between half of it and all of it.
The events after it wait for it.
A webhook whose deliveries fail for 24 hours is paused, and its organization’s Admins, Developers and members with billing access are emailed.
Resume it on the dashboard, or with the Notify API. Its blocks while paused are a gap, which you can replay.
A webhook that falls 10,000 events behind, or 24 hours, is sent nothing more until it catches up: what it missed is a gap too.
Reorgs
When a reorg removes blocks, an event of them not yet delivered is not sent.
One already delivered is taken back by an event of its own: the same activities, each log marked removed: true, and blockhash.removed true.
The new chain’s events are sent after it, with ids of their own.
Where the chain comes back to blocks it left, their events are sent again after the ones that took them back, each time under an id of its own.
Replays and resends
A replay reads a webhook’s blocks again and sends their events, as they are with the addresses it watches now.
A replay names up to 6,048,000 blocks, about 7 days of the chain.
One replay waits at a time for each webhook, and you can cancel it.
Each event keeps the id it was first sent with, unless you ask for new ones.
A replay begins no earlier than the index’s first block, and its answer says where it begins.
A resend sends one event again. Its body is kept for 24 hours after it was delivered; after that, a resend replays its blocks.
A webhook’s deliveries are listed for 7 days.
| Gap | When |
|---|---|
paused | It was paused, by its people or after a day of failed deliveries. |
backlog | 10,000 events waited for it, or its oldest waited 24 hours. |
off | Webhooks were off. |
restored | The service was restored from a backup. |
curl -X POST https://api.blockhash.xyz/notify/api/replay-webhook \
-H "X-Alchemy-Token: $NOTIFY_TOKEN" \
-H "Content-Type: application/json" \
-d '{"webhook_id": "wh_2m6qk4ztd7q3xfa1", "from_block": 120330000, "to_block": 120330999}'A test
A test sends one event with no activity and blockhash.test true, signed as every delivery is.
A webhook is sent a test once in 10 seconds at most.
An event is resent 10 times a minute at most.
Moving from Alchemy
A receiver written for Alchemy’s Address Activity webhook takes Blockhash’s deliveries as they are, and checks them by X-Alchemy-Signature.
A program that manages Alchemy’s webhooks changes two things: the base URL, to https://, and the token, to an app’s Notify API token.
The network is ROBINHOOD_MAINNET, and the one type is ADDRESS_ACTIVITY.
Blockhash adds the blockhash object, the Blockhash-Signature header with its time, replays, resends and tests.
// before
const NOTIFY = 'https://dashboard.alchemy.com/api'
// after
const NOTIFY = 'https://api.blockhash.xyz/notify/api'The Notify API
The Notify API answers at https://, with Alchemy’s methods, bodies and answers.
Its token is an app’s, made on the dashboard’s Webhooks page and shown once: bhw_ and 40 hex digits.
Send it as X-Alchemy-Token, as Alchemy’s is, or as a Bearer token. It reaches its app’s webhooks alone.
Never send the app’s API key here: it can be in a page’s code.
A token is 10 requests a second at most.
| Method | What it does |
|---|---|
POST create-webhook | Makes a webhook, with up to 500 addresses, and answers its signing key. |
PATCH update-webhook-addresses | Adds and removes up to 500 addresses each. |
PUT update-webhook-addresses | Replaces every address, with up to 500. |
GET webhook-addresses | A webhook’s addresses, 40 a page unless asked, up to 100. |
GET team-webhooks | The app’s webhooks. |
PUT update-webhook | Changes a webhook’s URL or name, pauses it or resumes it. |
DELETE delete-webhook | Deletes a webhook. |
POST replay-webhook | Replays a webhook’s blocks. Blockhash’s own. |
POST cancel-replay | Cancels a replay that waits. Blockhash’s own. |
GET webhook-deliveries | A webhook’s deliveries, newest first. Blockhash’s own. |
POST resend-event | Sends an event again. Blockhash’s own. |
POST test-webhook | Sends a test. Blockhash’s own. |
POST rotate-signing-key | Makes a new signing key. Blockhash’s own. |
curl -X PATCH https://api.blockhash.xyz/notify/api/update-webhook-addresses \
-H "X-Alchemy-Token: $NOTIFY_TOKEN" \
-H "Content-Type: application/json" \
-d '{"webhook_id": "wh_2m6qk4ztd7q3xfa1", "addresses_to_add": ["0x2222222222222222222222222222222222222222"], "addresses_to_remove": []}'Limits
A paused webhook counts toward an organization’s webhooks.
A delivery is a POST of 10 seconds at most, from start to finish.
| What | Free | Pay as you go |
|---|---|---|
| Webhooks an organization holds, paused ones among them | 5 | 100 |
| Addresses a webhook watches | 100,000 | 100,000 |
| Addresses an organization’s webhooks watch together | 100,000 | 1,000,000 |
What it costs
A delivery costs 0.04 compute units a byte of its body, rounded up, as a WebSocket’s notification does.
It is charged once, on its first answer of 2xx, to its webhook’s app, and takes nothing from the plan’s speed.
An event that takes one back after a reorg (removed) is a delivery too, charged on its own 2xx.
So is an event sent again after the chain came back, and each event of a replay or a resend.
A test, a delivery that failed and the Notify API cost nothing.
Your use shows as webhooks on the dashboard’s Usage page, under the method webhook.
- A delivery
- 0.04 units a byte of its body
- The sample’s 1,960 bytes
- 79 units
- Tests, failures, the Notify API
- Free