Parameters
(Optional) A filter object to specify which transactions to receive notifications for:
If true, include voting transactions; if false, exclude them
If true, include failed transactions; if false, exclude them
Filter notifications to a specific transaction signature
Account-based filtering with the following fields:
A list of account addresses (base-58 encoded strings) — notify when any of these appear in a transaction
A list of account addresses (base-58 encoded strings) — suppress notifications when any of these appear in a transaction
A list of account addresses (base-58 encoded strings) that must all be present in a transaction to trigger a notification
(Optional) A configuration object with the following fields:
The level of commitment required for the query. The options include:
The node will query its most recent block. Note that the block may not be complete
The node will query the most recent block that has been voted on by the supermajority of the cluster
The node will query the most recent block confirmed by the supermajority of the cluster as having reached maximum lockout
The encoding format for transaction data. It can be one of base58 (slow), base64, base64+zstd, or jsonParsed
The level of transaction detail to return, either 'full', 'accounts', 'signatures', or 'none'
Whether to include block rewards in the response
The maximum transaction version to return, as a JSON integer. Set it to 1 to receive legacy, version 0, and version 1 transactions
Returns
The subscription id (needed to unsubscribe)
The notification object with the following fields:
API version and slot information
Transaction data with the following fields:
The transaction signature
The slot in which the transaction was processed
The transaction data and metadata, including compute units consumed, fees, log messages, pre/post account balances, token balances, and inner instructions. On version 1 transactions the message carries a transactionConfig object with the compute and fee settings
The transaction version, one of "legacy", 0, or 1
Error information if the transaction failed, otherwise null
1{2"jsonrpc": "2.0",3"result": 0,4"id": 15}
1{2"jsonrpc": "2.0",3"result": 0,4"id": 15}