问题描述
你好团队
我正在为项目使用POA联盟,并且我能够成功部署合同并将令牌从一个地址发送到另一个地址.我面临的问题是我无法从生成的事务哈希中检索块号 通过交易.我得到的输出如下:
I am using POA consortium for my project and I am successfully able to deploy contract and send tokens from one address to the other. The problem I am facing though is that I am not able to retrieve the block number from the transaction hash which is generated by the transaction. The output I am getting is as follows:
TX哈希:XXXXXXXXXXXX0054b9f8245fa5eba673828ba57a401298XXXXXXXXXXXXXXXX
错误:空
{blockHash:空,
blockNumber:空,
blockNumber: null,
chainId:空,
chainId: null,
条件:空,
condition: null,
创建:空,
creates: null,
来自: 'XXXXXebaad0307d9f8a2b58b32XXXXXXXXXXXX' ,
气体: 50000000 ,
gasPrice:BigNumber {s: 1 ,e: 0 ,c:[ 0 ]},
gasPrice: BigNumber { s: 1, e:0, c: [ 0 ] },
哈希:
hash:
'XXXXX7712880054b9f8245fa5eba673828ba57aXXXXXXXXXXXXXX'
}
如您所见,我正在获取TX哈希,但是没有关于blockHash或blockNumber的详细信息.任何帮助将不胜感激.
As you can see, I am getting the TX Hash, but there are no details for blockHash or blockNumber. Any help would be appreciated.
最好
Shubham
推荐答案
能否请您向我们提供您已执行的代码以接收此输出,以便我们进一步为您提供帮助?
Could you kindly provide us the code you have executed in order to receive this output so that we can further assist you?
谢谢.
这篇关于BlockNumber NULL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!