Retrieve Latest Staking Round
GEThttps://staking-api.test2.btcs.network//staking/status/round
Returns the current round of the core chain
Request
Responses
- 200
- 400
Latest round information 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
}
}
An error occurred while retrieving the staking round.
- 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/status/round");
request.Headers.Add("Accept", "application/json");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
ResponseClear