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;
|
|
|
|
|
2017-05-30 21:55:17 +02:00
|
|
|
namespace interfaces {
|
|
|
|
class Chain;
|
|
|
|
} // namespace interfaces
|
|
|
|
|
2017-06-12 21:23:02 +02:00
|
|
|
/** Sign a transaction with the given keystore and previous transactions */
|
2017-05-30 21:55:17 +02:00
|
|
|
UniValue SignTransaction(interfaces::Chain& chain, CMutableTransaction& mtx, const UniValue& prevTxs, CBasicKeyStore *keystore, bool tempKeystore, const UniValue& hashType);
|
2017-06-12 21:23:02 +02:00
|
|
|
|
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
|