Bitcoin Core  0.20.99
P2P Digital Currency
Classes | Functions | Variables
rpcwallet.cpp File Reference
#include <amount.h>
#include <core_io.h>
#include <interfaces/chain.h>
#include <key_io.h>
#include <node/context.h>
#include <outputtype.h>
#include <policy/feerate.h>
#include <policy/fees.h>
#include <policy/rbf.h>
#include <rpc/rawtransaction_util.h>
#include <rpc/server.h>
#include <rpc/util.h>
#include <script/descriptor.h>
#include <script/sign.h>
#include <util/bip32.h>
#include <util/fees.h>
#include <util/message.h>
#include <util/moneystr.h>
#include <util/ref.h>
#include <util/string.h>
#include <util/system.h>
#include <util/translation.h>
#include <util/url.h>
#include <util/vector.h>
#include <wallet/coincontrol.h>
#include <wallet/context.h>
#include <wallet/feebumper.h>
#include <wallet/rpcwallet.h>
#include <wallet/wallet.h>
#include <wallet/walletdb.h>
#include <wallet/walletutil.h>
#include <stdint.h>
#include <univalue.h>
Include dependency graph for rpcwallet.cpp:

Go to the source code of this file.

Classes

struct  tallyitem
 
class  DescribeWalletAddressVisitor
 

Functions

static bool GetAvoidReuseFlag (const CWallet *const pwallet, const UniValue &param)
 
static bool ParseIncludeWatchonly (const UniValue &include_watchonly, const CWallet &pwallet)
 Used by RPC commands that have an include_watchonly parameter. More...
 
bool HaveKey (const SigningProvider &wallet, const CKey &key)
 Checks if a CKey is in the given CWallet compressed or otherwise. More...
 
bool GetWalletNameFromJSONRPCRequest (const JSONRPCRequest &request, std::string &wallet_name)
 
std::shared_ptr< CWalletGetWalletForJSONRPCRequest (const JSONRPCRequest &request)
 Figures out what wallet, if any, to use for a JSONRPCRequest. More...
 
void EnsureWalletIsUnlocked (const CWallet *pwallet)
 
WalletContextEnsureWalletContext (const util::Ref &context)
 
LegacyScriptPubKeyManEnsureLegacyScriptPubKeyMan (CWallet &wallet, bool also_create)
 
static void WalletTxToJSON (interfaces::Chain &chain, const CWalletTx &wtx, UniValue &entry)
 
static std::string LabelFromValue (const UniValue &value)
 
static void SetFeeEstimateMode (const CWallet *pwallet, CCoinControl &cc, const UniValue &estimate_mode, const UniValue &estimate_param)
 Update coin control with fee estimation based on the given parameters. More...
 
static UniValue getnewaddress (const JSONRPCRequest &request)
 
static UniValue getrawchangeaddress (const JSONRPCRequest &request)
 
static UniValue setlabel (const JSONRPCRequest &request)
 
static CTransactionRef SendMoney (CWallet *const pwallet, const CTxDestination &address, CAmount nValue, bool fSubtractFeeFromAmount, const CCoinControl &coin_control, mapValue_t mapValue)
 
static UniValue sendtoaddress (const JSONRPCRequest &request)
 
static UniValue listaddressgroupings (const JSONRPCRequest &request)
 
static UniValue signmessage (const JSONRPCRequest &request)
 
static CAmount GetReceived (const CWallet &wallet, const UniValue &params, bool by_label) EXCLUSIVE_LOCKS_REQUIRED(wallet.cs_wallet)
 
static UniValue getreceivedbyaddress (const JSONRPCRequest &request)
 
static UniValue getreceivedbylabel (const JSONRPCRequest &request)
 
static UniValue getbalance (const JSONRPCRequest &request)
 
static UniValue getunconfirmedbalance (const JSONRPCRequest &request)
 
static UniValue sendmany (const JSONRPCRequest &request)
 
static UniValue addmultisigaddress (const JSONRPCRequest &request)
 
static UniValue ListReceived (const CWallet *const pwallet, const UniValue &params, bool by_label) EXCLUSIVE_LOCKS_REQUIRED(pwallet -> cs_wallet)
 
static UniValue listreceivedbyaddress (const JSONRPCRequest &request)
 
static UniValue listreceivedbylabel (const JSONRPCRequest &request)
 
static void MaybePushAddress (UniValue &entry, const CTxDestination &dest)
 
static void ListTransactions (const CWallet *const pwallet, const CWalletTx &wtx, int nMinDepth, bool fLong, UniValue &ret, const isminefilter &filter_ismine, const std::string *filter_label) EXCLUSIVE_LOCKS_REQUIRED(pwallet -> cs_wallet)
 List transactions based on the given criteria. More...
 
