If I have a local blockchain downloaded, is it possible to use the bitcoin-core rpc commands to query a block? For example the genesis block to get a list of all the public addresses used in that block? If it is possible, which commands do I need to use?
You can use two sequenced command - getblockhash
and getblock
.
From linux command line to get block #10000, you can run:
$ bitcoin-cli getblock `bitcoin-cli getblockhash 100000`