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

Body Params
string
Defaults to 1.0
string
Defaults to verifytxoutproof
params
array of strings
Defaults to 00e0002000471175ec71a72541c100f21bb79f9da0e5ca98259a000000000000000000004769eae15b51056127304c5dec6d94c7840f8f922c0b65bc32177cb46ce05de9b8c10866d36203175dae051fdc0a00000d625aa7b5510f7c003624338259d21544e61ccb3666792dde9734b7621d2cf80bb81ffa45657310bdc47ad3b3f5e5346c150d4fc1b98a5446cc560c6f38f7156138761aab058be861e51fe52ea7cf7b4914a1e1b159ecebe46b51db0ec5cfd4c2324ae9c132169d1f133981632895c216a8e3c3d3a9cea545fade4c0ab8b626a2791862728b657abbdb06dedcc3faabee9d72ce6b8252b45fc99d6fe0f79cec401e1a431774d8830b962e5dee97fc96f4f85f84a6e50b986a37b35318537a81f3f8c604554e5b4f5ca4b4437caa3b0723896396532c1985d52f42f915084534c6bedb4ded1238781d23be0173b94ca25d7faff2832ac99fa16b2f9b219ff276062f100d4b7ce774ba405fbad36b65165e2e5aece3e0b9718886d7b24708be5ae72d10911e9301811b19fcb218ce7dfee31729f4ef56a3d8f31670865a039b3678b34fcb47f12bd157a064339c3e91a960c5a14b9e8da9c8ce211a02bb94e7165a1668d8a17663e95adcdacdbc8e8ab793e8796fda9b270ca957e67aa33dc95cff158cb2ff6882064942ef545612a8eceb3c60415d677d170f4351ede1f7a8807504ff1f0000
params
integer
Defaults to 1
Response

Language
Click Try It! to start a request and see the response here! Or choose an example:
application/json