diff --git a/lbry/extras/daemon/daemon.py b/lbry/extras/daemon/daemon.py index d5ab35889..270dde189 100644 --- a/lbry/extras/daemon/daemon.py +++ b/lbry/extras/daemon/daemon.py @@ -2249,7 +2249,7 @@ class Daemon(metaclass=JSONRPCServerType): [--any_locations=...] [--all_locations=...] [--not_locations=...] [--order_by=...] [--page=] [--page_size=] - [--wallet_id=] [--include_purchase_receipt] + [--wallet_id=] [--include_purchase_receipt] [--include_is_my_output] Options: --name= : (str) claim name (normalized) @@ -2353,6 +2353,8 @@ class Daemon(metaclass=JSONRPCServerType): --wallet_id= : (str) wallet to check for claim purchase reciepts --include_purchase_receipt : (bool) lookup and include a receipt if this wallet has purchased the claim + --include_is_my_output : (bool) lookup and include a boolean indicating + if claim being resolved is yours Returns: {Paginated[Output]} """ diff --git a/lbry/wallet/ledger.py b/lbry/wallet/ledger.py index 0376cb5a0..c9fefd76d 100644 --- a/lbry/wallet/ledger.py +++ b/lbry/wallet/ledger.py @@ -732,9 +732,12 @@ class Ledger(metaclass=LedgerRegistry): return result async def claim_search( - self, accounts, include_purchase_receipt=False, **kwargs) -> Tuple[List[Output], dict, int, int]: + self, accounts, include_purchase_receipt=False, include_is_my_output=False, + **kwargs) -> Tuple[List[Output], dict, int, int]: return await self._inflate_outputs( - self.network.claim_search(**kwargs), accounts, include_purchase_receipt=include_purchase_receipt + self.network.claim_search(**kwargs), accounts, + include_purchase_receipt=include_purchase_receipt, + include_is_my_output=include_is_my_output ) async def get_claim_by_claim_id(self, accounts, claim_id) -> Output: