Parameters
- filterobject
(Optional) A filter object to specify which transactions to receive notifications for:
- voteboolean
Alpenglow consensus votes are exchanged outside transactions. Omit this field or leave it false when subscribing to transactions
- failedboolean
If true, include failed transactions; if false, exclude them
- signaturestring
Filter notifications to a specific transaction signature
- accountsobject
Account-based filtering with the following fields:
- includearray
A list of account addresses (base-58 encoded strings) — notify when any of these appear in a transaction
- excludearray
A list of account addresses (base-58 encoded strings) — suppress notifications when any of these appear in a transaction
- requiredarray
A list of account addresses (base-58 encoded strings) that must all be present in a transaction to trigger a notification
- configobject
(Optional) A configuration object with the following fields:
- commitmentstring
The level of commitment required for the query. The options include:
- processedstring
The node will query its most recent block. Note that the block may not be complete
- confirmedstring
The node will query the most recent block that has been voted on by the supermajority of the cluster
- finalizedstring
The node will query the most recent block the cluster has recognized as finalized
- encodingstring
The encoding format for transaction data. It can be one of base58 (slow), base64, base64+zstd, or jsonParsed
- transactionDetailsstring
The level of transaction detail to return, either 'full', 'accounts', 'signatures', or 'none'
- showRewardsboolean
Whether to include block rewards in the response
- maxSupportedTransactionVersioninteger
The maximum transaction version to return, as a JSON integer. Set it to 1 to receive legacy, version 0, and version 1 transactions
Returns
- resultinteger
The subscription id (needed to unsubscribe)
- transactionNotificationobject
The notification object with the following fields:
- contextobject
API version and slot information
- valueobject
Transaction data with the following fields:
- signaturestring
The transaction signature
- slotinteger
The slot in which the transaction was processed
- transactionobject
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
- versionstring|integer
The transaction version, one of "legacy", 0, or 1
- errorobject|null
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}