Skip to main content
WSS
wss://stream.blockdb.io/v1/evm/
Messages
subscribe
type:object
unsubscribe
type:object
subscribe_response
type:object
unsubscribe_response
type:object
update
type:object

Description

The Blocks stream delivers real-time canonical EVM blocks as they are finalized. Each message contains the full block header along with provenance and integrity metadata.

Subscription Parameters

chain_id
number
required
Target EVM network. See the Chain enumeration for supported values.

Message Fields

Each message in the stream follows the standard block schema:
block_number
number
Sequential block height.
block_hash
string
Keccak-256 hash of the block header (32 bytes, hex string, no 0x prefix).
parent_block_hash
string
Keccak-256 hash of the parent block.
miner
string
Fee recipient / coinbase address.
timestamp_utc
string
Timestamp when the block was mined.
_tracing_id
string
Tracing identifier for the canonical block record.
_is_reorg
boolean
Set to true if this message represents a chain reorganization (re-submitting a block that was previously eclipsed).

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": "0101", "chain_id": 1, "params": {}}'

Response Example

{
  "chain_id": 1,
  "dataset_id": "0101",
  "is_reorg": false,
  "data": {
    "block_number": 12345678,
    "block_hash": "7b5c0972efb6a0b5be4a4d4a0de5d1abd922478a53f32b2c717a800c862ba9e0",
    "parent_block_hash": "f78e26c5959a94d6a62ed3837f5dcecf0d3761bf0a502e12a08fd7bc44c8568d",
    "miner": "0000000000000000000000000000000000000000",
    "gas_limit": 30000000,
    "size": 124836,
    "timestamp_utc": "2025-11-11T18:42:15.123Z",
    "_tracing_id": "010100000000000000000000000000000000",
    "_is_reorg": false,
    "_created_at": "2025-11-11T18:42:15.123Z"
  }
}