Cashu-TS - v4.13.0
    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 the tag carries more than one value, or a value that is not a safe integer.