Skip to content

Instantly share code, notes, and snippets.

@letterj
Created February 25, 2020 19:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save letterj/8c35199572016d47643490928f373af4 to your computer and use it in GitHub Desktop.
Save letterj/8c35199572016d47643490928f373af4 to your computer and use it in GitHub Desktop.
Results from eth.getBlock
{
difficulty: null,
extraData: null,
gasLimit: 4294967295,
gasUsed: null,
hash: '0x75dd2700cc046bbc839d9b7962241f800dabd552aa56faff16defb9e95494050',
logsBloom: '0x00000000000000000000000000000000000000000000000000000000000000000000000000010000008000000000000000200000
080000020000000000000000000000000000000000000000000001000000000000000000000200000000000000000000000000000008000000000000
000000000000000000000000000000000000000002000000000002000000000000000000000000000000000000000000000000000000000000000000
000000000000080000000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000',
miner: '0x0000000000000000000000000000000000000000',
nonce: null,
number: 21268,
parentHash: '0x6cc2bb83684de2457bed22b267c08c65fe03fb400f4175c762ecfa43553ff516',
sha3Uncles: null,
size: 883,
stateRoot: '0xeee1d78705cd0a1ab4458c74dec1bda3f56d5067541fb2e17cf9cd6fa4f33aa7',
timestamp: 1582642340,
totalDifficulty: null,
transactions: [
'0xf1be4827c51ef8c605c9c3908b3ff238db0efa119b0cb550426c8cc450d5d34a'
],
transactionsRoot: '0x429cbbd16a074f835f591fc555178fb25119d778976d32fbb368b9f0993c30a0',
uncles: null
}
Results from eth_getTransactionReceipt(0xf1be4827c51ef8c605c9c3908b3ff238db0efa119b0cb550426c8cc450d5d34a)
{
"blockHash":"0x75dd2700cc046bbc839d9b7962241f800dabd552aa56faff16defb9e95494050",
"blockNumber":"0x5314",
"contractAddress":null,
"cumulativeGasUsed":null,
"from":"0x20530d9a5c574e781ec51c9922e14b9d824edc1d",
"gasUsed":"0x58f7",
"logs":null,
"logsBloom":"0x00000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000080000020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"status":"0x1",
"to":"0x56f42addde26e83c628ffd0c3ec2338a209ea3e9",
"transactionHash":"0xf1be4827c51ef8c605c9c3908b3ff238db0efa119b0cb550426c8cc450d5d34a",
"transactionIndex":"0x0"
}
If I understood you correctly this morning I should have the gotten information in the ""logs"" in the Transaction Receipt. In this case it is null.
I just want to understand the underlying structure.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment