Skip to content

Latest commit

 

History

History
39 lines (30 loc) · 544 Bytes

getblockhash.md

File metadata and controls

39 lines (30 loc) · 544 Bytes

getblockhash Method

Return the hash value of the corresponding block based on the specified index.

{
   "jsonrpc": "2.0",
   "method": "getblockhash",
   "params": [Index],
   "id": 1
}

Parameter Description

  • index: Block index (block height)

Example

Request body:

{
   "jsonrpc": "2.0",
   "method": "getblockhash",
   "params": [10000],
   "id": 1
}

Response body:

{
   "jsonrpc": "2.0",
   "id": 1,
   "result": "0x4c1e879872344349067c3b1a30781eeb4f9040d3795db7922f513f6f9660b9b2"
}