Skip to content

Instantly share code, notes, and snippets.

@traderbagel
Created July 21, 2018 08:01
Show Gist options
  • Save traderbagel/b088d8c6395d5fb2e4a3b29fd433d4e2 to your computer and use it in GitHub Desktop.
Save traderbagel/b088d8c6395d5fb2e4a3b29fd433d4e2 to your computer and use it in GitHub Desktop.
web3.py query receipt
>>> web3.eth.getTransactionReceipt('0x0580de11247af326aa6e71d8e3b9cb5dc23fca864bc77c0efe486110f5a8feff')
AttributeDict({'blockHash': HexBytes('0x611b64517783220be6f16efa1323330b689e65eff2205bd1a11ab2ea2bb556da'),
'blockNumber': 6002459,
'contractAddress': None,
'cumulativeGasUsed': 7966264,
'from': '0x5f779da58ff7a374e0d89e0fe65390aeee3e44e4',
'gasUsed': 21000,
'logs': [],
'logsBloom': HexBytes('0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'),
'status': 1,
'to': '0xbd721d6fc91ae8d57e205e1b34837c3094a69fde',
'transactionHash': HexBytes('0x0580de11247af326aa6e71d8e3b9cb5dc23fca864bc77c0efe486110f5a8feff'),
'transactionIndex': 50})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment