FULL NAME
SUBJECT
Customer Support
Customer Support
Business / Sales
Partnership
Feedback
Other
TEXT MESSAGE
0/300
⚡ Test Our Private Nodes of 40+ Blockchains just for $50!
Method: POST getblock
Returns information about a block given its hash.
block hash
- string
the hash of the block.
verbose
- boolean
Optional, default=true
specifies the block is returned as a JSON object instead of hex-encoded string.
verbosetx
- boolean
Optional, default=false
specifies that each transaction is returned as a JSON object and only applies if the verbose flag is true.
curl --location --request POST 'https://dcr.getblock.io/mainnet/' \ --header 'x-api-key: YOUR-API-KEY' \ --header 'Content-Type: application/json' \ --data-raw '{"jsonrpc": "2.0", "method": "getblock", "params": ["000000000000000015cf0d0da939e61d0cd7a37443a99c726ecc9cbbd61b047f", true, false], "id": "getblock.io"}'
{ "error": null, "id": "getblock.io", "jsonrpc": "2.0", "result": { "bits": "183e974b", "chainwork": "0000000000000000000000000000000000000000001c905e2bb5d609816e1bce", "confirmations": 294, "difficulty": 17566344339.600372, "extradata": "f2c800035c665b01000000000000000000000000000000000000000000000000", "finalstate": "ce7560f23e49", "freshstake": 1, "hash": "000000000000000015cf0d0da939e61d0cd7a37443a99c726ecc9cbbd61b047f", "height": 589761, "merkleroot": "56d04256d461f53b339f03b6cdee5f2d247012798fccdca8b5dcac686bdbb28d", "nextblockhash": "00000000000000003772a1ee24ff949121ea6b857c26bc9a48f9680394613486", "nonce": 176151922, "poolsize": 40926, "previousblockhash": "00000000000000001997f485505c14e33c2f6279e81bdbb27ffce3560800465c", "revocations": 0, "sbits": 193.4765256, "size": 57559, "stakeroot": "45d451ab4b38a383118e9f9530f9aa9febfd9bc5df2188425fbb45b17001f04f", "stakeversion": 8, "stx": [ "323de5cf5bf4bc6df3d3326f281c5b86065d77c5654c332213f5acfd18f76e7b", "4197133ce91ec872f7f85de704cd539b71a6aaff085551c215eda2dbb080bd2c", "47aed9d6ed49f12268a01266369370bdd66557f9b96b22fed3db8baaea181302", "2ffa749c87881ccaf6fc4bf6fa7d114233f98dcb2dc6c7124875e521636f6127", "da02529d22108bbcdf0b13a81b31a1bc2df9ef731daffb057c70ee204bc6f338", "3af0327b2d8054eaa02573b996e3adc1bed6a7e8ad8d82e0dc63bdd90d8521cb", "0f79afab6cb5d631ae5368eeb87ff9d4fcd8fc1cff7584513d798b3f34643e17" ], "time": 1631705840, "tx": [ "a2dfb8de368fafb349f9b37f7f59065860488c394a522ffb7fec4e3f9a10e08e", "364e261a654bdfb776315bd2df59401115710bdda87a7ff3a61435fa72d72fed", "0b90464fdca3fa2dabe0117b1118b66fa325ffde18051d05c30aacd3541db416", "d0b4bd5e4118bdf752849164a9b99bac1f8e67fca1d34cf6c3f895555ce14f3d", "dc4f35dd34f1a1f5498c17bada26ae276924946b06c4e18b3b87fb4cbe374026", "9c9645b4b128fb456ca70addbbb2e518bb7946f7c2698295d303f62b650e5e4c", "762ffda350e03086750b59941778b03446194a8db02d32157af4b983547df308", "62aced1596f6ac95191f6d5e877c0c7d55f2a20a1023fb64ef3bc9dfff7529cf" ], "version": 8, "votebits": 1, "voters": 5 } }