-
Notifications
You must be signed in to change notification settings - Fork 21.4k
Closed
Labels
Description
hi, for eth_subscribe
method, I wonder why the client only supports newHeads
go-ethereum/ethclient/ethclient.go
Line 333 in 16bc574
func (ec *Client) SubscribeNewHead(ctx context.Context, ch chan<- *types.Header) (ethereum.Subscription, error) { |
but don't supportnewPendingTransactions
in ethclient.go
they 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
type Client struct { c *rpc.Client}