Bitcoin Core  0.20.99
P2P Digital Currency
rpcwallet.h
Go to the documentation of this file.
1 // Copyright (c) 2016-2020 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 <span.h>
9 
10 #include <memory>
11 #include <string>
12 #include <vector>
13 
14 class CRPCCommand;
15 class CWallet;
16 class JSONRPCRequest;
18 class UniValue;
19 class CTransaction;
21 struct WalletContext;
22 
24 
31 std::shared_ptr<CWallet> GetWalletForJSONRPCRequest(const JSONRPCRequest& request);
32 
33 void EnsureWalletIsUnlocked(const CWallet*);
35 LegacyScriptPubKeyMan& EnsureLegacyScriptPubKeyMan(CWallet& wallet, bool also_create = false);
36 
39 #endif //BITCOIN_WALLET_RPCWALLET_H
A version of CTransaction with the PSBT format.
Definition: psbt.h:390
WalletContext & EnsureWalletContext(const util::Ref &context)
Definition: rpcwallet.cpp:128
LegacyScriptPubKeyMan & EnsureLegacyScriptPubKeyMan(CWallet &wallet, bool also_create=false)
Definition: rpcwallet.cpp:137
std::shared_ptr< CWallet > GetWalletForJSONRPCRequest(const JSONRPCRequest &request)
Figures out what wallet, if any, to use for a JSONRPCRequest.
Definition: rpcwallet.cpp:98
RPCHelpMan getaddressinfo()
Definition: rpcwallet.cpp:3756
Type-safe dynamic reference.
Definition: ref.h:21
void EnsureWalletIsUnlocked(const CWallet *)
Definition: rpcwallet.cpp:121
RPCHelpMan signrawtransactionwithwallet()
Definition: rpcwallet.cpp:3274
A CWallet maintains a set of transactions and balances, and provides the ability to create new transa...
Definition: wallet.h:622
WalletContext struct containing references to state shared between CWallet instances, like the reference to the chain interface, and the list of opened wallets.
Definition: context.h:23
A Span is an object that can refer to a contiguous sequence of objects.
Definition: span.h:82
The basic transaction that is broadcasted on the network and contained in blocks. ...
Definition: transaction.h:259
Span< const CRPCCommand > GetWalletRPCCommands()
Definition: rpcwallet.cpp:4485