2018-07-26 18:36:45 -04:00
|
|
|
// Copyright (c) 2017-2018 The Bitcoin Core developers
|
2017-06-12 12:23:02 -07:00
|
|
|
// Distributed under the MIT software license, see the accompanying
|
|
|
|
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
|
|
|
|
2019-04-02 16:51:32 -04:00
|
|
|
#ifndef BITCOIN_RPC_RAWTRANSACTION_UTIL_H
|
|
|
|
#define BITCOIN_RPC_RAWTRANSACTION_UTIL_H
|
2017-06-12 12:23:02 -07:00
|
|
|
|
|
|
|
class CBasicKeyStore;
|
|
|
|
class UniValue;
|
2019-04-02 16:51:32 -04:00
|
|
|
struct CMutableTransaction;
|
2017-06-12 12:23:02 -07:00
|
|
|
|
2017-05-30 15:55:17 -04:00
|
|
|
namespace interfaces {
|
|
|
|
class Chain;
|
|
|
|
} // namespace interfaces
|
|
|
|
|
2017-06-12 12:23:02 -07:00
|
|
|
/** Sign a transaction with the given keystore and previous transactions */
|
2017-05-30 15:55:17 -04:00
|
|
|
UniValue SignTransaction(interfaces::Chain& chain, CMutableTransaction& mtx, const UniValue& prevTxs, CBasicKeyStore *keystore, bool tempKeystore, const UniValue& hashType);
|
2017-06-12 12:23:02 -07:00
|
|
|
|
2018-06-27 17:02:07 -07:00
|
|
|
/** Create a transaction from univalue parameters */
|
|
|
|
CMutableTransaction ConstructTransaction(const UniValue& inputs_in, const UniValue& outputs_in, const UniValue& locktime, const UniValue& rbf);
|
|
|
|
|
2019-04-02 16:51:32 -04:00
|
|
|
#endif // BITCOIN_RPC_RAWTRANSACTION_UTIL_H
|