1 // Copyright (c) 2017-2018 The Bitcoin Core developers 2 // Distributed under the MIT software license, see the accompanying 3 // file COPYING or http://www.opensource.org/licenses/mit-license.php. 4 5 #ifndef BITCOIN_RPC_RAWTRANSACTION_H 6 #define BITCOIN_RPC_RAWTRANSACTION_H 7 8 class CBasicKeyStore; 9 struct CMutableTransaction; 10 class UniValue; 11 12 namespace interfaces { 13 class Chain; 14 } // namespace interfaces 15 16 /** Sign a transaction with the given keystore and previous transactions */ 17 UniValue SignTransaction(interfaces::Chain& chain, CMutableTransaction& mtx, const UniValue& prevTxs, CBasicKeyStore *keystore, bool tempKeystore, const UniValue& hashType); 18 19 /** Create a transaction from univalue parameters */ 20 CMutableTransaction ConstructTransaction(const UniValue& inputs_in, const UniValue& outputs_in, const UniValue& locktime, bool rbf); 21 22 #endif // BITCOIN_RPC_RAWTRANSACTION_H 23