Changeset View
Changeset View
Standalone View
Standalone View
src/rpc/rawtransaction_util.h
- This file was moved from src/rpc/rawtransaction.h.
// Copyright (c) 2017 The Bitcoin Core developers | // Copyright (c) 2017 The Bitcoin Core developers | ||||
// Distributed under the MIT software license, see the accompanying | // Distributed under the MIT software license, see the accompanying | ||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | // file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
#ifndef BITCOIN_RPC_RAWTRANSACTION_H | #ifndef BITCOIN_RPC_RAWTRANSACTION_UTIL_H | ||||
#define BITCOIN_RPC_RAWTRANSACTION_H | #define BITCOIN_RPC_RAWTRANSACTION_UTIL_H | ||||
class CBasicKeyStore; | class CBasicKeyStore; | ||||
class CChainParams; | class CChainParams; | ||||
class CMutableTransaction; | |||||
class UniValue; | class UniValue; | ||||
struct CMutableTransaction; | |||||
namespace interfaces { | namespace interfaces { | ||||
class Chain; | class Chain; | ||||
} // namespace interfaces | } // namespace interfaces | ||||
/** Sign a transaction with the given keystore and previous transactions */ | /** Sign a transaction with the given keystore and previous transactions */ | ||||
UniValue SignTransaction(interfaces::Chain &chain, CMutableTransaction &mtx, | UniValue SignTransaction(interfaces::Chain &chain, CMutableTransaction &mtx, | ||||
const UniValue &prevTxs, CBasicKeyStore *keystore, | const UniValue &prevTxs, CBasicKeyStore *keystore, | ||||
bool tempKeystore, const UniValue &hashType); | bool tempKeystore, const UniValue &hashType); | ||||
/** Create a transaction from univalue parameters */ | /** Create a transaction from univalue parameters */ | ||||
CMutableTransaction ConstructTransaction(const CChainParams ¶ms, | CMutableTransaction ConstructTransaction(const CChainParams ¶ms, | ||||
const UniValue &inputs_in, | const UniValue &inputs_in, | ||||
const UniValue &outputs_in, | const UniValue &outputs_in, | ||||
const UniValue &locktime); | const UniValue &locktime); | ||||
#endif // BITCOIN_RPC_RAWTRANSACTION_H | #endif // BITCOIN_RPC_RAWTRANSACTION_UTIL_H |