Timeline for How to query the amount of mining reward from a certain block?
Current License: CC BY-SA 3.0
8 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
S Feb 3, 2018 at 20:16 | history | suggested | JDenais | CC BY-SA 3.0 |
Changed de static mining reward which is now 3.0 ether (as per wiki)
|
Feb 3, 2018 at 19:54 | review | Suggested edits | |||
S Feb 3, 2018 at 20:16 | |||||
Apr 13, 2017 at 13:01 | history | edited | CommunityBot |
replaced http://ethereum.stackexchange.com/ with https://ethereum.stackexchange.com/
|
|
Aug 18, 2016 at 14:52 | comment | added | AdrianClv |
Thank you, you are right. I was mixing the getBlock() function with getTransactionReceipt() for some reason. And for the reward from uncles, then it would be enough to do numberOfUncles*5/32 ? Reading the wiki page, it also says: "Uncles included in a block formed by the successful PoW miner receive 7/8 of the static block reward = 4.375 ether A maximum of 2 uncles allowed per block."
|
|
Aug 18, 2016 at 14:20 | comment | added | Richard Horrocks |
Just .gasUsed . Have a look at the return values for eth_getBlockByHash - you'll see that .gasUsed is the total for that block. .cumulativeGasUsed is when you use one of the transaction APIs (not block-level APIs) and you want the total for the block in which the transaction resides.
|
|
Aug 18, 2016 at 14:11 | comment | added | AdrianClv |
It would be web3.eth.getBlock(<block>).gasUsed or web3.eth.getBlock(<block>).cumulativeGasUsed ?
|
|
Jun 14, 2016 at 5:18 | vote | accept | Roland Kofler | ||
Jun 13, 2016 at 13:01 | history | answered | Richard Horrocks | CC BY-SA 3.0 |