feat: add transactionReceipts subscription support in eth_subscribe #…#10190
Merged
jframe merged 5 commits intobesu-eth:mainfrom Apr 10, 2026
Merged
Conversation
jframe
reviewed
Apr 9, 2026
...org/hyperledger/besu/ethereum/api/jsonrpc/internal/results/TransactionReceiptListResult.java
Outdated
Show resolved
Hide resolved
...onrpc/websocket/subscription/transactionreceipts/TransactionReceiptsSubscriptionService.java
Outdated
Show resolved
Hide resolved
...onrpc/websocket/subscription/transactionreceipts/TransactionReceiptsSubscriptionService.java
Show resolved
Hide resolved
…esu-eth#9347 Signed-off-by: Vivek Singh Solanki <viveksolanki0509@gmail.com>
…ransactionReceiptsSubscriptionService Signed-off-by: Vivek Singh Solanki <viveksolanki0509@gmail.com>
…Result Signed-off-by: Vivek Singh Solanki <viveksolanki0509@gmail.com>
78e180d to
6de8f47
Compare
Contributor
Author
|
@jframe Done with all the changes |
Contributor
|
Could you also add a changelog entry since this is a new feature otherwise LGTM |
Signed-off-by: Vivek Singh Solanki <viveksolanki0509@gmail.com>
Contributor
Author
|
@jframe done |
jframe
approved these changes
Apr 10, 2026
Contributor
Author
|
@jframe Do i need to rebase it again?? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR description
Add support for
transactionReceiptssubscription type ineth_subscribe.When subscribed, all transaction receipts for each new canonical block are pushed to the client as a JSON array over WebSocket. Includes an optional
transactionHashesfilter parameter (max 200 hashes) to receive only specific transaction receipts.Receipt format is identical to
eth_getTransactionReceiptHTTP API response.Changes:
TRANSACTION_RECEIPTSsubscription typeTransactionReceiptsSubscriptionService(BlockAddedObserver) with reorg handling and memoized receipt buildingtransactionHashesfilter parameter (max 200)TransactionReceiptListResultwrapper for JSON array serializationRunnerBuilderFixed Issue(s)
fixes #9347
Thanks for sending a pull request! Have you done the following?
doc-change-requiredlabel to this PR if updates are required.Locally, you can run these tests to catch failures early:
./gradlew spotlessApply./gradlew build./gradlew acceptanceTest./gradlew integrationTest./gradlew ethereum:referenceTests:referenceTests