> ## Documentation Index
> Fetch the complete documentation index at: https://docs.chainstack.com/llms.txt
> Use this file to discover all available pages before exploring further.

# gettxoutproof | Bitcoin

> Reference for the gettxoutproof JSON-RPC method on the Bitcoin blockchain via Chainstack nodes. Parameters, response, and examples included.

The `gettxoutproof` method provides a merkle branch proof of the inclusion of one or more transactions in a block, proving that a transaction is indeed part of a block without needing the entire block data.

## Parameters

* `transaction ID(s)` (required): An array of one or more transaction IDs for which the proof of inclusion is requested.

## Response

* `result` — a string representing the merkle branch proof in hexadecimal format.
* `error` — an object containing an error message if an error occurred, otherwise `null`.
* `id` — an integer representing the ID of the request.

## Use case

The `gettxoutproof` method is particularly useful for lightweight clients and for applications that need to verify transactions without downloading the entire blockchain. It provides a way to confirm transaction inclusion efficiently.


## OpenAPI

````yaml openapi/bitcoin_node_api/gettxoutproof.json POST /788f110831fe13808302bd79796d55e8
openapi: 3.0.0
info:
  title: gettxoutproof example
  version: 1.0.0
  description: >-
    This is an API example for gettxoutproof, a method to get a proof of
    inclusion of a transaction in a block.
servers:
  - url: https://nd-202-842-353.p2pify.com
security: []
paths:
  /788f110831fe13808302bd79796d55e8:
    post:
      tags:
        - Blockchain Operations
      summary: gettxoutproof
      operationId: getTxOutProof
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                jsonrpc:
                  type: string
                  default: '1.0'
                method:
                  type: string
                  default: gettxoutproof
                params:
                  type: array
                  items:
                    type: string
                    description: The transaction ID(s) for which the proof is requested
                  example:
                    - - >-
                        0bf82c1d62b73497de2d796636cb1ce64415d25982332436007c0f51b5a75a62
                  default:
                    - - >-
                        0bf82c1d62b73497de2d796636cb1ce64415d25982332436007c0f51b5a75a62
                id:
                  type: integer
                  default: 1
      responses:
        '200':
          description: The merkle branch proof of the transaction inclusion in a block
          content:
            application/json:
              schema:
                type: object
                properties:
                  result:
                    type: string
                    description: The hexadecimal string of the merkle branch proof
                  error:
                    type: object
                  id:
                    type: integer

````