Description
The Impact Grid stream delivers real-time Level 2 impact grids for ERC-20 token pairs. Each message provides executable sizes and resulting prices across a configurable radius as liquidity shifts on-chain.
Subscription Parameters
ERC-20 contract address for the base asset.
ERC-20 contract address for the quote asset.
Basis-point spacing between grid points.
Message Fields
Mid price in quote units per base unit.
Ordered impact datapoints from best price outward.
Block height anchoring the snapshot.
Row-level lineage hash for correlation.
Subscription Example
# Use wscat to connect and subscribe
wscat -c wss://stream.blockdb.io/v1/evm/ \
-H "Authorization: Bearer $BLOCKDB_API_KEY" \
-x '{"action": "subscribe", "dataset_id": "0402", "chain_id": 1, "params": {"base_token_address": "c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2", "quote_token_address": "a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"}}'
Response Example
{
"chain_id": 1,
"dataset_id": "0402",
"is_reorg": false,
"data": {
"metric": "impact-grid",
"base_token_address": "c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
"quote_token_address": "a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
"current_price": "3025.219821481234567890",
"grid_step_bps": 10,
"grid_radius_bps": 1000,
"points": [
{
"offset_bps_abs": 0,
"size_in": "0.000000000000000000",
"size_out": "0.000000000000000000",
"price_at_point": "3025.219821481234567890"
},
{
"offset_bps_abs": 10,
"size_in": "12.500000000000000000",
"size_out": "37980.000000000000000000",
"price_at_point": "3032.984812912345678901"
}
],
"genesis_block_number": 18935678,
"_tracing_id": "0402000000000000000000000000000000000000",
"_created_at": "2025-11-11T18:42:15.123Z"
}
}