Source
account_subscribeParameters
Account Pubkey, as base-58 encoded string
Optional configuration object.
Show propertiesHide properties
Show propertiesHide properties
Values:
processed, confirmed, finalizedThe commitment describes how finalized a block is at that point in time. See
Configuring State Commitment.Values:
base58, base64, base64+zstd, binary, jsonParsedEncoding format for account data.base58is slow.jsonParsedattempts to use program-specific parsers to return more human-readable account state data.- If
jsonParsedis requested but no parser is available, the RPC node falls back to[data, "base64"]. binaryis a deprecated legacy alias for base58 data returned as a plain string.
Request a slice of the account’s data.
| Field | Type | Description |
|---|---|---|
offset | usize | Byte offset from which to start reading account data. |
length | usize | Number of bytes to return. |
Example
{ "offset": 0, "length": 32 }
Data slicing is only available for
base58, base64, base64+zstd, and
binary encodings.base58 and binary use base-58 encoding and fail if the selected payload is
more than 128 bytes after slicing. Use base64 for larger accounts.accountSubscribe accepts the same config fields as
getAccountInfo, but PubSub subscriptions
currently ignore minContextSlot.Result
Subscription id. Pass this to
accountUnsubscribe.
Notification format
Notifications are delivered asaccountNotification.
{
"jsonrpc": "2.0",
"method": "accountNotification",
"params": {
"result": {
"context": {
"slot": 559
},
"value": {
"lamports": 1169280,
"data": {
"program": "sysvar",
"parsed": {
"info": {
"epoch": 0,
"epochStartTimestamp": 1774643544,
"leaderScheduleEpoch": 1,
"slot": 559,
"unixTimestamp": 1774643807
},
"type": "clock"
},
"space": 40
},
"owner": "Sysvar1111111111111111111111111111111111111",
"executable": false,
"rentEpoch": 0,
"space": 40
}
},
"subscription": 10
}
}
Always
"2.0".Always
"accountNotification".Notification wrapper with the updated account payload and the subscription id.
Show propertiesHide properties
Show propertiesHide properties
Notification result object with
context and value. For PubSub notifications,
context includes slot and omits apiVersion.Show propertiesHide properties
Show propertiesHide properties
Context for the bank slot that produced the account snapshot.
Show propertiesHide properties
Show propertiesHide properties
Slot associated with the notification.
Updated account state using the same structure documented in
Account Data.
Subscription id that produced this notification.