Subscribe to receive notification anytime a new block is confirmed
or finalized
.
--rpc-pubsub-enable-block-subscription
flag. The format of this subscription may change in the future.wss://mainnet.helius-rpc.com/?api-key=<API_KEY>
wss://devnet.helius-rpc.com/?api-key=<API_KEY>
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.