BSHA3  0.17.99
P2P Blockchain, based on Bitcoin
rpcwallet.h
Go to the documentation of this file.
1 // Copyright (c) 2016-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_WALLET_RPCWALLET_H
6 #define BITCOIN_WALLET_RPCWALLET_H
7 
8 #include <string>
9 
10 class CRPCTable;
11 class CWallet;
12 class JSONRPCRequest;
13 class UniValue;
15 class CTransaction;
16 
18 
25 std::shared_ptr<CWallet> GetWalletForJSONRPCRequest(const JSONRPCRequest& request);
26 
27 std::string HelpRequiringPassphrase(CWallet *);
29 bool EnsureWalletIsAvailable(CWallet *, bool avoidException);
30 
31 UniValue getaddressinfo(const JSONRPCRequest& request);
33 bool FillPSBT(const CWallet* pwallet, PartiallySignedTransaction& psbtx, const CTransaction* txConst, int sighash_type = 1, bool sign = true, bool bip32derivs = false);
34 #endif //BITCOIN_WALLET_RPCWALLET_H
Bitcoin RPC command dispatcher.
Definition: server.h:143
A version of CTransaction with the PSBT format.
Definition: sign.h:557
void EnsureWalletIsUnlocked(CWallet *)
Definition: rpcwallet.cpp:85
bool EnsureWalletIsAvailable(CWallet *, bool avoidException)
Definition: rpcwallet.cpp:73
UniValue getaddressinfo(const JSONRPCRequest &request)
Definition: rpcwallet.cpp:3437
std::shared_ptr< CWallet > GetWalletForJSONRPCRequest(const JSONRPCRequest &request)
Figures out what wallet, if any, to use for a JSONRPCRequest.
Definition: rpcwallet.cpp:53
UniValue signrawtransactionwithwallet(const JSONRPCRequest &request)
Definition: rpcwallet.cpp:2955
void RegisterWalletRPCCommands(CRPCTable &t)
Definition: rpcwallet.cpp:4039
bool FillPSBT(const CWallet *pwallet, PartiallySignedTransaction &psbtx, const CTransaction *txConst, int sighash_type=1, bool sign=true, bool bip32derivs=false)
Definition: rpcwallet.cpp:3738
A CWallet is an extension of a keystore, which also maintains a set of transactions and balances...
Definition: wallet.h:599
std::string HelpRequiringPassphrase(CWallet *)
Definition: rpcwallet.cpp:66
The basic transaction that is broadcasted on the network and contained in blocks. ...
Definition: transaction.h:264