How to extract data, blocks from blockcain stored on local disk drive, and acquire it through some usual data transfer chanel (eg. JSON) in other application?
1 Answer
Run a local daemon, and then use the daemon RPC API to query it for blocks:
https://getmonero.org/knowledge-base/developer-guides/daemon-rpc
-
1Expanding on this answer, the
jq
utility is really handy to filter out the JSON output. To illustrate, have a look at this example, which dealt with the date of the genesis block, and number of days on the blockchain.– dpzzCommented May 20, 2017 at 22:13