blockSubscribe
WebSocket — JSON-RPC Subscribe to receive notifications anytime a new block is confirmed or finalized.Parameters
Filter — either
"all" for all transactions, or an object:mentionsAccountOrProgram(string) — only return transactions mentioning this public key
Configuration object:
commitment(string) —finalizedorconfirmedencoding(string) —json,jsonParsed,base58,base64transactionDetails(string) —full,accounts,signatures,nonemaxSupportedTransactionVersion(integer)showRewards(boolean)
Request
With Filter
Response
blockUnsubscribe
WebSocket — JSON-RPC Cancel block notifications.Subscription ID returned by
blockSubscribe.Response
rootSubscribe
WebSocket — JSON-RPC Subscribe to receive notifications anytime a new root is set by the validator. Parameters: NoneRequest
Response
Notification Format
Notifications contain the latest root slot number as an integer.rootUnsubscribe
WebSocket — JSON-RPC Cancel root notifications.Subscription ID returned by
rootSubscribe.Response
slotSubscribe
WebSocket — JSON-RPC Subscribe to receive notifications whenever a slot is processed by the validator. Parameters: NoneRequest
Response
Notification Format
slotUnsubscribe
WebSocket — JSON-RPC Cancel slot notifications.Subscription ID returned by
slotSubscribe.Response
slotsUpdatesSubscribe
WebSocket — JSON-RPC Subscribe to receive notifications from the validator on a variety of updates on every slot. Parameters: NoneRequest
Response
Notification Format
slotsUpdatesUnsubscribe
WebSocket — JSON-RPC Cancel slot-update notifications.Subscription ID returned by
slotsUpdatesSubscribe.Response
