Aller directement au menu principal

Submit RedeemScript for Staking Transaction

POST 

https://staking-api.test2.btcs.network//staking/helper/redeemscript

Submit a RedeemScript so Core relayers can help transmit the staking transaction. This API is optional if the RedeemScript is already provided in the op_return field of the staking transaction.

Request

Bodyrequired

    txIdstringrequired

    The transaction ID of the staking transaction.

    apiKeystringrequired

    The API key for authentication.

    redeemScriptstringrequired

    The RedeemScript for the staking transaction.

Responses

RedeemScript submitted successfully.

Schema
    codestring

    Status code indicating the result of the operation.

    messagestring

    Additional information or message about the response.

    data object
    resultboolean

    Indicates whether the RedeemScript submission was successful.

var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, "https://staking-api.test2.btcs.network/staking/helper/redeemscript");
request.Headers.Add("Accept", "application/json");
var content = new StringContent("{\n \"txId\": \"string\",\n \"apiKey\": \"string\",\n \"redeemScript\": \"string\"\n}", null, "application/json");
request.Content = content;
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
Body required
{
  "txId": "string",
  "apiKey": "string",
  "redeemScript": "string"
}
ResponseClear

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