how to find the block size (in MB) of a block?

+1 vote
How do I find the block size in MB of any random block in my blockchain?

What is the avg block size and maximum block size in a blockchain?
asked Apr 1, 2016 by Cypher

1 Answer

0 votes
 
Best answer

You can use the getblock API and look at the size field of its output, for any particular block hash. You can get the hash of a block number using getblockhash. I don't think you can get average/meximum statistics directly from MultiChain, so you'd need to calculate them yourself.

answered Apr 1, 2016 by MultiChain
selected Apr 21, 2016 by Cypher
The size shown in the getblock result, is it in KB, bytes or what unit?
It's measured in bytes.
...