Skip to content

Instantly share code, notes, and snippets.

@Deadlyelder
Last active June 2, 2017 08:17
Show Gist options
  • Save Deadlyelder/e755124b7074baaf14532675e4b11907 to your computer and use it in GitHub Desktop.
Save Deadlyelder/e755124b7074baaf14532675e4b11907 to your computer and use it in GitHub Desktop.
bitcoin-cli RPC Calls
$ bitcoin-cli -testnet getblockhash 7777
0000000007b52c4ff25443ab5a07cea530bb6981aad956116239e9c060bda368
$ bitcoin-cli -testnet getblock 0000000007b52c4ff25443ab5a07cea530bb6981aad956116239e9c060bda368
{
"hash": "0000000007b52c4ff25443ab5a07cea530bb6981aad956116239e9c060bda368",
"confirmations": 1118426,
"strippedsize": 191,
"size": 191,
"weight": 764,
"height": 7777,
"version": 1,
"versionHex": "00000001",
"merkleroot": "064d68e9b8eb27b6db3a1f993cf8c1fefd4acc86721e30a062abac17de3b2638",
"tx": [
"064d68e9b8eb27b6db3a1f993cf8c1fefd4acc86721e30a062abac17de3b2638"
],
"time": 1338180890,
"mediantime": 1338180889,
"nonce": 2057802261,
"bits": "1c0ffff0",
"difficulty": 16,
"chainwork": "0000000000000000000000000000000000000000000000000000995099509950",
"previousblockhash": "00000000010876fecdc6f59b34a95ba790e5140ef694986e4b7ac9aadde3415b",
"nextblockhash": "000000000a14868100bb1cb9cbf25fa853df56c56392556ba66aecc6de0af641"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment