Retrieve Full List of BTC Staking Transactions
GEThttps://staking-api.coredao.org//staking/btc/transactions/all
Returns full list of BTC staking transactions (including all active and historical data) by bitcoin address. Page size limited to 100.
Request
Query Parameters
btcAddress stringrequired
The Bitcoin address for which staking transactions are being requested.
pkHash stringrequired
The public key hash associated with the given Bitcoin address.
pageNum integer
The page number for pagination. Defaults to 1 if not provided.
pageSize integer
The number of transactions per page. Defaults to 100 if not provided.
Responses
- 200
- 400
BTC staking transactions retrieved successfully.
- application/json
- Schema
- Example (auto)
Schema
codestring
A status code indicating the result 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",
"status": 0,
"redeemTxId": "string",
"pkHash": "string"
}
]
}
}
An error occurred while retrieving the BTC staking transactions.
- application/json
- Schema
- Example (auto)
Schema
codestring
Error code indicating the result of 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
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://staking-api.coredao.org/staking/btc/transactions/all");
request.Headers.Add("Accept", "application/json");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
ResponseClear