Description
The Contracts stream provides real-time notifications whenever a new smart contract is deployed on the canonical chain. Use this stream to discover new assets or protocols as they are created.
Subscription Parameters
Filter notifications to specific contract addresses.
Message Fields
Deployed contract address.
Block height containing the contract creation.
Zero-based index of the deployment transaction within the block.
Unique lineage identifier for the deployment event.
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": "0104", "chain_id": 1, "params": {}}'
Response Example
{
"chain_id": 1,
"dataset_id": "0104",
"is_reorg": false,
"data": {
"address": "1234567890abcdef1234567890abcdef12345678",
"block_number": 18934221,
"block_time": "2024-04-01T12:34:56Z",
"tx_index": 7,
"log_index": 0,
"_tracing_id": "0104000000000000000000000000000000000001",
"_created_at": "2025-11-11T18:42:15.123Z"
}
}