diff --git a/lbrynet/daemon/Daemon.py b/lbrynet/daemon/Daemon.py index a6cda67b6..072addcc9 100644 --- a/lbrynet/daemon/Daemon.py +++ b/lbrynet/daemon/Daemon.py @@ -2374,14 +2374,18 @@ class Daemon(AuthJSONRPCServer): def jsonrpc_send_amount_to_address(self, amount, address): """ Queue a payment of credits to an address - Usage: + + Usage: send_amount_to_address ( | --amount=) (
| --address=
) - Options: + + Options: --amount= : (float) amount to send --address=
: (str) address to send credits to - Returns: + + Returns: (bool) true if payment successfully scheduled """ + if amount < 0: raise NegativeFundsError() elif not amount: @@ -2964,14 +2968,17 @@ class Daemon(AuthJSONRPCServer): def jsonrpc_get_availability(self, uri, sd_timeout=None, peer_timeout=None): """ Get stream availability for lbry uri - Usage: + + Usage: get_availability ( | --uri=) [ | --sd_timeout=] [ | --peer_timeout=] - Options: + + Options: --uri= : (str) check availability for this uri --sd_timeout= : (int) sd blob download timeout --peer_timeout= : (int) how long to look for peers - Returns: + + Returns: (float) Peers per blob / total blobs """