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 Function Results stream delivers on-chain function call return values captured as blocks are finalized. Use this stream to monitor contract state or configuration values in real-time.

Subscription Parameters

chain_id
number
required
Target EVM network.
contract_addresses
string[]
Filter by contract addresses (hex string, 20 bytes, no 0x prefix).
signature_hashes
string[]
Filter by 4-byte function selectors (e.g., 0902f1ac).

Message Fields

contract_address
string
Contract queried.
signature_hash
string
4-byte selector for the function invoked.
result
string
Hex-encoded return payload.
block_number
number
Snapshot block height when the value was observed.
_tracing_id
string
Lineage identifier for cross-referencing.

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": "0105", "chain_id": 1, "params": {"signature_hashes": ["0902f1ac"]}}'

Response Example

{
  "chain_id": 1,
  "dataset_id": "0105",
  "is_reorg": false,
  "data": {
    "contract_address": "1234567890abcdef1234567890abcdef12345678",
    "signature_hash": "0902f1ac",
    "block_number": 18934560,
    "timestamp_utc": "2024-04-01T12:34:56Z",
    "call_data": "0902f1ac",
    "result": "0000000000000000000000000000000000000000000000000de0b6b3a7640000",
    "_tracing_id": "0105000000000000000000000000000000000001",
    "_created_at": "2025-11-11T18:42:15.123Z"
  }
}