| gettxoutproof {rbch} | R Documentation |
RPC-JSON API: gettxoutproof
Description
Returns a hex-encoded proof that "txid" was included in a block.
Usage
gettxoutproof(con, txids, blockhash = NULL)
Arguments
con |
object of class |
txids |
|
blockhash |
|
Details
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).
Value
A S4-object of class ANSRPC.
Author(s)
Bernhard Pfaff
References
https://bitcoin.org/en/developer-reference#gettxoutproof, https://bitcoin.org/en/developer-reference#remote-procedure-calls-rpcs
See Also
Other Blockchain RPCs:
decodescript(),
getbestblockhash(),
getblockchaininfo(),
getblockcount(),
getblockhash(),
getblockheader(),
getblock(),
getchaintips(),
getchaintxstats(),
getdifficulty(),
getmempoolancestors(),
getmempooldescendants(),
getmempoolentry(),
getmempoolinfo(),
getrawmempool(),
gettxoutsetinfo(),
gettxout(),
pruneblockchain(),
verifychain(),
verifytxoutproof()