Retrieve Current Dual Staking Grade
GEThttps://staking-api.test2.btcs.network//staking/summary/dualstaking_grade
Returns the current dual staking grade, including stake rates and associated percentages.
Request
Responses
- 200
- 400
Dual staking grade retrieved successfully.
- application/json
- Schema
- Example (auto)
Schema
statusinteger
Status code indicating the result of the operation.
messagestring
Additional information or message about the response.
result object[]
{
"status": 0,
"message": "string",
"result": [
{
"stakeRate": 0,
"percentage": 0
}
]
}
An error occurred while retrieving the dual staking grade.
- 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.test2.btcs.network/staking/summary/dualstaking_grade");
request.Headers.Add("Accept", "application/json");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
ResponseClear