-
Notifications
You must be signed in to change notification settings - Fork 470
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
support for eth_pendingTransactions
#440
Comments
hey! Happy to accept the PR, the library was originally based on Parity's/OpenEthereum's RPCs, but tries not to be biased towards any particular client (if it's within the RPC spec). |
Thanks @tomusdrw . I researched a bit more and found that getting pending transactions is not part of the standard JSON RPC API but can be found under different names in client-specific calls:
What is confusing for me is that Assuming my digging is correct, we can just add support for |
Might be some historical reasons, or for instance compatibility with Ganache?
Yes, I like the idea.
If you mean to support Ganache for instance - sure, but please make sure that's the case and we need to document it properly. If you mean to have a call that will attempt to unify Geth and OpenEthereum behaviour - then no, I'd like to keep the APIs as close to the spec and low-level RPCs as possible. We could introduce some more high-level "compat" namespace for this if needed. |
Implemented by #451 |
Hi, it seems that the call
eth_pendingTransactions
is currently not supported, while getting a pending block is supported viablock(BlockNumber::Pending.into)
as #404 claims. A stackoverflow answer suggests thateth_pendingTransactions
is Geth specific and thus maybe the reason why it isn't supported here?If mistaken, I can give the implementation a try with some hints.
The text was updated successfully, but these errors were encountered: