Saltar al contenido principal

Retrieve BTC staking transactions

GET 

https://staking-api.test2.btcs.network//staking/btc/transactions/active

Returns the list of valid/active staking trasactions of a given bitcoin address or public key hash.

Request

Query Parameters

    btcAddress stringrequired

    The BTC address to retrieve staking transactions for.

    pkHash stringrequired

    Public key hash associated with the given BTC address.

Responses

Active BTC staking transactions retrieved successfully.

Schema
    codestring

    Code indicating the success of the operation.

    messagestring

    Additional information or message about the response.

    data object
    stakedBTCTxList object[]

    List of active BTC staking transactions.

  • Array [
  • candidateAddressstring

    The address of the candidate for the staking transaction.

    btcAddressstring

    The BTC address associated with the staking transaction.

    btcTXIdstring

    The transaction ID of the BTC staking.

    confirmedTxHashstring

    The hash of the confirmed BTC transaction.

    btcAmountstring

    The amount of BTC staked.

    scriptstring

    The script associated with the staking transaction.

    startRoundinteger

    The round when the staking transaction started.

    endRoundinteger

    The round when the staking transaction ends.

    delegateRoundinteger

    The round when the staking was delegated.

    outputIndexinteger

    The index of the output in the BTC transaction.

    rewardAddressstring

    The address to receive rewards from the staking transaction.

    unlockTimeinteger

    The unlock time for the BTC staking transaction.

    redeemAddressstring

    The address to redeem BTC from the staking transaction.

    pkHashstring

    Public key hash associated with the BTC address.

    statusinteger

    Integer indicating the status of the stake.

  • ]
  • stakedBTCAmountinteger

    Total amount of BTC currently staked.


Request Collapse all
Base URL
https://staking-api.test2.btcs.network
Parameters
— queryrequired
— queryrequired
ResponseClear

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