Saltar al contenido principal

Submit RedeemScript for Staking Transaction

POST 

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

Envía un RedeemScript para que los retransmisores de Core puedan ayudar a transmitir la transacción de staking. Esta API es opcional si el RedeemScript ya está proporcionado en el campo op_return de la transacción de staking.

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!