Returns a hex-encoded proof that "txid" was included in a block.
NOTE: By default this function only works sometimes. This is when there is an
unspent output in the utxo for this transaction. To make it always work,
you need to maintain a transaction index, using the -txindex command line option or
specify the block in which the transaction is included manually (by blockhash).
Arguments:
- "txids" (string) A json array of txids to filter
[
"txid" (string) A transaction hash
,...
] - "blockhash" (string, optional) If specified, looks for txid in the block with this hash
Request
curl 'https://rpc.web3api.io?x-api-key=YOUR-API-KEY' \
-X POST \
-H 'x-amberdata-blockchain-id: bitcoin-mainnet' \
-d '{"jsonrpc":"2.0","id":1,"method":"gettxoutproof","params":[["73969cb14bda9cdcf1c0f96b3e3d0941caf44b7328bba89b0e7c6d31ea710894"]]}'
Response
{
"result": "0000402073f1dc39c88a2d9cfbaa47facb49a26742a9b754f3b0190000000000000000004e27232bd354841f9eb9c0d0cf34991228b920a6e84a01a34a3b67f5539b824a7855775d3e211a1718de8f4d400900000d940871ea316d7c0e9ba8bb28734bf4ca41093d3e6bf9c0f1dc9cda4bb19c96737b1a163bb0a1175e72b04cd04e70866b58a77248578574ace0aaee2fe3c52eaac367f11ffbbf9424b001b50d0acaa1c36f7df4dc5693f76686f8c9b8341866c7a4d2eee8ab3608f70194d421d05dc0998ed25e7391195e2ba4dc9a6916547a2c4599c251cd39a2ee1d5fe5a02141cb866e17d6b4204d53c02e4a807515e4e17cb05551ea28e1224a1eb9d9be98afd6c2594ea2b137b393bc18d24139b54ff80b9c2a452376a543e82b5859cf5253c4e562585d5a1c39f459eb1e6e52f5086be44df44b84b649d9385c8d5d94a846913d87e34f2ca8ea0c29d476ce8695922ea6aacf65649693677bbc75848fe525d8688acb0fce6fea68b700ef998bf2962187b2c67e3be783df5e68395a0b57a71c0c2acfff2ee864fefef73ff1aaf8ecfab7a1dc116f64d56dccfc6e494106c710bac26524d6570b74cba8b36e830b8cdbd55bb76370d798adbe6cb3f7a6c0c694783813b644cd684fdebc3003fb8cabec5df0f941336859068dd9358aedd2cc3e1a334e7874efc59fe2ec26547d63b8908804ff1f0000",
"error": null,
"id": 1
}