static const std::vector< RPCResultTransactionDescriptionString ()
 
UniValue listtransactions (const JSONRPCRequest &request)
 
static UniValue listsinceblock (const JSONRPCRequest &request)
 
static UniValue gettransaction (const JSONRPCRequest &request)
 
static UniValue abandontransaction (const JSONRPCRequest &request)
 
static UniValue backupwallet (const JSONRPCRequest &request)
 
static UniValue keypoolrefill (const JSONRPCRequest &request)
 
static UniValue walletpassphrase (const JSONRPCRequest &request)
 
static UniValue walletpassphrasechange (const JSONRPCRequest &request)
 
static UniValue walletlock (const JSONRPCRequest &request)
 
static UniValue encryptwallet (const JSONRPCRequest &request)
 
static UniValue lockunspent (const JSONRPCRequest &request)
 
static UniValue listlockunspent (const JSONRPCRequest &request)
 
static UniValue settxfee (const JSONRPCRequest &request)
 
static UniValue getbalances (const JSONRPCRequest &request)
 
static UniValue getwalletinfo (const JSONRPCRequest &request)
 
static UniValue listwalletdir (const JSONRPCRequest &request)
 
static UniValue listwallets (const JSONRPCRequest &request)
 
static UniValue loadwallet (const JSONRPCRequest &request)
 
static UniValue setwalletflag (const JSONRPCRequest &request)
 
static UniValue createwallet (const JSONRPCRequest &request)
 
static UniValue unloadwallet (const JSONRPCRequest &request)
 
static UniValue listunspent (const JSONRPCRequest &request)
 
void FundTransaction (CWallet *const pwallet, CMutableTransaction &tx, CAmount &fee_out, int &change_position, UniValue options, CCoinControl &coinControl)
 
static UniValue fundrawtransaction (const JSONRPCRequest &request)
 
UniValue signrawtransactionwithwallet (const JSONRPCRequest &request)
 
static UniValue bumpfee (const JSONRPCRequest &request)
 
UniValue rescanblockchain (const JSONRPCRequest &request)
 
static UniValue DescribeWalletAddress (const CWallet *const pwallet, const CTxDestination &dest)
 
static UniValue AddressBookDataToJSON (const CAddressBookData &data, const bool verbose)
 Convert CAddressBookData to JSON record. More...
 
UniValue getaddressinfo (const JSONRPCRequest &request)
 
static UniValue getaddressesbylabel (const JSONRPCRequest &request)
 
static UniValue listlabels (const JSONRPCRequest &request)
 
UniValue sethdseed (const JSONRPCRequest &request)
 
UniValue walletprocesspsbt (const JSONRPCRequest &request)
 
UniValue walletcreatefundedpsbt (const JSONRPCRequest &request)
 
static UniValue upgradewallet (const JSONRPCRequest &request)
 
UniValue abortrescan (const JSONRPCRequest &request)
 
UniValue dumpprivkey (const JSONRPCRequest &request)
 
UniValue importprivkey (const JSONRPCRequest &request)
 
UniValue importaddress (const JSONRPCRequest &request)
 
UniValue importpubkey (const JSONRPCRequest &request)
 
UniValue dumpwallet (const JSONRPCRequest &request)
 
UniValue importwallet (const JSONRPCRequest &request)
 
UniValue importprunedfunds (const JSONRPCRequest &request)
 
UniValue removeprunedfunds (const JSONRPCRequest &request)
 
UniValue importmulti (const JSONRPCRequest &request)
 
UniValue importdescriptors (const JSONRPCRequest &request)
 
Span< const CRPCCommandGetWalletRPCCommands ()
 

Variables

static const std::string WALLET_ENDPOINT_BASE = "/wallet/"
 
static const std::string HELP_REQUIRING_PASSPHRASE {"\nRequires wallet passphrase to be set with walletpassphrase call if wallet is encrypted.\n"}
 
static const uint32_t WALLET_BTC_KB_TO_SAT_B = COIN / 1000
 

Function Documentation

◆ abandontransaction()

static UniValue abandontransaction ( const JSONRPCRequest request)
static

Definition at line 1714 of file rpcwallet.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ abortrescan()

UniValue abortrescan ( const JSONRPCRequest request)

Definition at line 194 of file rpcdump.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ addmultisigaddress()

static UniValue addmultisigaddress ( const JSONRPCRequest request)
static

Definition at line 911 of file rpcwallet.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ AddressBookDataToJSON()

static UniValue AddressBookDataToJSON ( const CAddressBookData data,
const bool  verbose 
)
static

