geth ws连接 调用txpool_content方法失败问题

各位大佬,请问自建的以太节点使用ws访问,调用的txpool系列的方法,却都返回{"jsonrpc":"2.0","id":1,"error":{"code":-32601,"message":"the method txpool_content does not exist/is not available"}}

但是用http调用这个参数却可以 ,我的geth版本是1.10.21,golang版本是1.19,wsapi刚也开了txpool。

我是想用来监听内存池指定地址的最新交易,但是也不清楚该用什么方法,有没有大佬们知道的

请先 登录 后评论

1 个回答

张小风
请先 登录 后评论