ltc

Litecoin (LTC)

Method: POST getblockhash

dropdown
POST

getblockhash

Returns hash of block in best-block-chain at index; index 0 is the genesis block

Parameters

index - numeric, required

The height index

Request

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


Response

{
    "error": null,
    "id": "getblock.io",
    "result": "e081e3ab67a210d01dc67537eeae475ceea3dbaef6b0245d235c854f8cdadffc"
}