lightninglabs / lightninglabs/taproot-assets

[feature]: provide an RPC to just count total assets

Open
#1,699 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Go
Stars
525
Forks
150
Avg merge
2d 15h
Merged PRs (30d)
31

Description

As a compliment to https://github.com/lightninglabs/taproot-assets/issues/875 , I'd like to see the ability to get a count of total `asset_id`, `group_key`, asset UTXO, etc. without having to download details about them all. For example, it would be nice if we could check if we have 50 asset UTXO or 5,000 asset UTXO before we decide to paginate or not.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the existing RPCs related to asset IDs, group keys, and asset UTXOs, along with the referenced issue 875. Define the counts that should be returned without downloading item details, then verify that callers can use them to decide whether pagination is needed.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
api
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.