voteSubscribe
Subscribe to receive notification anytime a new vote is observed in gossip. These votes are pre-consensus therefore there is no guarantee these votes will enter the ledger.
Parameters
None
No parameters are required for this method.
Result
Returns an <integer>
representing the subscription ID. This ID is required to unsubscribe.
Code Sample
Request Example:
Response Example:
Notification Format
The notification is an object with the following fields:
hash
(string
): The vote hash.slots
(array
): The slots covered by the vote, as an array ofu64
integers.timestamp
(i64 | null
): The timestamp of the vote.signature
(string
): The signature of the transaction containing this vote.votePubkey
(string
): The public key of the vote account, as a base-58 encoded string.
Example Notification
Last updated