Wallet chain client that in addition to having chain client methods for starting up, shutting down, and registering RPCs, also has additional methods (called by the GUI) to load and create wallets.
More...
#include <wallet.h>
|
using | LoadWalletFn = std::function< void(std::unique_ptr< Wallet > wallet)> |
| Register handler for load wallet messages. More...
|
|
|
virtual std::unique_ptr< Wallet > | createWallet (const std::string &name, const SecureString &passphrase, uint64_t wallet_creation_flags, bilingual_str &error, std::vector< bilingual_str > &warnings)=0 |
| Create new wallet. More...
|
|
virtual std::unique_ptr< Wallet > | loadWallet (const std::string &name, bilingual_str &error, std::vector< bilingual_str > &warnings)=0 |
| Load existing wallet. More...
|
|
virtual std::string | getWalletDir ()=0 |
| Return default wallet directory. More...
|
|
virtual std::unique_ptr< Wallet > | restoreWallet (const std::string &backup_file, const std::string &wallet_name, bilingual_str &error, std::vector< bilingual_str > &warnings)=0 |
| Restore backup wallet. More...
|
|
virtual std::vector< std::string > | listWalletDir ()=0 |
| Return available wallets in wallet directory. More...
|
|
virtual std::vector< std::unique_ptr< Wallet > > | getWallets ()=0 |
| Return interfaces for accessing wallets (if any). More...
|
|
virtual std::unique_ptr< Handler > | handleLoadWallet (LoadWalletFn fn)=0 |
|
virtual WalletContext * | context () |
| Return pointer to internal context, useful for testing. More...
|
|
virtual | ~ChainClient () |
|
virtual void | registerRpcs ()=0 |
| Register rpcs. More...
|
|
virtual bool | verify ()=0 |
| Check for errors before loading. More...
|
|
virtual bool | load ()=0 |
| Load saved state. More...
|
|
virtual void | start (CScheduler &scheduler)=0 |
| Start client execution and provide a scheduler. More...
|
|
virtual void | flush ()=0 |
| Save state to disk. More...
|
|
virtual void | stop ()=0 |
| Shut down client. More...
|
|
virtual void | setMockTime (int64_t time)=0 |
| Set mock time. More...
|
|
Wallet chain client that in addition to having chain client methods for starting up, shutting down, and registering RPCs, also has additional methods (called by the GUI) to load and create wallets.
Definition at line 316 of file wallet.h.
◆ LoadWalletFn
Register handler for load wallet messages.
This callback is triggered by createWallet and loadWallet above, and also triggered when wallets are loaded at startup or by RPC.
Definition at line 340 of file wallet.h.
◆ context()
Return pointer to internal context, useful for testing.
Definition at line 344 of file wallet.h.
◆ createWallet()
virtual std::unique_ptr<Wallet> interfaces::WalletClient::createWallet |
( |
const std::string & |
name, |
|
|
const SecureString & |
passphrase, |
|
|
uint64_t |
wallet_creation_flags, |
|
|
bilingual_str & |
error, |
|
|
std::vector< bilingual_str > & |
warnings |
|
) |
| |
|
pure virtual |
◆ getWalletDir()
virtual std::string interfaces::WalletClient::getWalletDir |
( |
| ) |
|
|
pure virtual |
Return default wallet directory.
◆ getWallets()
virtual std::vector<std::unique_ptr<Wallet> > interfaces::WalletClient::getWallets |
( |
| ) |
|
|
pure virtual |
Return interfaces for accessing wallets (if any).
◆ handleLoadWallet()
◆ listWalletDir()
virtual std::vector<std::string> interfaces::WalletClient::listWalletDir |
( |
| ) |
|
|
pure virtual |
Return available wallets in wallet directory.
◆ loadWallet()
virtual std::unique_ptr<Wallet> interfaces::WalletClient::loadWallet |
( |
const std::string & |
name, |
|
|
bilingual_str & |
error, |
|
|
std::vector< bilingual_str > & |
warnings |
|
) |
| |
|
pure virtual |
◆ restoreWallet()
virtual std::unique_ptr<Wallet> interfaces::WalletClient::restoreWallet |
( |
const std::string & |
backup_file, |
|
|
const std::string & |
wallet_name, |
|
|
bilingual_str & |
error, |
|
|
std::vector< bilingual_str > & |
warnings |
|
) |
| |
|
pure virtual |
The documentation for this class was generated from the following file: