Dash Core  0.12.2.1
P2P Digital Currency
rpcdump.cpp File Reference
#include "base58.h"
#include "chain.h"
#include "rpc/server.h"
#include "init.h"
#include "validation.h"
#include "script/script.h"
#include "script/standard.h"
#include "sync.h"
#include "util.h"
#include "utiltime.h"
#include "wallet.h"
#include <fstream>
#include <stdint.h>
#include <boost/algorithm/string.hpp>
#include <boost/date_time/posix_time/posix_time.hpp>
#include <univalue.h>
#include <boost/foreach.hpp>

Go to the source code of this file.

Functions

void EnsureWalletIsUnlocked ()
 
bool EnsureWalletIsAvailable (bool avoidException)
 
static std::string EncodeDumpTime (int64_t nTime)
 
static int64_t DecodeDumpTime (const std::string &str)
 
static std::string EncodeDumpString (const std::string &str)
 
std::string DecodeDumpString (const std::string &str)
 
UniValue importprivkey (const UniValue &params, bool fHelp)
 
void ImportAddress (const CBitcoinAddress &address, const string &strLabel)
 
void ImportScript (const CScript &script, const string &strLabel, bool isRedeemScript)
 
UniValue importaddress (const UniValue &params, bool fHelp)
 
UniValue importpubkey (const UniValue &params, bool fHelp)
 
UniValue importwallet (const UniValue &params, bool fHelp)
 
UniValue importelectrumwallet (const UniValue &params, bool fHelp)
 
UniValue dumpprivkey (const UniValue &params, bool fHelp)
 
UniValue dumphdinfo (const UniValue &params, bool fHelp)
 
UniValue dumpwallet (const UniValue &params, bool fHelp)
 

Function Documentation

◆ DecodeDumpString()

std::string DecodeDumpString ( const std::string &  str)

Definition at line 62 of file rpcdump.cpp.

Referenced by importwallet().

◆ DecodeDumpTime()

static int64_t DecodeDumpTime ( const std::string &  str)
static

Definition at line 37 of file rpcdump.cpp.

Referenced by importwallet().

◆ dumphdinfo()

UniValue dumphdinfo ( const UniValue params,
bool  fHelp 
)

Definition at line 583 of file rpcdump.cpp.

◆ dumpprivkey()

UniValue dumpprivkey ( const UniValue params,
bool  fHelp 
)

Definition at line 546 of file rpcdump.cpp.

Referenced by wallet-hd.WalletHDTest::run_test(), and wallet.WalletTest::run_test().

◆ dumpwallet()

UniValue dumpwallet ( const UniValue params,
bool  fHelp 
)

Definition at line 629 of file rpcdump.cpp.

Referenced by walletbackup.WalletBackupTest::run_test().

◆ EncodeDumpString()

static std::string EncodeDumpString ( const std::string &  str)
static

Definition at line 50 of file rpcdump.cpp.

Referenced by dumpwallet().

◆ EncodeDumpTime()

static std::string EncodeDumpTime ( int64_t  nTime)
static

Definition at line 33 of file rpcdump.cpp.

Referenced by dumpwallet().

◆ EnsureWalletIsAvailable()

◆ EnsureWalletIsUnlocked()

◆ ImportAddress()

void ImportAddress ( const CBitcoinAddress address,
const string &  strLabel 
)

Definition at line 172 of file rpcdump.cpp.

Referenced by importaddress(), importpubkey(), and ImportScript().

◆ importaddress()

UniValue importaddress ( const UniValue params,
bool  fHelp 
)

◆ importelectrumwallet()

UniValue importelectrumwallet ( const UniValue params,
bool  fHelp 
)

Definition at line 412 of file rpcdump.cpp.

◆ importprivkey()

◆ importpubkey()

UniValue importpubkey ( const UniValue params,
bool  fHelp 
)

◆ ImportScript()

void ImportScript ( const CScript script,
const string &  strLabel,
bool  isRedeemScript 
)

Definition at line 155 of file rpcdump.cpp.

Referenced by ImportAddress(), importaddress(), and importpubkey().

◆ importwallet()

UniValue importwallet ( const UniValue params,
bool  fHelp 
)

Definition at line 305 of file rpcdump.cpp.

Referenced by walletbackup.WalletBackupTest::run_test().