Get the total number of blocks in the blockchain.
- Method: GET
- URL:
/blockscount
No parameters are required for this request.
GET /blockscount
- HTTP Status Code: 200 OK
| Parameter | Required | Data Type | Description |
|---|---|---|---|
| blocksCount | Yes | Integer | Total number of blocks |
{
"blocksCount": 1
}- The user sends a request to retrieve the current block count.
- The server returns the total number of blocks in the blockchain.