Skip to main content
Subscribe to receive notification anytime a new block is confirmed or finalized.

On ThorNode

The upstream node does not enable block subscriptions; the request returns -32601 Method not found. Use Yellowstone gRPC or poll getBlock.

Parameters

array
required

Notification format

The notification will be an object with the following fields:
  • slot: <u64> - The corresponding slot.
  • err: <object|null> - Error if something went wrong publishing the notification otherwise null.
  • block: <object|null> - A block object as seen in the getBlock RPC HTTP method.

Response

integer
Subscription id (needed to unsubscribe)