Parameters
- program_idstring
The address encoded as a base-58 string
- objectobject
The configuration object with the following fields:
- commitmentstring
All fields are strings.
- finalized
the node will query the most recent block the cluster has recognized as finalized.
- confirmed
the node will query the most recent block that has been voted on by supermajority of the cluster.
- processed
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
- filtersstring
The filter results using various filter objects; The account must meet all filter criteria to be included in results
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 getProgramAccounts RPC HTTP method
1{2"jsonrpc": "2.0",3"result": 24040,4"id": 15}
1{2"jsonrpc": "2.0",3"result": 24040,4"id": 15}