Stream real-time Solana account updates with account subscribe. Monitor balance changes, data modifications, and lamport updates via WebSocket.
string
: The account public key, sent in base58 format (required).
object
: An optional object used to pass additional parameters.
encoding
: Specifies the format for data returned in the AccountNotification. Supported values: base58, base64, base64+zstd, jsonParsed (default is base58).commitment
: Defines the commitment level for the transaction. Supported values: finalized, confirmed, processed (default is finalized).Code Example
SysvarC1ock11111111111111111111111111111111
. slot
and unixTimestamp
are both a part of the returned account data.Example Notification