2018-07-27 00:36:45 +02:00
|
|
|
// Copyright (c) 2017-2018 The Bitcoin Core developers
|
2017-06-12 21:23:02 +02:00
|
|
|
// 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;
|
2018-02-20 23:16:33 +01:00
|
|
|
struct CMutableTransaction;
|
2017-06-12 21:23:02 +02:00
|
|
|
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);
|
|
|
|
|
2018-06-28 02:02:07 +02:00
|
|
|
/** Create a transaction from univalue parameters */
|
|
|
|
CMutableTransaction ConstructTransaction(const UniValue& inputs_in, const UniValue& outputs_in, const UniValue& locktime, const UniValue& rbf);
|
|
|
|
|
2017-06-12 21:23:02 +02:00
|
|
|
#endif // BITCOIN_RPC_RAWTRANSACTION_H
|