Unstable MethodAgave documents this as an unstable RPC PubSub blockSubscribe
subscription.
It is only available if the validator was started with
--rpc-pubsub-enable-block-subscription, which also requires
--enable-rpc-transaction-history.
Values: confirmed, finalizedThe commitment describes how finalized a block is at that point in time. See
Configuring State Commitment.This method does not accept processed.
Highest transaction version your client supports. If omitted, only legacy
transactions can be returned. If a matching block requires a higher transaction
version, the notification populates value.err instead of returning block data.This field accepts any u8. Versioned transactions exposed by RPC use version
0, and version 1 with the
v1 format — set this
to 1 to keep the subscription working on slots that carry v1 transactions.On a version error the notification arrives success-shaped with block: null
and a populated err, and the subscription does not advance past that slot
— it retries it indefinitely. Treat block: null with an error as a failure,
never as an empty block.
Notifications are delivered as blockNotification.The example below was captured from a subscription with
transactionDetails: "full", showRewards: true, and
maxSupportedTransactionVersion: 0.
null on success, "BlockStoreError" if the block could not be loaded, or an
object such as { "UnsupportedTransactionVersion": 0 } when the block contains
a transaction version above maxSupportedTransactionVersion.