grs

Groestlcoin (GRS)

Method: POST getblockheader

dropdown

POST getblockheader

If verbose is false, returns a string that is serialized, hex-encoded data for blockheader hash.

If verbose is true, returns an Object with information about blockheader hash.

Parameters

blockhash - string, required

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://grs.getblock.io/mainnet/' 
--header 'x-api-key: YOUR-API-KEY' 
--header 'Content-Type: application/json' 
--data-raw '{"jsonrpc": "2.0",
"method": "getblockheader",
"params": ["00000000000013030fcb0bbe7d1e0ba47dff762eec8544e71f9b63f854ce214c", true],
"id": "getblock.io"}'


Response

{
    "error": null,
    "id": "getblock.io",
    "result": {
        "hash": "0000000000001fec93645b17a523debbcf1454c926159dfad8adeee2db123c05",
        "confirmations": -1,
        "height": 3742487,
        "version": 536870912,
        "versionHex": "20000000",
        "merkleroot": "9d752ab9eaf2e87ae0b2e4bc37913f4c56f4368f346bff41861b6b48da5f0b06",
        "time": 1630778859,
        "mediantime": 1630778248,
        "nonce": 522086419,
        "bits": "1a388f21",
        "difficulty": 296627.0821821388,
        "chainwork": "0000000000000000000000000000000000000000000000f4a74842fa48c61208",
        "nTx": 1,
        "previousblockhash": "0000000000000a39c49dec69a37127312bcac047da37ef4ee72244f2a01ac0cc"
    }
}