verifytxoutproof
method validates a proof of inclusion for a transaction in a block, returning the transaction IDs if the proof is valid.
Get thegettxoutprooffirstGet the
gettxoutproof
first and then use it to verify the proof for this example to workGet you own node endpoint todayStart 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, otherwisenull
.id
— an integer representing the ID of the request.
Use case
Theverifytxoutproof
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.Body
application/json
Response
200 - application/json
The transaction IDs included in the proof
The response is of type object
.