forked from LBRYCommunity/lbry-sdk
wallet_list optionally takes wallet_id
This commit is contained in:
parent
1d090765ba
commit
1ac3b6c173
1 changed files with 5 additions and 3 deletions
|
@ -1047,18 +1047,20 @@ class Daemon(metaclass=JSONRPCServerType):
|
|||
"""
|
||||
|
||||
@requires("wallet")
|
||||
def jsonrpc_wallet_list(self):
|
||||
def jsonrpc_wallet_list(self, wallet_id=None):
|
||||
"""
|
||||
List wallets.
|
||||
|
||||
Usage:
|
||||
wallet_list
|
||||
wallet_list [--wallet_id=<wallet_id>]
|
||||
|
||||
Options:
|
||||
None
|
||||
--wallet_id=<wallet_id> : (str) show specific wallet only
|
||||
|
||||
Returns: {List[Wallet]}
|
||||
"""
|
||||
if wallet_id:
|
||||
return [self.wallet_manager.get_wallet_or_error(wallet_id)]
|
||||
return self.wallet_manager.wallets
|
||||
|
||||
@requires("wallet")
|
||||
|
|
Loading…
Reference in a new issue