Constructors
constructor
- new LNURL(lnurl): LNURL
Properties
Private
Optional
#service
Private
#url
#url: URL
Accessors
canZap
- get canZap(): boolean
Returns boolean
isLNAddress
- get isLNAddress(): boolean
Returns boolean
lnurl
- get lnurl(): string
Returns string
max
- get max(): number
Returns number
maxCommentLength
Returns number
min
- get min(): number
Returns number
name
- get name(): string
Returns string
url
- get url(): URL
Returns URL
zapperPubkey
- get zapperPubkey(): undefined | string
Returns undefined | string
Methods
Private
#validateService
- #validateService(): void
Returns void
getInvoice
- getInvoice(amount, comment?, zap?): Promise<LNURLInvoice>
Parameters
amount: number
Optional
comment: string
Optional
zap: object
getLNAddress
- getLNAddress(): string
Returns string
load
- load(): Promise<void>
Returns Promise<void>
Setup LNURL service