Bitcoin
|
#include <rpc/rawtransaction_util.h>
#include <coins.h>
#include <core_io.h>
#include <key_io.h>
#include <policy/policy.h>
#include <primitives/transaction.h>
#include <rpc/request.h>
#include <rpc/util.h>
#include <script/sign.h>
#include <script/signingprovider.h>
#include <tinyformat.h>
#include <univalue.h>
#include <util/rbf.h>
#include <util/strencodings.h>
Functions | |
CMutableTransaction | ConstructTransaction (const UniValue &inputs_in, const UniValue &outputs_in, const UniValue &locktime, const UniValue &rbf) |
static void | TxInErrorToJSON (const CTxIn &txin, UniValue &vErrorsRet, const std::string &strMessage) |
UniValue | SignTransaction (CMutableTransaction &mtx, const UniValue &prevTxsUnival, FillableSigningProvider *keystore, std::map< COutPoint, Coin > &coins, bool is_temp_keystore, const UniValue &hashType) |
CMutableTransaction ConstructTransaction | ( | const UniValue & | inputs_in, |
const UniValue & | outputs_in, | ||
const UniValue & | locktime, | ||
const UniValue & | rbf | ||
) |
Create a transaction from univalue parameters
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
mtx | The transaction to-be-signed |
prevTxs | Array of previous txns outputs that tx depends on but may not yet be in the block chain |
keystore | Temporary keystore containing signing keys |
coins | Map of unspent outputs - coins in mempool and current chain UTXO set, may be extended by previous txns outputs after call |
tempKeystore | Whether to use temporary keystore |
hashType | The signature hash type |