Retrieve Staking Summary
GEThttps://staking-api.coredao.org//staking/summary/core
Return overall staking information on a given Core address.
Request
Query Parameters
coreAddress stringrequired
The core address to retrieve staking information for.
Responses
- 200
- 400
Staking summary retrieved successfully.
- application/json
- Schema
- Example (auto)
Schema
statusinteger
Status code of the response.
messagestring
Additional information or message about the response.
data object
{
"status": 0,
"message": "string",
"data": {
"stakedCoreAmount": "string",
"stakedHashAmount": "string",
"stakedBTCAmount": "string",
"pendingCoreReward": "string",
"pendingHashReward": "string",
"pendingBTCReward": "string",
"claimedCoreReward": "string",
"claimedHashReward": "string",
"claimedBTCReward": "string"
}
}
Invalid core address supplied.
- application/json
- Schema
- Example (auto)
Schema
statusinteger
Status code of the 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/core");
request.Headers.Add("Accept", "application/json");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
ResponseClear