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

    Function bolt11AmountMsat

    • Internal

      Reads the amount a BOLT11 invoice asks for from its human readable part, in millisats.

      Parameters

      • pr: string

      Returns bigint | null

      HRP only: no checksum or signature validation, that is the payer's job. Returns null for an amountless invoice.

      If the string is not shaped like a BOLT11 invoice or the amount is malformed.