taproot-assets icon indicating copy to clipboard operation
taproot-assets copied to clipboard

[feature]: Add `LookUpAsset` RPC

Open GeorgeTsagk opened this issue 2 years ago • 0 comments

Description

If we want to retrieve asset information via our RPC we are currently limited to using ListAssets RPC. Even though this currently works alright it could be inefficient when the number of owned assets grows larger.

This could be somewhat improved with filters as described in https://github.com/lightninglabs/taproot-assets/issues/876, but maybe an explicit RPC call for this is also useful.

We should add a call that takes a specific asset_id (or a group key) and returns all assets currently owned by the wallet. Could also use similar params to ListAssets like include_spent/include_leased.

GeorgeTsagk avatar Apr 11 '24 10:04 GeorgeTsagk