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.

👍

Get you own node endpoint today

Start for free and get your app to production levels immediately. No credit card required.

You can sign up with your GitHub, X, Google, or Microsoft account.

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.

Try the gettxoutproof RPC method yourself

Language
Click Try It! to start a request and see the response here!