xmr

Monero (XMR)

Method: POST get_block_count

dropdown
POST

get_block_count

查找节点已知的最长链中有多少块。

Parameters

-

Request

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


Response

{
    "id": "getblock.io",
    "jsonrpc": "2.0",
    "result": {
        "count": 2394582,
        "status": "OK",
        "untrusted": false
    }
}