Skip to content
Subscribe to notifications when a new vote is observed in gossip. These votes are pre-consensus, so there is no guarantee they will enter the ledger.
Unstable MethodAgave documents this as an unstable RPC PubSub voteSubscribe subscription. It is only available if the validator was started with --rpc-pubsub-enable-vote-subscription.
This subscription reports TowerBFT votes from gossip. Under Alpenglow, which mainnet and devnet run, validators send votes directly to each other instead, so the subscription receives no notifications.

​Parameters

None

​Result

​result
integer
Subscription id. Pass this to voteUnsubscribe.

​Notification format

Notifications are delivered as voteNotification.
​jsonrpc
string
Always "2.0".
​method
string
Always "voteNotification".
​params
object
Notification wrapper with the vote payload and the subscription id.