accountSubscribe
WebSocket — JSON-RPC Subscribe to an account to receive notifications when the lamports or data for a given account public key changes.Parameters
Account Pubkey, base-58 encoded.
Configuration object:
encoding(string) —base58,base64,base64+zstd,jsonParsedcommitment(string) — commitment level
Request
Response
result value is the subscription ID used to unsubscribe.
Notification Format
accountUnsubscribe
WebSocket — JSON-RPC Cancel account change notifications.Subscription ID returned by
accountSubscribe.Response
programSubscribe
WebSocket — JSON-RPC Subscribe to a program to receive notifications when the lamports or data for an account owned by the given program changes.Parameters
Program ID, base-58 encoded.
Configuration object:
encoding(string) —base58,base64,base64+zstd,jsonParsedcommitment(string) — commitment levelfilters(array) — filter results usingmemcmpordataSize
Request
Response
Notification Format
programUnsubscribe
WebSocket — JSON-RPC Cancel program-owned account notifications.Subscription ID returned by
programSubscribe.Response
