Skip to content
Real-time WebSocket subscriptions for monitoring blockchain state changes. Connect to ws://127.0.0.1:8900 when running Surfnet. Surfnet implements accountSubscribe, logsSubscribe, programSubscribe, signatureSubscribe and slotSubscribe; blockSubscribe, voteSubscribe and slotUpdatesSubscribe are listed for completeness but are not supported. In every notification the payload is wrapped in params.result, next to the subscription id.

​accountSubscribe

Account subscribe endpoint specification Parameters
​pubkey
string
required
Account public key to monitor (base-58 encoded)
​config
RpcAccountSubscribeConfig
Optional subscription configuration
Subscribe
Subscribe response
Notification
accountUnsubscribe
accountUnsubscribe response

​blockSubscribe

blockSubscribe - Subscribe to block updates Not supported by Surfnet. blockSubscribe is rejected (or not found) by the Surfnet WebSocket server. It is listed because it is part of the Solana RPC API.

​logsSubscribe

logsSubscribe - Subscribe to transaction logs
Subscribe
Subscribe response
Notification
logsUnsubscribe
logsUnsubscribe response

​programSubscribe

programSubscribe - Subscribe to program account changes
Subscribe
Subscribe response
Notification
programUnsubscribe
programUnsubscribe response

​signatureSubscribe

Signature subscribe endpoint specification Parameters
​signature
string
required
Transaction signature to monitor (base-58 encoded)
​config
RpcSignatureSubscribeConfig
Optional subscription configuration
Subscribe
Subscribe response
Notification
signatureUnsubscribe
signatureUnsubscribe response

​slotSubscribe

Slot subscribe endpoint specification
Subscribe
Subscribe response
Notification
slotUnsubscribe
slotUnsubscribe response

​slotUpdatesSubscribe

slotUpdatesSubscribe - Subscribe to slot updates Not supported by Surfnet. slotUpdatesSubscribe is rejected (or not found) by the Surfnet WebSocket server. It is listed because it is part of the Solana RPC API.

​voteSubscribe

voteSubscribe - Subscribe to vote account updates Not supported by Surfnet. voteSubscribe is rejected (or not found) by the Surfnet WebSocket server. It is listed because it is part of the Solana RPC API.