GET
/
block
/
{hash}
/
txs
/
{start_index}
Get block transactions
curl --request GET \
  --url https://xbt-mainnet.gomaestro-api.org/v0/esplora/block/{hash}/txs/{start_index} \
  --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

hash
string
required

The block hash.

Example:

"00000000000000000001b9dca5d168a8e959df258814beec486572e843fddee5"

Query Parameters

start_index
integer

Index to start fetching transactions from (pagination).

Required range: x >= 0

Response

200
application/json

A list of transactions in the block.

The response is of type object[].