get_claims_for_name daemon function

This commit is contained in:
Jack 2016-08-08 01:43:10 -04:00
parent f69753f6a0
commit 8d3bd45102

View file

@ -1999,6 +1999,21 @@ class LBRYDaemon(jsonrpc.JSONRPC):
return d 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): def jsonrpc_get_transaction_history(self):
""" """
Get transaction history Get transaction history