$ bitcoin-cli getblockhash 12345
00000000b8980ec1fe96bc1b4425788ddc88dd36699521a448ebca2020b38699
$ bitcoin-cli getblock 00000000b8980ec1fe96bc1b4425788ddc88dd36699521a448ebca2020b38699
{
"hash": "00000000b8980ec1fe96bc1b4425788ddc88dd36699521a448ebca2020b38699",
"confirmations": 500199,
"strippedsize": 216,
"size": 216,
"weight": 864,
"height": 12345,
"version": 1,
"versionHex": "00000001",
"merkleroot": "fd1dc97a826eb93b485b6bada84a807ee81181f7ab2720cefb5fa96729363157",
"tx": [
"fd1dc97a826eb93b485b6bada84a807ee81181f7ab2720cefb5fa96729363157"
],
"time": 1240784732,
"mediantime": 1240781715,
"nonce": 784807199,
"bits": "1d00ffff",
"difficulty": 1,
"chainwork": "0000000000000000000000000000000000000000000000000000303a303a303a",
"previousblockhash": "0000000076876082384460fb5a231cc5a5e874b9762e15a4e7b1fc068f749cdf",
"nextblockhash": "00000000a08518aae9f8f95cc295d1331b937b12e1e885b44ed07d95f9a625e5"
}
$ bitcoin-cli getrawtransaction fd1dc97a826eb93b485b6bada84a807ee81181f7ab2720cefb5fa96729363157 true
{
"txid": "fd1dc97a826eb93b485b6bada84a807ee81181f7ab2720cefb5fa96729363157",
"hash": "fd1dc97a826eb93b485b6bada84a807ee81181f7ab2720cefb5fa96729363157",
"version": 1,
"size": 135,
"vsize": 135,
"locktime": 0,
"vin": [
{
"coinbase": "04ffff001d02aa06",
"sequence": 4294967295
}
],
"vout": [
{
"value": 50.00000000,
"n": 0,
"scriptPubKey": {
"asm": "04c5d62274610e82819939c3341a4addc72634664d73b11ba761de42839aa3496f93b3b3ee80e497eb5a68439b02f04e9aeb1604fbcaa074aa82f0f7574f9f110d OP_CHECKSIG",
"hex": "4104c5d62274610e82819939c3341a4addc72634664d73b11ba761de42839aa3496f93b3b3ee80e497eb5a68439b02f04e9aeb1604fbcaa074aa82f0f7574f9f110dac",
"reqSigs": 1,
"type": "pubkey",
"addresses": [
"18x6rfvHEgH1iTbkJTjRpYJrfSAhWdUiQM"
]
}
}
],
"hex": "01000000010000000000000000000000000000000000000000000000000000000000000000ffffffff0804ffff001d02aa06ffffffff0100f2052a01000000434104c5d62274610e82819939c3341a4addc72634664d73b11ba761de42839aa3496f93b3b3ee80e497eb5a68439b02f04e9aeb1604fbcaa074aa82f0f7574f9f110dac00000000",
"blockhash": "00000000b8980ec1fe96bc1b4425788ddc88dd36699521a448ebca2020b38699",
"confirmations": 500221,
"time": 1240784732,
"blocktime": 1240784732
}