Convert CAddressBookData to JSON record.

Definition at line 3605 of file rpcwallet.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ backupwallet()

static UniValue backupwallet ( const JSONRPCRequest request)
static

Definition at line 1755 of file rpcwallet.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ bumpfee()

static UniValue bumpfee ( const JSONRPCRequest request)
static

Definition at line 3247 of file rpcwallet.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ createwallet()

static UniValue createwallet ( const JSONRPCRequest request)
static

Definition at line 2614 of file rpcwallet.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ DescribeWalletAddress()

static UniValue DescribeWalletAddress ( const CWallet *const  pwallet,
const CTxDestination dest 
)
static

Definition at line 3590 of file rpcwallet.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ dumpprivkey()

UniValue dumpprivkey ( const JSONRPCRequest request)

Definition at line 654 of file rpcdump.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ dumpwallet()

UniValue dumpwallet ( const JSONRPCRequest request)

Definition at line 699 of file rpcdump.cpp.

Here is the caller graph for this function:

◆ encryptwallet()

static UniValue encryptwallet ( const JSONRPCRequest request)
static

Definition at line 2010 of file rpcwallet.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ EnsureLegacyScriptPubKeyMan()

LegacyScriptPubKeyMan& EnsureLegacyScriptPubKeyMan ( CWallet wallet,
bool  also_create 
)

Definition at line 135 of file rpcwallet.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ EnsureWalletContext()

WalletContext& EnsureWalletContext ( const util::Ref context)

Definition at line 126 of file rpcwallet.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ EnsureWalletIsUnlocked()

void EnsureWalletIsUnlocked ( const CWallet pwallet)

Definition at line 119 of file rpcwallet.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ fundrawtransaction()

static UniValue fundrawtransaction ( const JSONRPCRequest request)
static

Definition at line 3057 of file rpcwallet.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ FundTransaction()

void FundTransaction ( CWallet *const  pwallet,
CMutableTransaction tx,
CAmount fee_out,
int &  change_position,
UniValue  options,
CCoinControl coinControl 
)

Definition at line 2941 of file rpcwallet.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getaddressesbylabel()

static UniValue getaddressesbylabel ( const JSONRPCRequest request)
static

Definition at line 3735 of file rpcwallet.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getaddressinfo()

UniValue getaddressinfo ( const JSONRPCRequest request)

Definition at line 3615 of file rpcwallet.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetAvoidReuseFlag()

static bool GetAvoidReuseFlag ( const CWallet *const  pwallet,
const UniValue param 
)
inlinestatic

Definition at line 50 of file rpcwallet.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getbalance()

static UniValue getbalance ( const JSONRPCRequest request)
static

Definition at line 713 of file rpcwallet.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getbalances()

static UniValue getbalances ( const JSONRPCRequest request)
static

Definition at line 2282 of file rpcwallet.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getnewaddress()

static UniValue getnewaddress ( const JSONRPCRequest request)
static

Definition at line 232 of file rpcwallet.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getrawchangeaddress()

static UniValue getrawchangeaddress ( const JSONRPCRequest request)
static

Definition at line 282 of file rpcwallet.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetReceived()

static CAmount GetReceived ( const CWallet wallet,
const UniValue params,
bool  by_label 
)
static

Definition at line 593 of file rpcwallet.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getreceivedbyaddress()

static UniValue getreceivedbyaddress ( const JSONRPCRequest request)
static

Definition at line 639 of file rpcwallet.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getreceivedbylabel()

static UniValue getreceivedbylabel ( const JSONRPCRequest request)
static

Definition at line 676 of file rpcwallet.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ gettransaction()

static UniValue gettransaction ( const JSONRPCRequest request)
static

Definition at line 1604 of file rpcwallet.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getunconfirmedbalance()

static UniValue getunconfirmedbalance ( const JSONRPCRequest request)
static

Definition at line 767 of file rpcwallet.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetWalletForJSONRPCRequest()

std::shared_ptr<CWallet> GetWalletForJSONRPCRequest ( const JSONRPCRequest request)

Figures out what wallet, if any, to use for a JSONRPCRequest.

Parameters
[in]requestJSONRPCRequest that wishes to access a wallet
Returns
nullptr if no wallet should be used, or a pointer to the CWallet

Definition at line 96 of file rpcwallet.cpp.

Here is the call graph for this function:

◆ getwalletinfo()

static UniValue getwalletinfo ( const JSONRPCRequest request)
static

Definition at line 2347 of file rpcwallet.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetWalletNameFromJSONRPCRequest()

