How to Use GetBlock Webhooks
DevRel
October 21, 2026
6 min read
Ethereum produces a new block about every 12 seconds. If your app needs to know when a wallet receives ETH or USDT, the classic answer is to ask the node about every block that includes a transaction for that asset. Almost every block shows that "no transaction occurred", and you still burn CU for every block.
GetBlock Webhooks change that. You tell GetBlock what to watch, and GetBlock tells you when it happens.
TL;DR:
GetBlock Webhooks monitor Ethereum Mainnet for the wallets, contracts, or transactions you choose and send each matching event to your HTTPS endpoint as a signed POST request.
You create a webhook in the dashboard or via a single POST to https://public-api.getblock.io/api/v1/webhooks, verify each delivery with your signing secret, and pay only 25 CU when an event is delivered.
How GetBlock Webhooks work
A webhook tells you: "when this happens on-chain, send it to this URL." Your server does not poll or keep a connection open. It only needs to accept HTTPS requests.
Every delivery follows the same four steps:
Create a webhook: It holds the network, a trigger, a filter for what to watch, and your target_url.
GetBlock checks every new block against that filter.
Each match is sent as one signed POST with an X-GetBlock-Signature header.
Your endpoint answers 2xx within 15 seconds. If it does not, GetBlock retries up to 8 times over about 52 minutes.
You also choose when to hear about an event. The unconfirmed phase arrives as soon as the event is in a block. The confirmed phase arrives once that block is 2 to 96 blocks deep, which you set with confirm_depth. If a chain reorganization removes an event you already received, GetBlock sends a correction with "removed": true so you can undo it.
Use cases
GetBlock Webhooks are built for payment services, wallets, exchanges, and monitoring tools. Each use case maps to one of three triggers:
You want to know when... | Trigger | What you receive |
Money moves in or out of your wallets | address_activity | Native ETH and token transfers of the addresses you watch |
A smart contract emits an event, such as every USDT Transfer | log_event | Contract logs matched by contract address and/or topics |
ERC-20 Transfer and Approval events arrive already decoded, so you read from, to, and value directly instead of parsing log topics.
In practice, that looks like this:
A payment gateway marks a customer's payment as pending for unconfirmed delivery and releases the order for confirmed delivery.
An exchange monitors thousands of deposit addresses using a single address list of up to 100,000 addresses.
A treasury or alerting tool monitors every token transfer without running a node.
A withdrawal service waits for one tx_confirmation before marking a payout complete.
How to create a webhook with one request
You can create webhooks in the GetBlock dashboard or through the Public API. The API endpoint is:
1
POST https://public-api.getblock.io/api/v1/webhooks
Authenticate with an API key from Settings > API Keys. Keys start with gb_. This request watches one wallet and asks for both phases:
1
2
3
4
5
6
7
8
9
10
11
12
13
curl -X POST https://public-api.getblock.io/api/v1/webhooks \
-H "Authorization: Bearer $GETBLOCK_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "deposit-wallets",
"chain": "eth",
"network": "mainnet",
"trigger_type": "address_activity",
"phases": ["unconfirmed", "confirmed"],
"confirm_depth": 12,
"target_url": "https://hooks.example.io/getblock",
"addresses": ["0x742d35cc6634c0532925a3b844bc454e4438f44e"]
}'
The fields that matter most:
Field | What it does |
trigger_type | address_activity, log_event, or tx_confirmation |
phases | ["unconfirmed"], ["confirmed"], or both |
addresses / list_refs / filters | What to watch: inline addresses, saved address lists, or a full filter tree |
confirm_depth | Blocks before the confirmed delivery, 2 to 96. Defaults to 96 |
target_url | Your public HTTPS endpoint |
The answer is 201 Created with the webhook's ID and a secret that starts with whsec_. Save the secret right away. It appears only in this response, and you need it to verify every delivery.
The same API also lists, updates, pauses, resumes, and deletes webhooks; sends free test events; rotates secrets; and returns delivery stats. Every endpoint is in the API Reference.
The Receiver endpoint
Your target_url is where GetBlock sends events. It must:
Use https on a public domain with a valid TLS certificate (no localhost or private IPs);
Accept a JSON POST;
Answer 2xx within 15 seconds without redirecting;
Verify the signature over the raw body before trusting it.
A minimal Node.js handler looks like this. It uses the verifySignature recipe from the Verifying Signatures page, saved as verify.mjs:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import express from "express";
import { verifySignature } from "./verify.mjs";
const app = express();
const secrets = [process.env.GETBLOCK_WEBHOOK_SECRET];
app.post("/getblock", express.raw({ type: "application/json" }), (req, res) => {
// Verify over the exact bytes GetBlock signed
const check = verifySignature(req.get("X-GetBlock-Signature") || "", req.body, secrets);
if (!check.ok) return res.status(401).send(check.reason);
const event = JSON.parse(req.body.toString("utf8"));
res.sendStatus(200); // answer first, process after
const phase = event.removed ? "removed" : event.confirmed ? "confirmed" : "unconfirmed";
console.log(event.type, event.eventId, phase);
});
app.listen(3000)
Two habits keep it reliable:
De-duplicate on eventId plus phase. Delivery is at least once, so a retry can result in the same event being delivered twice.
Treat "removed": true as an undo for that eventId.
Before any real transfer, click Send test event in the dashboard or call POST /webhooks/{id}/test. Test events are free and go to your URL signed like a live event. No code yet? Point the webhook at a request inspector such as webhook.site to see a delivery first.
See it in the dashboard, and know what it costs
Prefer to click through it? Watch How to Use GetBlock Webhook Service on the GetBlock YouTube channel for a walkthrough of setting up a webhook in the dashboard.
Webhooks draw from the same CU balance as your RPC requests:
Delivery | CU |
One delivery attempt | 25 |
One event with both phases | 50 |
One event whose 8 attempts all fail | 200 |
A test delivery | 0 |
A block with nothing for you | 0 |
As of now, it supports only Ethereum, BNB Chain, Polygon, and Robinhood
No replay: An event that fails 8 attempts is not sent again, and events during a pause are never delivered.
No automatic resume: A webhook is paused after repeated failures, or an empty balance stays paused until you resume it.
One event per request: no batching.
The Free plan includes one webhook watching up to 10 addresses, enough to build and test. Paid plans raise this to as many as 100 webhooks and 1,000,000 watched addresses per account. See Pricing and Limits.
Conclusion
With one webhook, your backend stops scanning blocks and starts reacting to the events that matter: a deposit landing, a token moving, a transaction becoming final. You choose what to watch, GetBlock does the matching, and your server receives signed, decoded events it can act on.
Ready to try it? Create your first webhook, send it a free test event, and follow the GetBlock Webhooks documentation when you are ready to go to production.
Resources
DevRel
October 21, 2026
6 min read
DevRel at GetBlock with over five years of experience in building and writing developer documentation.
Popular Posts
December 4, 2026
8 min de lectura
September 14, 2026
4 min de lectura
September 11, 2026
10 min de lectura
August 25, 2026
4 min de lectura