我如何在web3中获取有关丢弃和替换事务的信息



我正在使用web3.py.

  1. 如何获取已丢弃和已替换事务的信息
  2. 如何获取有关待处理交易的信息

您可以使用getTransaction查找事务的更多信息以及getTransactionReceipt。

挂起的交易只能通过getTransaction找到,而不能通过getTransactionReceipt找到。

https://web3py.readthedocs.io/en/stable/web3.eth.html?highlight=gettransaction#web3.eth.Eth.getTransaction

https://web3py.readthedocs.io/en/stable/web3.eth.html?highlight=gettransaction#web3.eth.Eth.getTransactionReceipt

最新更新