在BSC上使用TX Hash获取待处理交易的详细信息

发布于 2025-01-31 02:55:26 字数 572 浏览 2 评论 0原文

我正在尝试使用其txhash获取待处理交易的详细信息。我尝试使用Web3.ETH.GetTransaction(TransActionHash),但似乎它返回了未决交易的零,但对于完成的交易效果很好。还有其他方法可以获取待处理交易的详细信息吗?我试图打开BSCSCAN,它可以显示到索引和状态。

web3.eth.getTransaction(transactionHash).then(console.log); //-> Prints null

我试图使用多个完整节点检查是否是节点的问题( https:https:https:// bsc-dataseed1 .binance.org:443 https://bbsc-ws-nariox-nariox 。

I'm trying to get the details of pending transaction using it's txhash. I tried using web3.eth.getTransaction(transactionHash) but it seems like it returns null for pending transactions but works fine for finished transactions. Is there any other way to get details of a pending transaction? I tried to open bscscan and it was able to show from to and status as indexing.

web3.eth.getTransaction(transactionHash).then(console.log); //-> Prints null

I tried to use multiple full nodes to check if it is node's issue or not (https://bsc-dataseed1.binance.org:443, https://bsc-ws-node.nariox.org:443)

To add more context, I'm trying to do what's mentioned in this answer

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

白衬杉格子梦 2025-02-07 02:55:26

我意识到问题在于我正在使用的节点。我自己托管了一个节点,这已经不再是问题了。
因此,如果您也面临此问题,则可能会使用自托管节点。

I realised that the problem is with the nodes that I'm using. I self hosted a node myself and this wasn't the problem anymore.
So, If you are also facing this issue, use self hosted nodes may be.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文