Skip to content

Instantly share code, notes, and snippets.

@randomlogin
Last active January 25, 2021 13:24
Show Gist options
  • Save randomlogin/41a8153645e14d6ca907a8cdcb82849b to your computer and use it in GitHub Desktop.
Save randomlogin/41a8153645e14d6ca907a8cdcb82849b to your computer and use it in GitHub Desktop.
curl 127.0.0.1:12037/ -X POST -d '{ "method": "getblockbyheight", "params": [ 1, true, true ] }
{
"error": null,
"id": null,
"result": {
"bits": "1c00ffff",
"chainwork": "0000000000000000000000000000000000000000000000000000020002000200",
"confirmations": 52041,
"difficulty": 256,
"extranonce": "000000150000000400000000000000000000000000000000",
"hash": "0000000000a5e40e8ba291bd7e8649747fa7fb8a7af39f5bacdb7433cd2f5971",
"height": 1,
"mask": "0000000000000000000000000000000000000000000000000000000000000000",
"mediantime": 1580745125,
"merkleroot": "28b17095216d5e211ba1f61031416a51efca54eacb8c9059440c4671b0625bbe",
"nTx": 1,
"nextblockhash": "00000000007a95b3adbd0f595c7cadc7187f20007b2c6dda2217676f042ad0f2",
"nonce": 877771570,
"previousblockhash": "5b6ef2d3c1f3cdcadfd9a030ba1811efdd17740f14e166489760741d075992e0",
"reservedroot": "0000000000000000000000000000000000000000000000000000000000000000",
"size": 351,
"strippedsize": 319,
"time": 1580745125,
"treeroot": "0000000000000000000000000000000000000000000000000000000000000000",
"tx": [
{
"blockhash": "0000000000a5e40e8ba291bd7e8649747fa7fb8a7af39f5bacdb7433cd2f5971",
"blocktime": 1580745125,
"confirmations": 52041,
"hash": "cbe05bdb550ed7e07fee45f39c065b6e41cb3400e1541614053c956dfe39dce6",
"index": 0,
"locktime": 1,
"size": 114,
"time": 1580745125,
"txid": "43b23ae794eadf72f42cc2997fa9aa5b59acc39eeab45ff26bdba2e6cb53d950",
"version": 0,
"vin": [
{
"coinbase": true,
"sequence": 368910623,
"txid": "0000000000000000000000000000000000000000000000000000000000000000",
"txinwitness": [
"6d696e656420627920687364",
"3040e5d8b63009f0",
"0000000000000000"
],
"vout": 4294967295
}
],
"vout": [
{
"address": {
"hash": "1f2dee9a6ff6b4bd64dbd1ee87014913c84e3538",
"string": "hs1qruk7axn0766t6exm68hgwq2fz0yyudfc64cpc4",
"version": 0
},
"covenant": {
"action": "NONE",
"items": [],
"type": 0
},
"n": 0,
"value": 2000
}
],
"vsize": 90
}
],
"version": 0,
"versionHex": "00000000",
"weight": 1308,
"witnessroot": "59919422c20530ece2b328adf63ec3f35a10e79375731687a81dfa7cd83a24e7"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment