From 8d3bd451025f17fb7abafb0fdfeca8be0e4a684f Mon Sep 17 00:00:00 2001 From: Jack Date: Mon, 8 Aug 2016 01:43:10 -0400 Subject: [PATCH] get_claims_for_name daemon function --- lbrynet/lbrynet_daemon/LBRYDaemon.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/lbrynet/lbrynet_daemon/LBRYDaemon.py b/lbrynet/lbrynet_daemon/LBRYDaemon.py index d79a06fb0..8b5d8847b 100644 --- a/lbrynet/lbrynet_daemon/LBRYDaemon.py +++ b/lbrynet/lbrynet_daemon/LBRYDaemon.py @@ -1999,6 +1999,21 @@ class LBRYDaemon(jsonrpc.JSONRPC): return d + def jsonrpc_get_claims_for_name(self, p): + """ + Get claims for a name + + Args: + 'name': name + Returns + list of name claims + """ + + name = p['name'] + d = self.session.wallet.get_claims_for_name(name) + d.addCallback(lambda r: self._render_response(r, OK_CODE)) + return d + def jsonrpc_get_transaction_history(self): """ Get transaction history