Prevent hidden Elements issuance amounts from reducing a supply total

A wallet that knows an issuance transaction can still lack the blinding information for its amount. A naive supply exporter can interpret the unknown-value sentinel as a negative issuance.

Classify each wallet-visible event

Set ASSET to the canonical asset ID. Store the transaction ID and input index as the event key. Preserve isreissuance and explicitly classify whether assetamount is known before aggregating numbers.

elements-cli listissuances "$ASSET" | jq 'map({txid,vin,isreissuance,assetamount,known: (.assetamount >= 0)})'

Report coverage with the sum

For known issuances of 100 and 20 units plus one unknown event, report 120 known units and one unresolved event. Subtracting one would produce a meaningless 119. The wallet's list is limited to issuances it knows and does not establish global circulating supply or account for burns.

elementsproject.org listissuances