Skip to content

eth: add eth_subscribe and unsubscribe methods - #797

Merged
MysticRyuujin merged 1 commit into
ethereum:mainfrom
s1na:eth-subscribe
Aug 10, 2026
Merged

MysticRyuujin merged 1 commit into
ethereum:mainfrom
s1na:eth-subscribe

Conversation

@s1na

@s1na s1na commented May 11, 2026

Copy link
Copy Markdown
Contributor

Adds eth_subscribe and eth_unsubscribe for the event types: newHeads, logs, newPendingTransactions, transactionReceipts.

The schema does not enforce the binding between the event type and its arguments. OpenRPC can't express "param[1]'s shape depends on param[0]'s value" across positional params. A client could send ["newHeads", ] and still pass validation.

Fixes #496.

@bomanaps

Copy link
Copy Markdown
Contributor

#790 what about this?

@bomanaps

Copy link
Copy Markdown
Contributor

had this question #790 (comment)

@s1na

s1na commented May 11, 2026

Copy link
Copy Markdown
Contributor Author

Ah I missed that PR. I don't mind closing it if we want to do it the proper way (by adding support to OpenRPC).

@MysticRyuujin
MysticRyuujin merged commit ac29a94 into ethereum:main Aug 10, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Specify subscription API

3 participants