Skip to content

eth: add eth_subscribe and unsubscribe methods#797

Open
s1na wants to merge 1 commit into
ethereum:mainfrom
s1na:eth-subscribe
Open

eth: add eth_subscribe and unsubscribe methods#797
s1na wants to merge 1 commit into
ethereum:mainfrom
s1na:eth-subscribe

Conversation

@s1na
Copy link
Copy Markdown
Contributor

@s1na s1na commented May 11, 2026

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
Copy link
Copy Markdown
Contributor Author

s1na commented May 11, 2026

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).

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

2 participants