Skip to content

[feature]: Add queries for listing asset IDs by group and fetching metadata for any asset ID #1721

@ffranr

Description

@ffranr

Currently, we can fetch asset metadata by genesis asset ID:

// FetchAssetMetaForAsset fetches the asset meta for a given asset.
FetchAssetMetaForAsset(ctx context.Context,
assetID []byte) (AssetMeta, error)

For the supply commitment feature, we need two separate queries for better flexibility:

  1. List asset IDs in a group

    • Return all asset IDs (minted tranches) for a given asset group.
    • Order by mint block height.
    • Output format could be a map of block height → asset ID.
  2. Fetch metadata for any asset ID

    • Support retrieving asset metadata for any tranche within an asset group, not just the genesis asset.

This would also allow fetching the latest supply commitment delegation key if needed later.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestsqlcsupply commitWork on the supply commitment feature, enabling issuers to attest to total asset supply on-chain.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions