4

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?

seek adventure
  • 2,239
  • 13
  • 51
Dragutin
  • 205
  • 1
  • 5

1 Answers1

5

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

knaccc
  • 8,468
  • 16
  • 22
  • 1
    Expanding 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. – dpzz May 20 '17 at 22:13