Retrieve Overall Staking Data on Core Blockchain
GEThttps://staking-api.coredao.org//staking/summary/overall
Returns overall staking data on the Core blockchain, including information on validators, stakers, and amounts staked.
Request
Responses
- 200
- 400
Overall staking data retrieved successfully.
- application/json
- Schema
- Example (auto)
Schema
statusinteger
Status code of the response.
messagestring
Additional information or message about the response.
result object
{
"status": 0,
"message": "string",
"result": {
"latestRound": 0,
"activeValidatorCount": 0,
"coreStakerCount": 0,
"stakedCoreAmount": 0,
"btcStakerCount": 0,
"stakedBTCAmount": 0,
"hashStakerCount": 0,
"stakedHashAmount": 0
}
}
An error occurred while retrieving overall staking data.
- application/json
- Schema
- Example (auto)
Schema
statusinteger
Status code of the error response.
messagestring
Error message explaining the issue.
{
"status": 0,
"message": "string"
}
- csharp
- curl
- dart
- go
- http
- java
- javascript
- kotlin
- c
- nodejs
- objective-c
- ocaml
- php
- powershell
- python
- r
- ruby
- rust
- shell
- swift
- HTTPCLIENT
- RESTSHARP
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://staking-api.coredao.org/staking/summary/overall");
request.Headers.Add("Accept", "application/json");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
ResponseClear