bool GetWalletNameFromJSONRPCRequest ( const JSONRPCRequest request,
std::string &  wallet_name 
)

Definition at line 86 of file rpcwallet.cpp.

Here is the caller graph for this function:

◆ GetWalletRPCCommands()

Span<const CRPCCommand> GetWalletRPCCommands ( )

Definition at line 4152 of file rpcwallet.cpp.

◆ HaveKey()

bool HaveKey ( const SigningProvider wallet,
const CKey key 
)

Checks if a CKey is in the given CWallet compressed or otherwise.

Definition at line 79 of file rpcwallet.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ importaddress()

UniValue importaddress ( const JSONRPCRequest request)

Definition at line 220 of file rpcdump.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ importdescriptors()

UniValue importdescriptors ( const JSONRPCRequest request)

Definition at line 1567 of file rpcdump.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ importmulti()

UniValue importmulti ( const JSONRPCRequest request)

Definition at line 1242 of file rpcdump.cpp.

Here is the caller graph for this function:

◆ importprivkey()

UniValue importprivkey ( const JSONRPCRequest request)

Definition at line 93 of file rpcdump.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ importprunedfunds()

UniValue importprunedfunds ( const JSONRPCRequest request)

Definition at line 320 of file rpcdump.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ importpubkey()

UniValue importpubkey ( const JSONRPCRequest request)

Definition at line 413 of file rpcdump.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ importwallet()

UniValue importwallet ( const JSONRPCRequest request)

Definition at line 498 of file rpcdump.cpp.

Here is the caller graph for this function:

◆ keypoolrefill()

static UniValue keypoolrefill ( const JSONRPCRequest request)
static

Definition at line 1788 of file rpcwallet.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ LabelFromValue()

static std::string LabelFromValue ( const UniValue value)
static

Definition at line 188 of file rpcwallet.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ listaddressgroupings()

static UniValue listaddressgroupings ( const JSONRPCRequest request)
static

Definition at line 478 of file rpcwallet.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ listlabels()

static UniValue listlabels ( const JSONRPCRequest request)
static

Definition at line 3792 of file rpcwallet.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ listlockunspent()

static UniValue listlockunspent ( const JSONRPCRequest request)
static

Definition at line 2190 of file rpcwallet.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ListReceived()

static UniValue ListReceived ( const CWallet *const  pwallet,
const UniValue params,
bool  by_label 
) -> cs_wallet)
static

Definition at line 1003 of file rpcwallet.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ listreceivedbyaddress()

static UniValue listreceivedbyaddress ( const JSONRPCRequest request)
static

Definition at line 1150 of file rpcwallet.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ listreceivedbylabel()

static UniValue listreceivedbylabel ( const JSONRPCRequest request)
static

Definition at line 1198 of file rpcwallet.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ listsinceblock()

static UniValue listsinceblock ( const JSONRPCRequest request)
static

Definition at line 1466 of file rpcwallet.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ListTransactions()

static void ListTransactions ( const CWallet *const  pwallet,
const CWalletTx wtx,
int  nMinDepth,
bool  fLong,
UniValue ret,
const isminefilter filter_ismine,
const std::string *  filter_label 
) -> cs_wallet)
static

List transactions based on the given criteria.

Parameters
pwalletThe wallet.
wtxThe wallet transaction.
nMinDepthThe minimum confirmation depth.
fLongWhether to include the JSON version of the transaction.
retThe UniValue into which the result is stored.
filter_ismineThe "is mine" filter flags.
filter_labelOptional label string to filter incoming transactions.

Definition at line 1257 of file rpcwallet.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ listtransactions()

UniValue listtransactions ( const JSONRPCRequest request)

Definition at line 1356 of file rpcwallet.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ listunspent()

static UniValue listunspent ( const JSONRPCRequest request)
static

Definition at line 2729 of file rpcwallet.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ listwalletdir()

static UniValue listwalletdir ( const JSONRPCRequest request)
static

Definition at line 2439 of file rpcwallet.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ listwallets()

static UniValue listwallets ( const JSONRPCRequest request)
static

Definition at line 2474 of file rpcwallet.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ loadwallet()

static UniValue loadwallet ( const JSONRPCRequest request)
static

Definition at line 2502 of file rpcwallet.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ lockunspent()

static UniValue lockunspent ( const JSONRPCRequest request)
static

Definition at line 2067 of file rpcwallet.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ MaybePushAddress()

static void MaybePushAddress ( UniValue entry,
const CTxDestination dest 
)
static

Definition at line 1239 of file rpcwallet.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ParseIncludeWatchonly()

static bool ParseIncludeWatchonly ( const UniValue include_watchonly,
const CWallet pwallet 
)
static

