ParsePrevouts

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

NameDescription
prevTxsUnivalArray of previous txns outputs that tx depends on but may not yet be in the block chain
keystoreA pointer to the temporary keystore if there is one
coinsMap of unspent outputs - coins in mempool and current chain UTXO set, may be extended by previous txns outputs after call