diff --git a/src/wallet/plain_wallet_api.cpp b/src/wallet/plain_wallet_api.cpp index b7d0847d..d49100f1 100644 --- a/src/wallet/plain_wallet_api.cpp +++ b/src/wallet/plain_wallet_api.cpp @@ -46,6 +46,11 @@ namespace plain_wallet glogs_initialized = true; } + std::string get_version() + { + return PROJECT_VERSION_LONG; + } + hwallet create_instance(const std::string& ip, const std::string& port) { if (!glogs_initialized) diff --git a/src/wallet/plain_wallet_api.h b/src/wallet/plain_wallet_api.h index 836b0f2d..dd481299 100644 --- a/src/wallet/plain_wallet_api.h +++ b/src/wallet/plain_wallet_api.h @@ -12,6 +12,7 @@ namespace plain_wallet typedef int64_t hwallet; hwallet create_instance(const std::string& ip, const std::string& port); void destroy_instance(hwallet h); + std::string get_version(); std::string open(hwallet h, const std::string& path, const std::string& password); std::string restore(hwallet h, const std::string& seed, const std::string& path, const std::string& password);