diff --git a/lbry/service/api.py b/lbry/service/api.py index 56c4b3d26..263768a60 100644 --- a/lbry/service/api.py +++ b/lbry/service/api.py @@ -2763,7 +2763,7 @@ class API: txo_dict, kwargs = pop_kwargs('txo_filter', txo_filter_kwargs(**txo_filter_and_pagination_kwargs)) pagination, kwargs = pop_kwargs('pagination', pagination_kwargs(**kwargs)) assert_consumed_kwargs(kwargs) - wallet = self.wallets.get_or_default(kwargs.pop('wallet_id')) + wallet = self.wallets.get_or_default(txo_dict.pop('wallet_id')) accounts = wallet.accounts.get_or_all(txo_dict.pop('account_id')) constraints = { 'resolve': resolve,