Changeset View
Changeset View
Standalone View
Standalone View
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_H | ||||
#define BITCOIN_RPC_RAWTRANSACTION_H | #define BITCOIN_RPC_RAWTRANSACTION_H | ||||
class CBasicKeyStore; | class CBasicKeyStore; | ||||
class CChainParams; | |||||
class CMutableTransaction; | class CMutableTransaction; | ||||
class UniValue; | class UniValue; | ||||
/** Sign a transaction with the given keystore and previous transactions */ | /** Sign a transaction with the given keystore and previous transactions */ | ||||
UniValue SignTransaction(CMutableTransaction &mtx, const UniValue &prevTxs, | UniValue SignTransaction(CMutableTransaction &mtx, const UniValue &prevTxs, | ||||
CBasicKeyStore *keystore, bool tempKeystore, | CBasicKeyStore *keystore, bool tempKeystore, | ||||
const UniValue &hashType); | const UniValue &hashType); | ||||
/** Create a transaction from univalue parameters */ | |||||
CMutableTransaction ConstructTransaction(const CChainParams ¶ms, | |||||
const UniValue &inputs_in, | |||||
const UniValue &outputs_in, | |||||
const UniValue &locktime); | |||||
#endif // BITCOIN_RPC_RAWTRANSACTION_H | #endif // BITCOIN_RPC_RAWTRANSACTION_H |