Kit
Type aliases

VoteNotificationsApi

VoteNotificationsApi = object

Methods

voteNotifications()

voteNotifications(): VoteNotificationsApiNotification

Subscribe to receive notifications anytime a new vote is observed in gossip.

These votes are pre-consensus therefore there is no guarantee these votes will enter the ledger.

This subscription is unstable and only available if the validator was started with the --rpc-pubsub-enable-vote-subscription flag. The format of this subscription may change in the future.

Returns

VoteNotificationsApiNotification

See

https://solana.com/docs/rpc/websocket/votesubscribe

On this page