Parameters
- addressstring
The address of the account to query encoded as a base-58 string
- objectobject
The configuration object with the following fields:
- commitmentstring
The level of commitment required for the query. The options include:
- finalizedstring
The node will query the most recent block the cluster has recognized as finalized
- confirmedstring
The node will query the most recent block that has been voted on by the supermajority of the cluster
- processedstring
The node will query its most recent block. Note that the block may not be complete
- encodingstring
The encoding format for account data. It can be one of base58 (slow), base64, base64+zstd or jsonParsed
Returns
- resultinteger
The result will be an RpcResponse JSON object with id equal to the subscription id (needed to unsubscribe)
- Notification Format:
The notification format is the same as seen in the getAccountInfo RPC HTTP method
1{2"jsonrpc": "2.0",3"result": 23784,4"id": 15}
1{2"jsonrpc": "2.0",3"result": 23784,4"id": 15}