Bitcoin Core 22.99.0
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 <any>
11#include <memory>
12#include <string>
13#include <vector>
14
15class CRPCCommand;
16class CWallet;
17class JSONRPCRequest;
19class UniValue;
20class CTransaction;
22struct WalletContext;
23
25
32std::shared_ptr<CWallet> GetWalletForJSONRPCRequest(const JSONRPCRequest& request);
33
35WalletContext& EnsureWalletContext(const std::any& context);
37
40#endif //BITCOIN_WALLET_RPCWALLET_H
The basic transaction that is broadcasted on the network and contained in blocks.
Definition: transaction.h:260
A CWallet maintains a set of transactions and balances, and provides the ability to create new transa...
Definition: wallet.h:229
A Span is an object that can refer to a contiguous sequence of objects.
Definition: span.h:93
Span< const CRPCCommand > GetWalletRPCCommands()
Definition: rpcwallet.cpp:4855
LegacyScriptPubKeyMan & EnsureLegacyScriptPubKeyMan(CWallet &wallet, bool also_create=false)
Definition: rpcwallet.cpp:141
void EnsureWalletIsUnlocked(const CWallet &)
Definition: rpcwallet.cpp:124
std::shared_ptr< CWallet > GetWalletForJSONRPCRequest(const JSONRPCRequest &request)
Figures out what wallet, if any, to use for a JSONRPCRequest.
Definition: rpcwallet.cpp:99
RPCHelpMan getaddressinfo()
Definition: rpcwallet.cpp:4005
RPCHelpMan signrawtransactionwithwallet()
Definition: rpcwallet.cpp:3536
WalletContext & EnsureWalletContext(const std::any &context)
Definition: rpcwallet.cpp:131
A version of CTransaction with the PSBT format.
Definition: psbt.h:392
WalletContext struct containing references to state shared between CWallet instances,...
Definition: context.h:34