GET
/
v1
/
cq
/
covalent
/
app
/
bitcoin
/
transactions
import { GoldRushClient } from "@covalenthq/client-sdk";

const ApiServices = async () => {
    const client = new GoldRushClient("YOUR_API_KEY");
    const resp = await client.TransactionService.getTransactionsForBtcAddress({chainName: "chainName", walletAddress: "walletAddress"});
    console.log(resp.data);
};

ApiServices();
{
  "updated_at": "2023-11-07T05:31:56Z",
  "items": [
    {
      "chain_id": 123,
      "chain_name": "<string>",
      "contract_decimals": 123,
      "block_signed_at": "2023-11-07T05:31:56Z",
      "block_height": 123,
      "block_hash": "<string>",
      "tx_hash": "<string>",
      "tx_idx": 123,
      "type": "<string>",
      "address": "<string>",
      "value": "<string>",
      "quote": 123,
      "quote_rate": 123,
      "fees_paid": "<string>",
      "gas_quote": 123,
      "gas_quote_rate": 123,
      "coinbase": true,
      "locktime": 123,
      "weight": 123
    }
  ],
  "pagination": {
    "has_more": true,
    "page_number": 123,
    "page_size": 123,
    "total_count": 123
  }
}
Credit Cost: 0.1 per item.
Processing: Realtime

Only supports non-HD bitcoin addresses.

Query Parameters

address
string

The bitcoin address to query.

page-size
integer

Number of items per page. Omitting this parameter defaults to 100.

page-number
integer

0-indexed page number to begin pagination.

Response

200 - application/json
Successful response
updated_at
string

The timestamp when the response was generated. Useful to show data staleness to users.

items
object[]

List of response items.

pagination
object

Pagination metadata.