Bitcoin ABC
0.22.13
P2P Digital Currency
src
wallet
rpcwallet.h
Go to the documentation of this file.
1
// Copyright (c) 2016 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 <
script/sighashtype.h
>
9
#include <
span.h
>
10
11
#include <memory>
12
#include <string>
13
#include <vector>
14
15
class
CRPCCommand
;
16
class
CTransaction
;
17
class
CWallet
;
18
class
Config
;
19
class
JSONRPCRequest
;
20
class
LegacyScriptPubKeyMan
;
21
struct
PartiallySignedTransaction
;
22
class
UniValue
;
23
struct
WalletContext
;
24
25
namespace
util
{
26
class
Ref;
27
}
28
29
Span<const CRPCCommand>
GetWalletRPCCommands
();
30
37
std::shared_ptr<CWallet>
38
GetWalletForJSONRPCRequest
(
const
JSONRPCRequest
&request);
39
40
void
EnsureWalletIsUnlocked
(
const
CWallet
*);
41
bool
EnsureWalletIsAvailable
(
const
CWallet
*,
bool
avoidException);
42
WalletContext
&
EnsureWalletContext
(
const
util::Ref
&context);
43
LegacyScriptPubKeyMan
&
EnsureLegacyScriptPubKeyMan
(
CWallet
&wallet,
44
bool
also_create =
false
);
45
46
UniValue
signrawtransactionwithwallet
(
const
Config
&config,
47
const
JSONRPCRequest
&request);
48
UniValue
getaddressinfo
(
const
Config
&config,
const
JSONRPCRequest
&request);
49
50
#endif // BITCOIN_WALLET_RPCWALLET_H
util
Definition:
httprpc.h:13
span.h
EnsureWalletIsAvailable
bool EnsureWalletIsAvailable(const CWallet *, bool avoidException)
Definition:
rpcwallet.cpp:121
UniValue
Definition:
univalue.h:23
PartiallySignedTransaction
A version of CTransaction with the PSBT format.
Definition:
psbt.h:335
EnsureWalletContext
WalletContext & EnsureWalletContext(const util::Ref &context)
Definition:
rpcwallet.cpp:147
EnsureLegacyScriptPubKeyMan
LegacyScriptPubKeyMan & EnsureLegacyScriptPubKeyMan(CWallet &wallet, bool also_create=false)
Definition:
rpcwallet.cpp:156
Config
Definition:
config.h:19
GetWalletForJSONRPCRequest
std::shared_ptr< CWallet > GetWalletForJSONRPCRequest(const JSONRPCRequest &request)
Figures out what wallet, if any, to use for a JSONRPCRequest.
Definition:
rpcwallet.cpp:103
getaddressinfo
UniValue getaddressinfo(const Config &config, const JSONRPCRequest &request)
Definition:
rpcwallet.cpp:4298
util::Ref
Type-safe dynamic reference.
Definition:
ref.h:21
EnsureWalletIsUnlocked
void EnsureWalletIsUnlocked(const CWallet *)
Definition:
rpcwallet.cpp:139
signrawtransactionwithwallet
UniValue signrawtransactionwithwallet(const Config &config, const JSONRPCRequest &request)
Definition:
rpcwallet.cpp:3963
JSONRPCRequest
Definition:
request.h:33
CWallet
A CWallet maintains a set of transactions and balances, and provides the ability to create new transa...
Definition:
wallet.h:679
WalletContext
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
Span
A Span is an object that can refer to a contiguous sequence of objects.
Definition:
span.h:17
CTransaction
The basic transaction that is broadcasted on the network and contained in blocks. ...
Definition:
transaction.h:211
GetWalletRPCCommands
Span< const CRPCCommand > GetWalletRPCCommands()
Definition:
rpcwallet.cpp:5040
LegacyScriptPubKeyMan
Definition:
scriptpubkeyman.h:313
sighashtype.h
CRPCCommand
Definition:
server.h:148
Generated on Sat Jan 23 2021 15:48:22 for Bitcoin ABC by
1.8.13