gettxoutproof: RPC-JSON API: gettxoutproof

Description Usage Arguments Details Value Author(s) References See Also

View source: R/BlockchainRpcs.R

Description

Returns a hex-encoded proof that "txid" was included in a block.

Usage

1
gettxoutproof(con, txids, blockhash = NULL)

Arguments

con

object of class CONRPC.

txids

charcater a json array of txids to filter.

blockhash

integer looks for txid in the block with this hash, (optional, default NULL).

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()


rbch documentation built on Jan. 11, 2022, 1:06 a.m.

Related to gettxoutproof in rbch...