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 {