Retrieve BTC staking transactions
GEThttps://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
- 200
- 400
Active BTC staking transactions retrieved successfully.
- application/json
- Schema
- Example (auto)
Schema
codestring
Code indicating the success of the operation.
messagestring
Additional information or message about the response.
data object
{
"code": "string",
"message": "string",
"data": {
"stakedBTCTxList": [
{
"candidateAddress": "string",
"btcAddress": "string",
"btcTXId": "string",
"confirmedTxHash": "string",
"btcAmount": "string",
"script": "string",
"startRound": 0,
"endRound": 0,
"delegateRound": 0,
"outputIndex": 0,
"rewardAddress": "string",
"unlockTime": 0,
"redeemAddress": "string",
"pkHash": "string",
"status": 0
}
],
"stakedBTCAmount": 0
}
}
Invalid BTC address or public key hash supplied.
- application/json
- Schema
- Example (auto)
Schema
codestring
Error code for the operation.
messagestring
Error message explaining the issue.
{
"code": "string",
"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
ResponseClear