verifytxoutproof | Bitcoin

The verifytxoutproof method validates a proof of inclusion for a transaction in a block, returning the transaction IDs if the proof is valid.

📘

Get the gettxoutproof first

Get the gettxoutproof first and then use it to verify the proof for this example to work

👍

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

  • proof (required): The proof of inclusion for a transaction in a block, typically a merkle branch in hexadecimal format.

Response

  • result — an array of transaction IDs that were included in the proof if it is valid.
  • 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 verifytxoutproof method is useful for verifying that a particular transaction was included in a block without needing the entire block data. This is particularly useful for lightweight clients and applications that need to verify transaction inclusion efficiently.

Try the verifytxoutproof RPC method yourself

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