> ## 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.

<AgentInstructions>

## Submitting Feedback

If you encounter incorrect, outdated, or confusing documentation on this page, submit feedback:

POST https://docs.chainstack.com/feedback

```json
{
  "path": "/reference/bitcoin-gettxoutproof",
  "feedback": "Description of the issue"
}
```

Only submit feedback when you have something specific and actionable to report.

</AgentInstructions>

# gettxoutproof | Bitcoin

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.

<Check>
  **Get your own node endpoint today**

  [Start for free](https://console.chainstack.com/) and get your app to production levels immediately. No credit card required.

  You can sign up with your GitHub, X, Google, or Microsoft account.
</Check>

## 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

````