⚡ We welcome businesses to test our enterprise-grade service

btc
Bitcoin (BTC)

Method: POST getblockhash

dropdown

方法 RPC getblockhash 例如 Bitcoin (BTC)

POST getblockhash

在提供的高度返回最佳区块链中区块的哈希值。

Parameters

height - 数字,必填

身高指数

Request

curl --location --request POST 'https://btc.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": "00000000c937983704a73af28acdec37b049d214adbda81d7e2a3dd146f6ed09"
}