Cashu-TS - v3.3.0
    Preparing search index...

    Class PaymentRequest

    Index

    Constructors

    Properties

    amount?: number
    description?: string
    id?: string
    mints?: string[]
    nut10?: NUT10Option
    nut26: boolean = false
    singleUse: boolean = false
    unit?: string

    Methods

    • Encodes the payment request to creqA format (CBOR).

      Returns string

      A base64 encoded payment request string with 'creqA' prefix.

    • Experimental

      Encodes the payment request to creqB format (TLV + bech32m).

      Returns string

      A bech32m encoded payment request string with 'CREQB' prefix.