Get Stats History
Endpoint
Section titled “Endpoint”GET /api/stats/history/v1Parameters
Section titled “Parameters”| Name | In | Type | Required | Description |
|---|---|---|---|---|
block_start | query | integer | Start of block range (inclusive) | |
block_end | query | integer | End of block range (inclusive) | |
timestamp_start | query | integer | Start of timestamp range in Unix timestamp (seconds since 1970-01-01) (inclusive) | |
timestamp_end | query | integer | End of timestamp range in Unix timestamp (seconds since 1970-01-01) (inclusive) | |
page | query | integer | The page number of the response. | |
limit | query | integer | The number of responses. max is 200, | |
order | query | — |
Responses
Section titled “Responses”200 — Stats history retrieved successfully
Section titled “200 — Stats history retrieved successfully”Media: application/json
Schema
{ "type": "object", "required": [ "pagination", "data" ], "properties": { "data": { "type": "array", "items": { "type": "object", "required": [ "block_number", "timestamp", "issued", "staked", "subnet_locked", "free", "accounts", "balance_holders", "extrinsics", "transfers", "subnets", "subnet_registration_cost" ], "properties": { "accounts": { "type": "integer", "format": "int32" }, "balance_holders": { "type": "integer", "format": "int32" }, "block_number": { "type": "integer", "format": "int32" }, "extrinsics": { "type": "integer", "format": "int32" }, "free": { "type": "string" }, "issued": { "type": "string" }, "staked": { "type": "string" }, "staked_alpha": { "type": "string", "nullable": true }, "staked_root": { "type": "string", "nullable": true }, "staked_root_on_delegate": { "type": "string", "nullable": true }, "staked_root_on_keep": { "type": "string", "nullable": true }, "staked_root_on_partial_keep": { "type": "string", "nullable": true }, "staked_root_on_swap": { "type": "string", "nullable": true }, "subnet_locked": { "type": "string" }, "subnet_registration_cost": { "type": "string" }, "subnets": { "type": "integer", "format": "int32" }, "timestamp": { "type": "string", "format": "date-time" }, "transfers": { "type": "integer", "format": "int32" } } } }, "pagination": { "type": "object", "required": [ "current_page", "per_page", "total_items", "total_pages" ], "properties": { "current_page": { "type": "integer", "format": "int32" }, "next_page": { "type": "integer", "format": "int32", "nullable": true }, "per_page": { "type": "integer", "format": "int32" }, "prev_page": { "type": "integer", "format": "int32", "nullable": true }, "total_items": { "type": "integer", "format": "int32" }, "total_pages": { "type": "integer", "format": "int32" } } } }}Examples
{ "Result": { "value": "{\n \"pagination\": {\n \"current_page\": 1,\n \"per_page\": 5,\n \"total_items\": 584,\n \"total_pages\": 117,\n \"next_page\": 2,\n \"prev_page\": null\n },\n \"data\": [\n {\n \"block_number\": 4106956,\n \"timestamp\": \"2024-10-23T15:36:48.004Z\",\n \"issued\": \"7662539915127250\",\n \"staked\": \"5938450722857099\",\n \"accounts\": 137331,\n \"active_accounts\": 115008,\n \"balance_holders\": 102750,\n \"active_balance_holders\": 80427,\n \"extrinsics\": 97783649,\n \"transfers\": 2680168,\n \"subnets\": 53,\n \"subnet_registration_cost\": \"1242562048540\"\n },\n {\n \"block_number\": 4102273,\n \"timestamp\": \"2024-10-22T23:59:48Z\",\n \"issued\": \"7658416679806250\",\n \"staked\": \"5937538348262362\",\n \"accounts\": 136984,\n \"active_accounts\": 114668,\n \"balance_holders\": 102596,\n \"active_balance_holders\": 80280,\n \"extrinsics\": 97710170,\n \"transfers\": 2678226,\n \"subnets\": 53,\n \"subnet_registration_cost\": \"1406549136847\"\n },\n {\n \"block_number\": 4095074,\n \"timestamp\": \"2024-10-21T23:59:48.003Z\",\n \"issued\": \"7652830209056090\",\n \"staked\": \"5941135014576960\",\n \"accounts\": 136600,\n \"active_accounts\": 114336,\n \"balance_holders\": 102424,\n \"active_balance_holders\": 80160,\n \"extrinsics\": 97602208,\n \"transfers\": 2675390,\n \"subnets\": 53,\n \"subnet_registration_cost\": \"1658640328118\"\n },\n {\n \"block_number\": 4087874,\n \"timestamp\": \"2024-10-20T23:59:48Z\",\n \"issued\": \"7647228514854840\",\n \"staked\": \"5942956782698863\",\n \"accounts\": 136237,\n \"active_accounts\": 114015,\n \"balance_holders\": 102208,\n \"active_balance_holders\": 79986,\n \"extrinsics\": 97500898,\n \"transfers\": 2672156,\n \"subnets\": 53,\n \"subnet_registration_cost\": \"1910766536918\"\n },\n {\n \"block_number\": 4080697,\n \"timestamp\": \"2024-10-19T23:59:48.001Z\",\n \"issued\": \"7641148703993899\",\n \"staked\": \"5941885213661792\",\n \"accounts\": 135958,\n \"active_accounts\": 113769,\n \"balance_holders\": 102086,\n \"active_balance_holders\": 79897,\n \"extrinsics\": 97402649,\n \"transfers\": 2669489,\n \"subnets\": 53,\n \"subnet_registration_cost\": \"1111429740392\"\n }\n ]\n}" }}400 — Bad request
Section titled “400 — Bad request”404 — Stats history not found
Section titled “404 — Stats history not found”500 — Internal server error
Section titled “500 — Internal server error”Try it
Section titled “Try it”Interactive request console coming soon. In the meantime you can use the OpenAPI spec with any client (Insomnia, Bruno, Scalar, curl).
Authentication
Section titled “Authentication”All Taostats API requests require an Authorization header containing your API key. See Getting Started.