Saltar al contenido principal

Retrieve BTC Staking Status

GET 

https://staking-api.test2.btcs.network//staking/btc/status

Retrieve BTC staking status on the Core chain using a transaction ID.

Request

Query Parameters

    txId stringrequired

    The transaction ID for which the BTC staking status is requested.

Responses

BTC staking status retrieved successfully.

Schema
    codestring

    Status code indicating the result of the operation.

    messagestring

    Additional information or message about the response.

    data object
    statusinteger

    The status of the BTC staking transaction.

    confirmedTxHashstring

    The hash of the confirmed BTC transaction.

    confirmTimestampinteger

    The timestamp when the transaction was confirmed.

var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://staking-api.test2.btcs.network/staking/btc/status");
request.Headers.Add("Accept", "application/json");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
Request Collapse all
Base URL
https://staking-api.test2.btcs.network
Parameters
— queryrequired
ResponseClear

Click the Send API Request button above and see the response here!