bitcoind.app
CommandsGuidesContact ↗
Home/Blockchain/gettxoutproof
Blockchain

gettxoutproof

Returns a hex-encoded proof that one or more transactions were included in a block.

Parameters

txidsarrayREQUIRED
Array of txids to filter
blockhashstringoptional
Block to look in. Uses txindex if omitted.

Returns

stringHex-encoded proof data

Code Examples

curl --user myuser --data-binary '{"jsonrpc":"1.0","id":"1","method":"gettxoutproof","params":[["txid"]]}' -H 'content-type:text/plain;' http://127.0.0.1:8332/

Example Response

"0100000001...hex_proof_data..."
← Previous
gettxout
Next →
gettxoutsetinfo

More Blockchain Commands

getbestblockhashgetblockgetblockchaininfogetblockcountgetblockfiltergetblockhash

bitcoind.app — Bitcoin Core RPC Reference

GuidesContact ↗