How do you find the size of the blockchain database?

0 votes
Title
asked Jul 7, 2017 by anonymous

1 Answer

0 votes

I'm not sure exactly what you mean by "the size of the blockchain database". If you mean the space taken on disk, you can use standard file system tools for this, like du on Linux. If you mean the total size of the blocks in the chain, use listblocks with verbose=true to get the size of each block, and add them up. Or did you mean something else?

answered Jul 7, 2017 by MultiChain
thanks for this -
when I call list blocks, multichain responds with "method not found". any idea how to get around this?
It's one word, listblocks. Please see the API documentation: http://www.multichain.com/developers/json-rpc-api/
yup, i tried that:

chain-23: listblocks
{"method":"listblocks","params":[],"id":1,"chain_name":"chain-23"}

error code: -32601
error message:
Method not found
OK, this is because you're not using the latest version. beta 2. You can still use getblock to get information on each block individually, or upgrade to beta 2 to gain access to the listblocks command.
My chain is on alpha 26. How do I upgrade to newest version?
Please see the upgrading instructions on the 'Download and Install' page.
...