如何在 BSC 待处理池中查看我的待处理交易?

时间:2021-06-27 19:03:40

标签: web3 web3js binance-smart-chain web3py

我目前正在尝试从 BSC 待处理的交易中获取数据,所以我一直在使用这些代码行来查看内存池中的变化:

    web3_filter= web3.eth.filter('pending')

    transaction_hashes = web3.eth.getFilterChanges(web3_filter.filter_id)

    for tx in transaction_hashes:

        Datatx = web3.eth.getTransaction(tx)

似乎有效,我可以看到添加到池中并在 while 循环中刷新的新待处理事务。但是当我执行“swapExactTokensForETH”来测试并在内存池中查看我的交易时,它没有出现。我究竟做错了什么!有什么我遗漏的吗?

0 个答案:

没有答案
相关问题