Used by RPC commands that have an include_watchonly parameter.

We default to true for watchonly wallets if include_watchonly isn't explicitly set.

Definition at line 66 of file rpcwallet.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ removeprunedfunds()

UniValue removeprunedfunds ( const JSONRPCRequest request)

Definition at line 376 of file rpcdump.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ rescanblockchain()

UniValue rescanblockchain ( const JSONRPCRequest request)

Definition at line 3419 of file rpcwallet.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sendmany()

static UniValue sendmany ( const JSONRPCRequest request)
static

Definition at line 790 of file rpcwallet.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SendMoney()

static CTransactionRef SendMoney ( CWallet *const  pwallet,
const CTxDestination address,
CAmount  nValue,
bool  fSubtractFeeFromAmount,
const CCoinControl coin_control,
mapValue_t  mapValue 
)
static

Definition at line 363 of file rpcwallet.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sendtoaddress()

static UniValue sendtoaddress ( const JSONRPCRequest request)
static

Definition at line 394 of file rpcwallet.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SetFeeEstimateMode()

static void SetFeeEstimateMode ( const CWallet pwallet,
CCoinControl cc,
const UniValue estimate_mode,
const UniValue estimate_param 
)
static

Update coin control with fee estimation based on the given parameters.

Parameters
[in]pwalletWallet pointer
[in,out]ccCoin control which is to be updated
[in]estimate_modeString value (e.g. "ECONOMICAL")
[in]estimate_paramParameter (blocks to confirm, explicit fee rate, etc)
Exceptions
aJSONRPCError if estimate_mode is unknown, or if estimate_param is missing when required

Definition at line 205 of file rpcwallet.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sethdseed()

UniValue sethdseed ( const JSONRPCRequest request)

Definition at line 3845 of file rpcwallet.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setlabel()

static UniValue setlabel ( const JSONRPCRequest request)
static

Definition at line 325 of file rpcwallet.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ settxfee()

static UniValue settxfee ( const JSONRPCRequest request)
static

Definition at line 2242 of file rpcwallet.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setwalletflag()

static UniValue setwalletflag ( const JSONRPCRequest request)
static

Definition at line 2549 of file rpcwallet.cpp.

Here is the caller graph for this function:

◆ signmessage()

static UniValue signmessage ( const JSONRPCRequest request)
static

Definition at line 537 of file rpcwallet.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ signrawtransactionwithwallet()

UniValue signrawtransactionwithwallet ( const JSONRPCRequest request)

Definition at line 3156 of file rpcwallet.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ TransactionDescriptionString()

static const std::vector<RPCResult> TransactionDescriptionString ( )
static

Definition at line 1334 of file rpcwallet.cpp.

Here is the caller graph for this function:

◆ unloadwallet()

static UniValue unloadwallet ( const JSONRPCRequest request)
static

Definition at line 2688 of file rpcwallet.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ upgradewallet()

static UniValue upgradewallet ( const JSONRPCRequest request)
static

Definition at line 4104 of file rpcwallet.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ walletcreatefundedpsbt()

UniValue walletcreatefundedpsbt ( const JSONRPCRequest request)

Definition at line 3979 of file rpcwallet.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ walletlock()

static UniValue walletlock ( const JSONRPCRequest request)
static

Definition at line 1973 of file rpcwallet.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ walletpassphrase()

static UniValue walletpassphrase ( const JSONRPCRequest request)
static

Definition at line 1832 of file rpcwallet.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ walletpassphrasechange()

static UniValue walletpassphrasechange ( const JSONRPCRequest request)
static

Definition at line 1926 of file rpcwallet.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ walletprocesspsbt()

UniValue walletprocesspsbt ( const JSONRPCRequest request)

Definition at line 3915 of file rpcwallet.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ WalletTxToJSON()

static void WalletTxToJSON ( interfaces::Chain chain,
const CWalletTx wtx,
UniValue entry 
)
static

Definition at line 147 of file rpcwallet.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ HELP_REQUIRING_PASSPHRASE

const std::string HELP_REQUIRING_PASSPHRASE {"\nRequires wallet passphrase to be set with walletpassphrase call if wallet is encrypted.\n"}
static

Definition at line 46 of file rpcwallet.cpp.

◆ WALLET_BTC_KB_TO_SAT_B

const uint32_t WALLET_BTC_KB_TO_SAT_B = COIN / 1000
static

Definition at line 48 of file rpcwallet.cpp.

◆ WALLET_ENDPOINT_BASE

const std::string WALLET_ENDPOINT_BASE = "/wallet/"
static

Definition at line 45 of file rpcwallet.cpp.