Scorum
|
Wallet Management. More...
Functions | |
void | scorum::wallet::wallet_api::exit () |
variant_object | scorum::wallet::wallet_api::about () const |
std::string | scorum::wallet::wallet_api::help () const |
std::string | scorum::wallet::wallet_api::gethelp (const std::string &method) const |
std::string | scorum::wallet::wallet_api::get_wallet_filename () const |
bool | scorum::wallet::wallet_api::is_new () const |
bool | scorum::wallet::wallet_api::is_locked () const |
void | scorum::wallet::wallet_api::lock () |
void | scorum::wallet::wallet_api::unlock (const std::string &password) |
void | scorum::wallet::wallet_api::set_password (const std::string &password) |
bool | scorum::wallet::wallet_api::load_wallet_file (const std::string &wallet_filename="") |
void | scorum::wallet::wallet_api::save_wallet_file (const std::string &wallet_filename="") |
void | scorum::wallet::wallet_api::set_wallet_filename (const std::string &wallet_filename) |
Wallet Management.
variant_object scorum::wallet::wallet_api::about | ( | ) | const |
Returns info such as client version, git version of graphene/fc, version of boost, openssl.
Definition at line 1198 of file wallet.cpp.
void scorum::wallet::wallet_api::exit | ( | ) |
Close wallet application
Definition at line 3382 of file wallet.cpp.
std::string scorum::wallet::wallet_api::get_wallet_filename | ( | ) | const |
Returns the current wallet filename.
This is the filename that will be used when automatically saving the wallet.
Definition at line 1154 of file wallet.cpp.
std::string scorum::wallet::wallet_api::gethelp | ( | const std::string & | method | ) | const |
Returns detailed help on a single API command.
method | the name of the API command you want help with |
Definition at line 1272 of file wallet.cpp.
std::string scorum::wallet::wallet_api::help | ( | ) | const |
Returns a list of all commands supported by the wallet API.
This lists each command, along with its arguments and return types. For more detailed help on a single command, use get_help()
Definition at line 1254 of file wallet.cpp.
bool scorum::wallet::wallet_api::is_locked | ( | ) | const |
Checks whether the wallet is locked (is unable to use its private keys).
This state can be changed by calling lock()
or unlock()
.
Definition at line 1303 of file wallet.cpp.
bool scorum::wallet::wallet_api::is_new | ( | ) | const |
Checks whether the wallet has just been created and has not yet had a password set.
Calling set_password
will transition the wallet to the locked state.
Definition at line 1307 of file wallet.cpp.
bool scorum::wallet::wallet_api::load_wallet_file | ( | const std::string & | wallet_filename = "" | ) |
Loads a specified Graphene wallet.
The current wallet is closed before the new wallet is loaded.
set_wallet_filename()
wallet_filename | the filename of the wallet JSON file to load. If wallet_filename is empty, it reloads the existing wallet file |
Definition at line 1287 of file wallet.cpp.
void scorum::wallet::wallet_api::lock | ( | ) |
Locks the wallet immediately.
Definition at line 1317 of file wallet.cpp.
void scorum::wallet::wallet_api::save_wallet_file | ( | const std::string & | wallet_filename = "" | ) |
Saves the current wallet to the given filename.
set_wallet_filename()
to make the filename persist.wallet_filename | the filename of the new wallet JSON file to create or overwrite. If wallet_filename is empty, save to the current filename. |
Definition at line 1292 of file wallet.cpp.
void scorum::wallet::wallet_api::set_password | ( | const std::string & | password | ) |
Sets a new password on the wallet.
The wallet must be either 'new' or 'unlocked' to execute this command.
Definition at line 1348 of file wallet.cpp.
void scorum::wallet::wallet_api::set_wallet_filename | ( | const std::string & | wallet_filename | ) |
Sets the wallet filename used for futrue writes.
This does not trigger a save, it only changes the default filename that will be used the next time a save is triggered.
wallet_filename | the new filename to use for futrue saves |
Definition at line 1220 of file wallet.cpp.
void scorum::wallet::wallet_api::unlock | ( | const std::string & | password | ) |
Unlocks the wallet.
The wallet remain unlocked until the lock
is called or the program exits.
password | the password previously set with set_password() |
Definition at line 1332 of file wallet.cpp.