GET
/
tx
/
{txid}
Transaction
curl --request GET \
  --url https://xbt-mainnet.gomaestro-api.org/v0/esplora/tx/{txid} \
  --header 'api-key: <api-key>'
{
  "txid": "<string>",
  "version": 123,
  "locktime": 123,
  "size": 123,
  "weight": 123,
  "fee": 123,
  "vin": [
    {
      "txid": "<string>",
      "vout": 123,
      "is_coinbase": true,
      "scriptsig": "<string>",
      "scriptsig_asm": "<string>",
      "sequence": 123,
      "witness": [
        "<string>"
      ],
      "prevout": {
        "scriptpubkey": "<string>",
        "scriptpubkey_asm": "<string>",
        "scriptpubkey_type": "<string>",
        "scriptpubkey_address": "<string>",
        "value": 123
      }
    }
  ],
  "vout": [
    {
      "scriptpubkey": "<string>",
      "scriptpubkey_asm": "<string>",
      "scriptpubkey_type": "<string>",
      "scriptpubkey_address": "<string>",
      "value": 123
    }
  ],
  "status": {
    "confirmed": true,
    "block_height": 123,
    "block_hash": "<string>",
    "block_time": 123
  }
}

Authorizations

api-key
string
header
required

Project API Key

Path Parameters

txid
string
required

The transaction ID to look up.

Example:

"d78b1139140848e646cfd7eb95868d2e01c600c3922de88038c591d2fb55cf96"

Response

200
application/json

Transaction details retrieved successfully.

The response is of type object.