zec

ZEC

POST

GET

chevron-right

Last updated on January 1, 1970

2 min read

Method getblockheader undefined ()
connect with JSON-RPC protocol

getblockheader

info-circle-fill

If verbose is false, returns a string that is serialized, hex-encodeddata for blockheader hash.If verbose is true, returns an Object with information about blockheaderhash.

Parameters

hash - string

The block hash.

verbose - boolean

Optional, default=true.

true for a json object, false for the hex encoded data.

Request

curl --location --request POST 'https://zec.getblock.io/mainnet/' 
--header 'x-api-key: YOUR-API-KEY' 
--header 'Content-Type: application/json' 
--data-raw '{"jsonrpc": "2.0",
"method": "getblockheader",
"params": ["0000000000938f9fc631767d1302cd7a2cc29fce45f82724eb4d55d11658768f", true],
"id": "getblock.io"}'

Response

{
    "error": null,
    "id": "getblock.io",
    "result": {
        "bits": "1c028005",
        "chainwork": "00000000000000000000000000000000000000000000000006ca7f447fc62266",
        "confirmations": 236,
        "difficulty": 53685350.45312338,
        "finalsaplingroot": "5c14d2248db227e56eaa60f24aca1167bf6361aec8b998eb9beb10cfd7b47b69",
        "hash": "0000000000938f9fc631767d1302cd7a2cc29fce45f82724eb4d55d11658768f",
        "height": 1384123,
        "merkleroot": "e97acc0c3c6208a26e02b784ca6665d1944a9e7d159a714e894e97bb989414cb",
        "nextblockhash": "00000000010b5b439ac786033ce34541f460b6d4f98b36152031243938c7c20b",
        "nonce": "339102000000000000000000003d00000000000000000000000000005d555207",
        "previousblockhash": "000000000111846e3d6c31721cda040610437300dac7cdb856f719250571a37b",
        "solution": "000642e5f02145f9517d20cacf903bf0360f3c237f272a69cb7b37c393f1bd27500d4daf6ad676b70c5007acbfd1c6cbd52b9bb071bfa8f304c180595173264411ad07592025bb3cb1b68470cb3473696d7ca69000602a1d4234297bbd53a8663ecd86b2429e9db25e1c9ed7f9bd8e84e28e3934ac5a4307c20989bcf6e10a0ae45dc6a55525f735ca3a50623b36aa801bb7f460e616f12d26065966e758b28d70de92af8c5feafd0056d8272dd99edfe0f5935f85ae240d494799705c07a7ed762f8bb03ac1fad10955c89260cefdff7186040e9b663b4bdb434edb79ad3563676f2376fd5c7d1a321dafb0d5acbdd02fb39bafb5f4adb6ba3e062c1a8a6d0a974f4642bbcaf5c2b4560b9b0b679cb895256389be95a63eef57e3e5992c3a2129d5eb964d133267a469b8114fd7031173d41944e3056f0fd1a29e35c7d36a119d82a7b5d477f152778d8672979d32e7007e24db81588452d7f0e15d4ec72b01fb1ef0e4cd77493f7c04ae2aa3f50998663fcbae86a3795c29a10404cc194d14e610bd7ab6a414e2971a169c540e8a0fa4d160ed8f88f1b8efc90fecfb35f3339d7b301c0680f7e0ee9121eb305ad216ba58e66b5cacbdda0355f8e5cea3d739892d9b75e1ddfbd206f3425f8da108a928aad29ba73b9d2e80b57bd24d8f3a14fea4e543d67488d29587f9b3e4157fa9ba79e2bf77d8606e01414030c742a17302b5882cc7cff132896b3732831084624a9f4c5d869b0f31c854cdac9551c7ee60f01e32a10474882254eb78a2a53b5c9f5bef5bffe2801e805d0c31ccb7edc4d8353b1ce555c192d517fdc602533613ab1a57f1c9efb2fe4ac8c0b205973271f5279503305125df03daa7b61d30bb8bd6ebd23ee8ca159419d48d1d1547777c24bf7747dc7af2611bd71a2fe35258645288d7808e9b7b2e5eb11b322bbbef3700f41ebc45dc000160fce95f396f06b69e685fe0d5301f53234e6a8a09bbe3966eb1d0923e509dff972d095aef216acaf15b76ef68941ed05c030269b8512c1b441767d5dcf329a356936ebefd60c1d8bc1af2b3086dd1f868ca394f3f7da10d3a580b4494c967b7c80a18d67fee8f25f1760ec768dbcfd22e6170bdf3330f54e439b8849a6bbb78416c26b9dda07b0496dd4135cbbcf3bf5c77e1dd4ec3a11124ff2d71e2b6411601ef9da433954a70cd76a482975a37961a2ab7898b06fcdc6892926e3d0355f08f265af2da20fcfe144614c4dfe2c8d47489708241bbbf8fa771d30ef806ff4737dda70499a64dfadbcad0385fa25f1e9a3c48df0286afec9ad3f032ded3065bd1f5585e13483669ff33163a7c2ad01564c9ba5347ca79fa4e91827a32f903766ddd2989068580f130b0ca20a1c076122e85e54b7b833176565217c2e5055a7841c0c6e917ba1c7d01d9758a0706e500755b55695bb4e8bf11d37dca082464fb7a7a673745a450a71112ec120e0150f465ca0404d5fe7850be3ddde7e2bda65c0b15c5628f6e761b0e58d994eba02168d618449deb750a6b0f973e9723b40dd93690cd96f54d0273415e794b2b43d97f997527177755b50453cc77fd9932f5222f98533dda9528806b4acb1a2f6d4f0614b01cb8412d52fb1cab8228bb6575f259b9490da03412337476a1bdfa535864079990fbf517f3718331c0ea52f1f8c90605f1ee60282e91c7f85dbff9fdc2043841ff356916f07737ff1a5d6ef97407ceddf9730cd694e7cdbb762a9f4acd35d31ebe9b1f6c71101258f4ebf62bd2718db48ab50839dde66e4347fc718a78d4b2fc49a78b059d99e01f31ddeff7123811ef0592199ba5a29a0673f05f0310211197cd2759cdde109bc3ed7f304f936dbfdaae2a0d6c5d659652f11ac814abb74680570f9259b175",
        "time": 1631173584,
        "version": 4
    }
}
banner icon

Start Building with GetBlock RPCs for Free