我想做一些交易。确实像前面提到的here
sendRawTransaction向我返回事务的哈希。但是没有任何交易。我的待处理事务计数为0。当我使用这个散列调用getTransaction方法时,结果是
{
'blockHash': None,
'blockNumber': None,
'from': 'my address',
'gas': 118685,
'gasPrice': 1000000000,
'hash': HexBytes('some hash'),
'input': 'some long hash',
'nonce': 1254,
'r': HexBytes('...'),
's': HexBytes('...'),
'to': 'my contract address',
'transactionIndex': None,
'v': 42,
'value': 0
}可能的原因是什么?
发布于 2021-02-20 22:50:25
通过getTransaction的documentation,它仅在挖掘事务之后才返回事务。您可以等待使用waitForTransactionReceipt method对其进行挖掘。
https://stackoverflow.com/questions/66059397
复制相似问题