docs/docs/build/rpc-api/daemon-rpc-api/getblockcount.md
zano build machine 49f0f115fb Auto generated doc
2025-03-31 15:37:26 +03:00

643 B

Returns the total number of blocks in the blockchain (the height of the top block plus one).

URL: http:://127.0.0.1:11211/json_rpc

Request:

{
  "id": 0,
  "jsonrpc": "2.0",
  "method": "getblockcount",
  "params": {
  }
}

Request description:


Response:

{
  "id": 0,
  "jsonrpc": "2.0",
  "result": {
    "count": 2697388,
    "status": "OK"
  }
}

Response description:

    "count": The total number of blocks in the blockchain, equivalent to the top block's height plus one.
    "status": Status of the call.

Auto-doc built with: 2.1.5.397[2872515]