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 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

chain_id
number
required
Target EVM network.
contract_addresses
string[]
Filter notifications to specific contract addresses.

Message Fields

address
string
Deployed contract address.
block_number
number
Block height containing the contract creation.
tx_index
number
Zero-based index of the deployment transaction within the block.
_tracing_id
string
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"
  }
}