Optionaltransport: PaymentRequestTransport[]Optionalid: stringOptionalamount: AmountLikeOptionalunit: stringOptionalmints: string[]Optionaldescription: stringOptionalnut10: NUT10OptionOptionalamountOptionaldescriptionOptionalidOptionalmintsOptionalnut10OptionaltransportOptionalunitA base64 encoded payment request string with 'creqA' prefix.
ExperimentalEncodes the payment request to creqB format (TLV + bech32m).
A bech32m encoded payment request string with 'CREQB' prefix.
Converts this request's nut10 locking option into the P2PKOptions accepted by the
.asP2PK() builder, so a payer can produce proofs locked to exactly the spending condition the
payee requested.
Supports P2PK (NUT-11) and HTLC (NUT-14) only. Returns undefined when there is no nut10
option or its kind is not one we can build.
StaticfromStaticfromCreates a PaymentRequest from a raw payment request. Supports both creqA and creqB versions.
The raw payment request string to create a PaymentRequest from.
A PaymentRequest object.
Encodes the payment request to creqA format (CBOR).