Parameters
- filtersstring
The filter criteria for the logs to receive results by account type. Only one of the following filter can be passed at a time. The following filters types are currently supported:
- allstring
Subscribe to all transactions
- allWithVotesstring
Subscribe to all transactions. Same as all
- objectobject
An object with the following field:
- mentionsarray
Subscribe to all transactions that mention the provided address (as base-58 encoded string). The mentions field currently only supports one address string per method call. Listing additional addresses will result in an error
- encoding
The encoding format for account data. It can be one of base58 (slow), base64, base64+zstd or jsonParsed
- objectarray
An 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
Returns
- resultinteger
The result will be an RpcResponse JSON object with id equal to the subscription id (needed to unsubscribe)
- Notification Format:object
The notification will be an RpcResponse JSON object with value equal to
- signaturestring
The transaction signature base58 encoded
- errobject
Error if transaction failed, null if transaction succeeded
- logsarray
An array of log messages the transaction instructions output during execution, null if simulation failed before the transaction was able to execute (for example due to an invalid blockhash or signature verification failure)
1{2"jsonrpc": "2.0",3"result": 24040,4"id": 15}
1{2"jsonrpc": "2.0",3"result": 24040,4"id": 15}