How to get pending transaction?
Closed this issue · 2 comments
greyireland commented
Can implement ethersjs on("pending",function())?
dingding001 commented
data := make(chan []byte)
_, err := Client.Subscribe("newPendingTransactions", func(b []byte) {
data <- b
})
ferranbt commented
Hey, as @dingding001 pointed out, you can use the Subscribe
method for that. Unfortunately, there is no typed function for this right now.