For the complete documentation index, see llms.txt. This page is also available as Markdown.

Get Bitcoin Transaction

This endpoint returns confirmation status, block height, and timestamp for a given Bitcoin transaction. Mempool-aware.

get

Retrieve stats for the transaction. Works for confirmed and unconfirmed transactions.

Authorizations
x-api-keystringRequired
Path parameters
txidstring · regexRequired

Transaction id

Example: 6c5ffa32f6942bb82bf36239fb8a6d233c4da6f91bde81869accef2ef6be674ePattern: ^[a-fA-F0-9]{64}$
Query parameters
offsetnumberOptional
limitnumber · min: 25 · max: 25Optional
Responses
200

Default Response

application/json
heightnumberOptional
confirmationsnumberRequired
get/v1/bitcoin/tx/{txid}
GET /v1/bitcoin/tx/{txid} HTTP/1.1
Host: api.secretkeylabs.io
x-api-key: YOUR_API_KEY
Accept: */*
{
  "height": 1,
  "confirmations": 1,
  "inputs": [
    {
      "vin": 1,
      "prevTxid": "text",
      "prevVout": 1,
      "value": 1,
      "address": "text",
      "script": "text",
      "isCoinbase": true
    }
  ],
  "outputs": [
    {
      "vout": 1,
      "value": 1,
      "address": "text",
      "script": "text"
    }
  ]
}

Last updated