diff --git a/lib/commands.py b/lib/commands.py
index 77f669e2c..9caac367b 100644
--- a/lib/commands.py
+++ b/lib/commands.py
@@ -50,6 +50,7 @@ register_command('dumpprivkey', 1, 1, True, True, 'Dumps a specified
register_command('dumpprivkeys', 0, 0, True, True, 'dump all private keys')
register_command('freeze', 1, 1, False, True, 'Freeze the funds at one of your wallet\'s addresses', 'freeze
')
register_command('getbalance', 0, 1, False, False, 'Return the balance of your wallet, or of one account in your wallet', 'getbalance []')
+register_command('getservers', 0, 0, False, False, 'Return the list of available servers')
register_command('getaddressbalance', 1, 1, False, False, 'Return the balance of an address', 'getbalance ')
register_command('getaddresshistory', 1, 1, False, False, 'Return the transaction history of an address', 'getaddresshistory ')
register_command('getconfig', 1, 1, False, True, 'Return a configuration variable', 'getconfig ', config_options)
@@ -187,6 +188,8 @@ class Commands:
if u: out["unconfirmed"] = str(Decimal(u)/100000000)
return out
+ def getservers(self):
+ return self.network.get_servers()
def getseed(self):
import mnemonic