-
Notifications
You must be signed in to change notification settings - Fork 20.4k
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
newPendingTransactions support in ethclient.go #22916
Comments
another issue is |
|
This is not entirely true. We do have support for eth_subscribe APIs in ethclient, just not for pending transactions. |
I know, but it should not be in ethclient imo as it is not part of the json-rpc api standard |
can you post a sample code for subscribing to pending transaction. I am new to Go and Geth. Please it would help me a lot for my project. Thanks in advance! |
Fixed via #25186. |
hi, for
eth_subscribe
method, I wonder why the client only supportsnewHeads
go-ethereum/ethclient/ethclient.go
Line 333 in 16bc574
but don't support
newPendingTransactions
in ethclient.gothey are all be mentioned in the same place in the document: https://geth.ethereum.org/docs/rpc/pubsub
but if I want to subscribe
newPendingTransactions
I have to use underlaying rpc client. Since it's not exported, so I have to instantiation a*rpc.Client
besides an*ethclient.Client
The text was updated successfully, but these errors were encountered: