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.This is an unstable RPC method that Helius does not support. This documentation is provided for reference only.
Endpoints
Websockets are available on mainnet and devnet with the following URLs:- Mainnet
wss://mainnet.helius-rpc.com/?api-key=<API_KEY>
- Devnet
wss://devnet.helius-rpc.com/?api-key=<API_KEY>
Websockets have a 10-minute inactivity timer; implementing health checks and sending pings every minute is heavily recommended to keep the websocket connection alive.
Authorizations
Body
Response
Subscription id (needed to unsubscribe)
Notification Format
The notification will be an object with the following fields:hash: <string>
- The vote hashslots: <array>
- The slots covered by the vote, as an array of u64 integerstimestamp: <i64|null>
- The timestamp of the votesignature: <string>
- The signature of the transaction that contained this votevotePubkey: <string>
- The public key of the vote account, as base-58 encoded string