5 #ifndef BITCOIN_RPC_RAWTRANSACTION_UTIL_H 6 #define BITCOIN_RPC_RAWTRANSACTION_UTIL_H 42 #endif // BITCOIN_RPC_RAWTRANSACTION_UTIL_H
void SignTransactionResultToJSON(CMutableTransaction &mtx, bool complete, const std::map< COutPoint, Coin > &coins, const std::map< int, std::string > &input_errors, UniValue &result)
Fillable signing provider that keeps keys in an address->secret map.
void ParsePrevouts(const UniValue &prevTxsUnival, FillableSigningProvider *keystore, std::map< COutPoint, Coin > &coins)
Parse a prevtxs UniValue array and get the map of coins from it.
An outpoint - a combination of a transaction hash and an index n into its vout.
CMutableTransaction ConstructTransaction(const UniValue &inputs_in, const UniValue &outputs_in, const UniValue &locktime, bool rbf)
Create a transaction from univalue parameters.
An interface to be implemented by keystores that support signing.
A mutable version of CTransaction.
void SignTransaction(CMutableTransaction &mtx, const SigningProvider *keystore, const std::map< COutPoint, Coin > &coins, const UniValue &hashType, UniValue &result)
Sign a transaction with the given keystore and previous transactions.