Subscribe
Request Body
| Parameter | Type | Description |
|---|---|---|
method* | string | Must be "subscribe" |
subscription* | object | See below |
subscription.type* | string | Must be "newBlocks" |
user parameter required for global subscriptions.
Response
Subscription Confirmation:Block Fields
| Field | Type | Description |
|---|---|---|
blockNumber | number | Sequential block number |
timestamp | number | Block creation time in milliseconds |
transactionCount | number | Number of transactions in block |
blockHash | string | Unique block hash |
Unsubscribe
Notes
- Global subscription - no user address required
- Blocks sent in real-time as they are created
- Useful for monitoring blockchain progress and transaction confirmations