Parameters
- filterobject
(Optional) A filter object specifying which pre-execution transactions to receive notifications for. All fields are optional. Account filters match static account keys plus resolved Address Lookup Table (ALT) loaded addresses. Version 1 transactions carry every account inline, so no ALT resolution is involved.
- voteboolean
If true, deliver only simple vote transactions; if false, exclude simple vote transactions; if omitted, include both. Matches Agave's simple-vote transaction classification — it does not match any transaction that merely contains a Vote program instruction
- signaturestring
Deliver only the transaction with the given signature (base-58 encoded string)
- accountsobject
Account-based filtering with the following fields:
- includearray
A list of account addresses (base-58 encoded strings) — deliver transactions that touch at least one listed account
- excludearray
A list of account addresses (base-58 encoded strings) — drop transactions that touch any listed account
- requiredarray
A list of account addresses (base-58 encoded strings) — deliver only transactions that touch all listed accounts
Returns
- resultinteger
The subscription id (needed to unsubscribe)
- shredTransactionNotificationobject
The notification object with the following fields:
- resultobject
An object containing the notification context and value:
- contextobject
Context information, including the slot the transaction was observed in
- valueobject
Pre-execution transaction data with the following fields:
- slotinteger
The slot the transaction was observed in
- signaturestring
The transaction signature
- transactionobject
The decoded transaction containing the signatures array and the message (header, accountKeys, recentBlockhash, instructions, and addressTableLookups). Version 1 messages carry transactionConfig in place of addressTableLookups. Each instruction includes programIdIndex, accounts, data, and stackHeight; stackHeight is always 1 because only static, top-level instructions exist before execution. No execution metadata is included
- versionstring|integer
The transaction version, one of 'legacy', 0, or 1
- loadedAddressesobject|null
For v0 transactions, the addresses resolved from Address Lookup Tables, with 'writable' and 'readonly' arrays. Set to null when one or more lookup tables cannot be resolved. Omitted for legacy and version 1 transactions
- subscriptioninteger
The subscription id that produced the notification
1{2"jsonrpc": "2.0",3"result": 2440271,4"id": 15}
1{2"jsonrpc": "2.0",3"result": 2440271,4"id": 15}