Bitcoin
Functions
rawtransaction_util.h File Reference
#include <map>

Go to the source code of this file.

Functions

UniValue SignTransaction (CMutableTransaction &mtx, const UniValue &prevTxs, FillableSigningProvider *keystore, std::map< COutPoint, Coin > &coins, bool tempKeystore, const UniValue &hashType)
 
CMutableTransaction ConstructTransaction (const UniValue &inputs_in, const UniValue &outputs_in, const UniValue &locktime, const UniValue &rbf)
 

Function Documentation

◆ ConstructTransaction()

CMutableTransaction ConstructTransaction ( const UniValue inputs_in,
const UniValue outputs_in,
const UniValue locktime,
const UniValue rbf 
)

Create a transaction from univalue parameters

◆ SignTransaction()

UniValue SignTransaction ( CMutableTransaction mtx,
const UniValue prevTxs,
FillableSigningProvider keystore,
std::map< COutPoint, Coin > &  coins,
bool  tempKeystore,
const UniValue hashType 
)

Sign a transaction with the given keystore and previous transactions

Parameters
mtxThe transaction to-be-signed
prevTxsArray of previous txns outputs that tx depends on but may not yet be in the block chain
keystoreTemporary keystore containing signing keys
coinsMap of unspent outputs - coins in mempool and current chain UTXO set, may be extended by previous txns outputs after call
tempKeystoreWhether to use temporary keystore
hashTypeThe signature hash type
Returns
JSON object with details of signed transaction