---
title: "Get Merkle proof for transaction"
method: GET
path: "/blocks/{headerId}/proofFor/{txId}"
tags: ["blocks"]
---

# Get Merkle proof for transaction

`GET /blocks/{headerId}/proofFor/{txId}`

## Path parameters

- `headerId` string, required
- `txId` string, required

## Response `200`

Merkle proof object

- MerkleProof — Merkle proof for a leaf, which is an array of bytes (e.g. a transaction identifier)
  - `leaf` string, required — Base16-encoded Merkle tree leaf bytes
  - `levels` array[], required
    - union[] — pairs of hash and side of hash
      - union
        - string — hash
        - integer — side of hash

## Other responses

- `default` — Error

---

[API](https://skmtc.net/ergoplatform/apis/ergo-node-api.md) · [All operations](https://skmtc.net/ergoplatform/apis/ergo-node-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/ergoplatform/ergo-node-api/versions/ef97e678f020/schema)
