T402 API Reference - v2.8.0
    Preparing search index...

    Function validateBolt11Invoice

    • Validate a BOLT11 Lightning invoice (basic format validation)

      BOLT11 invoices follow the format:

      • lnbc... for mainnet
      • lntb... for testnet
      • lnbcrt... for regtest

      Parameters

      • invoice: string

        BOLT11 invoice string

      Returns boolean

      true if the invoice has a valid format