⚡ We welcome businesses to test our enterprise-grade service

btc
Bitcoin (BTC)

Method: POST getblockcount

dropdown

方法 RPC getblockcount 例如 Bitcoin (BTC)

POST getblockcount

返回最有效的完全验证链的高度。

创世块的高度为 0。

Parameters

-

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": "getblockcount",
"params": [],
"id": "getblock.io"}'


Response

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