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...
|
|
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 327 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 357 of file wallet.h.
◆ context()
Return pointer to internal context, useful for testing.
Definition at line 361 of file wallet.h.
◆ createWallet()
virtual util::Result< std::unique_ptr< Wallet > > interfaces::WalletLoader::createWallet |
( |
const std::string & |
name, |
|
|
const SecureString & |
passphrase, |
|
|
uint64_t |
wallet_creation_flags, |
|
|
std::vector< bilingual_str > & |
warnings |
|
) |
| |
|
pure virtual |
◆ getWalletDir()
virtual std::string interfaces::WalletLoader::getWalletDir |
( |
| ) |
|
|
pure virtual |
Return default wallet directory.
◆ getWallets()
virtual std::vector< std::unique_ptr< Wallet > > interfaces::WalletLoader::getWallets |
( |
| ) |
|
|
pure virtual |
Return interfaces for accessing wallets (if any).
◆ handleLoadWallet()
virtual std::unique_ptr< Handler > interfaces::WalletLoader::handleLoadWallet |
( |
LoadWalletFn |
fn | ) |
|
|
pure virtual |
◆ isEncrypted()
virtual bool interfaces::WalletLoader::isEncrypted |
( |
const std::string & |
wallet_name | ) |
|
|
pure virtual |
Returns true if wallet stores encryption keys.
◆ listWalletDir()
virtual std::vector< std::pair< std::string, std::string > > interfaces::WalletLoader::listWalletDir |
( |
| ) |
|
|
pure virtual |
Return available wallets in wallet directory.
◆ loadWallet()
virtual util::Result< std::unique_ptr< Wallet > > interfaces::WalletLoader::loadWallet |
( |
const std::string & |
name, |
|
|
std::vector< bilingual_str > & |
warnings |
|
) |
| |
|
pure virtual |
◆ migrateWallet()
◆ restoreWallet()
virtual util::Result< std::unique_ptr< Wallet > > interfaces::WalletLoader::restoreWallet |
( |
const fs::path & |
backup_file, |
|
|
const std::string & |
wallet_name, |
|
|
std::vector< bilingual_str > & |
warnings |
|
) |
| |
|
pure virtual |
The documentation for this class was generated from the following file: