Share your GetBlock experience with other devs and get 5M RPCs

banner image

Last updated on January 1, 1970

1 min read

Method getblockhash NEO (NEO)
connect with JSON-RPC protocol

getblockhash

info-circle-fill

Returns the hash value of the corresponding block based on the specifiedindex.

Parameters

index - numeric

Block index (block height)

Request

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

Response

{
    "id": "getblock.io",
    "jsonrpc": "2.0",
    "result": "0xf3372f6dbaf489c603c340fe8e225b3dc83c394b7667908ff45fc558eebb4477"
}
banner icon

Start Building with GetBlock RPCs for Free