Cashu-TS - v4.13.1
    Preparing search index...

    Function getTagInt

    • Get the single value of a scalar tag parsed as a base-10 integer, or undefined if missing.

      Parameters

      • secret: string | Secret

        The Proof secret.

      • key: string

        Tag key to lookup.

      Returns number | undefined

      • Tag value as an integer, undefined if not present.

      A present value that is not a safe base-10 integer throws rather than reading as absent, so a caller's default never replaces a malformed condition.

      If a present tag does not carry exactly one safe integer value.