From 5c8f04efa10860d8cebbf75ff4ceb88af3924139 Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Sun, 26 Oct 2025 17:00:48 -0300 Subject: [PATCH] nip61: a comment about the amount. --- nip61/nip61.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nip61/nip61.go b/nip61/nip61.go index 7eff8d1..fd87c6c 100644 --- a/nip61/nip61.go +++ b/nip61/nip61.go @@ -163,6 +163,9 @@ func getEligibleTokensWeHave( } } +// GetAmountFromNutzap parses and sums all the proofs in a nutzap, returns the amount. +// +// The amount will be in the unit corresponding to the mint keys, which is often "sat" but can be something else. func GetAmountFromNutzap(evt nostr.Event) uint64 { var total uint64 for _, tag := range evt.Tags {