Evaluate a specific block

Run your chainhooks against specific blocks for testing, debugging, and historical indexing.

The evaluate endpoint replays a single block against one of your registered chainhooks so you can validate filters without waiting for live traffic.

Use it to reproduce missed deliveries, inspect payload schemas after filter changes, or test webhook infrastructure with known blocks before enabling a hook in production.

evaluateChainhook

Evaluation Methods

MethodParameterExample
By heightblock_height{ block_height: 100000 }
By hashindex_block_hash{ index_block_hash: '0xa204...' }

Example

1
import { ChainhooksClient, CHAINHOOKS_BASE_URL } from '@hirosystems/chainhooks-client';
2
3
const client = new ChainhooksClient({
4
baseUrl: CHAINHOOKS_BASE_URL.testnet,
5
apiKey: process.env.HIRO_API_KEY!,
6
});
7
8
await client.evaluateChainhook('chainhook-uuid', {
9
block_height: 100000,
10
});

Returns HTTP 204 No Content. If filters match, webhook payload is sent to your action.url.

Use Cases

Use CaseDescriptionExample
DebugInvestigate missed eventsEvaluate specific block that should have triggered
BackfillIndex historical dataProcess past blocks after creating chainhook
Re-processFix webhook handler issuesRe-evaluate after fixing bugs

Next steps

How is this guide?