Parse a prevtxs UniValue array and get the map of coins from it

Synopsis

Declared in <rpc/rawtransaction_util.h>

void
ParsePrevouts(
    UniValue const& prevTxsUnival,
    FlatSigningProvider* keystore,
    std::map<COutPoint, Coin>& coins);

Parameters

Name

Description

prevTxsUnival

Array of previous txns outputs that tx depends on but may not yet be in the block chain

keystore

A pointer to the temporary keystore if there is one

coins

Map of unspent outputs ‐ coins in mempool and current chain UTXO set, may be extended by previous txns outputs after call

Created with MrDocs