verifytxoutproof
blockchain safe since 0.11.0verifies that a proof points to a transaction in a block, returning the transaction it commits to and throwing an RPC error if the block is not in our best chain
↑ shares the docs page. Use Share this query below for a link with your current arg values.
Run this RPC
switch to raw JSON
Call from your own code
Replace $BITCOIN_RPC_USER / $BITCOIN_RPC_PASSWORD with credentials from your bitcoind's bitcoin.conf,
and replace localhost:8332 with your node's RPC address.
Help
verifytxoutproof "proof"
Verifies that a proof points to a transaction in a block, returning the transaction it commits to
and throwing an RPC error if the block is not in our best chain
Arguments:
1. proof (string, required) The hex-encoded proof generated by gettxoutproof
Result:
[ (json array)
"hex", (string) The txid(s) which the proof commits to, or empty array if the proof cannot be validated.
...
]