Bitcoin ABC 0.30.7
P2P Digital Currency
Functions
rawtransaction_util.h File Reference
#include <map>
#include <string>
Include dependency graph for rawtransaction_util.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

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. More...
 
void SignTransactionResultToJSON (CMutableTransaction &mtx, bool complete, const std::map< COutPoint, Coin > &coins, const std::map< int, std::string > &input_errors, UniValue &result)
 
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. More...
 
CMutableTransaction ConstructTransaction (const CChainParams &params, const UniValue &inputs_in, const UniValue &outputs_in, const UniValue &locktime)
 Create a transaction from univalue parameters. More...
 

Function Documentation

◆ ConstructTransaction()

CMutableTransaction ConstructTransaction ( const CChainParams params,
const UniValue inputs_in,
const UniValue outputs_in,
const UniValue locktime 
)

Create a transaction from univalue parameters.

Definition at line 22 of file rawtransaction_util.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ParsePrevouts()

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.

Parameters
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

Definition at line 175 of file rawtransaction_util.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SignTransaction()

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.

Parameters
mtxThe transaction to-be-signed
keystoreTemporary keystore containing signing keys
coinsMap of unspent outputs
hashTypeThe signature hash type
resultJSON object where signed transaction results accumulate

Definition at line 263 of file rawtransaction_util.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SignTransactionResultToJSON()

void SignTransactionResultToJSON ( CMutableTransaction mtx,
bool  complete,
const std::map< COutPoint, Coin > &  coins,
const std::map< int, std::string > &  input_errors,
UniValue result 
)

Definition at line 280 of file rawtransaction_util.cpp.

Here is the call graph for this function:
Here is the caller graph for this function: