Learn R Programming

rbtc (version 0.1-7)

verifytxoutproof: RPC-JSON API: verifytxoutproof

Description

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.

Usage

verifytxoutproof(con, proof)

Value

A S4-object of class ANSRPC.

Arguments

con

object of class CONRPC.

proof

character the hex-encoded proof generated by gettxoutproof.

Author

Bernhard Pfaff

References

https://bitcoin.org/en/developer-reference#verifytxoutproof, 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, gettxoutproof, gettxoutsetinfo, gettxout, preciousblock, pruneblockchain, verifychain