Skip to main content

verifytxoutproof

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

yerbas-cli verifytxoutproof "proof"

Arguments

ArgumentTypeDescription
"proof"(string)The hex-encoded proof generated by gettxoutproof
Arguments:
1. "proof" (string, required) The hex-encoded proof generated by gettxoutproof

Output

ResultTypeDescription
"txid"(array, strings)The txid(s) which the proof commits to, or empty array if the proof is invalid
Result:
["txid"] (array, strings) The txid(s) which the proof commits to, or empty array if the proof is invalid

Examples

curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "gettxoutproof", "params": ["proof"] }' -H 'content-type: text/plain;' http://127.0.0.1:9998/