mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-09 10:43:19 -05:00
![Andrew Chow](/assets/img/avatar_default.png)
In preparation for more create transaction and fund transcation RPCs, refactor the transaction creation and funding logic into separate functions.
18 lines
794 B
C++
18 lines
794 B
C++
// Copyright (c) 2017 The Bitcoin Core developers
|
|
// Distributed under the MIT software license, see the accompanying
|
|
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
|
|
|
#ifndef BITCOIN_RPC_RAWTRANSACTION_H
|
|
#define BITCOIN_RPC_RAWTRANSACTION_H
|
|
|
|
class CBasicKeyStore;
|
|
struct CMutableTransaction;
|
|
class UniValue;
|
|
|
|
/** Sign a transaction with the given keystore and previous transactions */
|
|
UniValue SignTransaction(CMutableTransaction& mtx, const UniValue& prevTxs, CBasicKeyStore *keystore, bool tempKeystore, const UniValue& hashType);
|
|
|
|
/** Create a transaction from univalue parameters */
|
|
CMutableTransaction ConstructTransaction(const UniValue& inputs_in, const UniValue& outputs_in, const UniValue& locktime, const UniValue& rbf);
|
|
|
|
#endif // BITCOIN_RPC_RAWTRANSACTION_H
|