Subscribe to receive notification anytime a new block is confirmed or finalized.
This subscription is considered unstable and is only available if the validator was started with the --rpc-pubsub-enable-block-subscription flag. The format of this subscription may change in the future.
This is an unstable RPC method that Helius does not support. This documentation is provided for reference only.
Websockets have a 10-minute inactivity timer; implementing health checks and sending pings every minute is heavily recommended to keep the websocket connection alive.
Filter criteria for the logs to receive results by account type; currently supported:
all - include all transactions in block
A JSON object with the following field:
mentionsAccountOrProgram: <string> - return only transactions that mention the provided public key (as base-58 encoded string). If no mentions in a given block, then no notification will be sent.