Skip to content

Commit

Permalink
Merge pull request #13 from AugustoResende/main
Browse files Browse the repository at this point in the history
Feature: Add expiry to createInvoice function
  • Loading branch information
MiguelMedeiros committed Oct 5, 2023
2 parents 664555b + 76afc07 commit e3660b8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/wallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,13 @@ export class LNBitsWalletClass {
memo: string;
out?: boolean;
webhook?: string;
expiry?: number;
} = {
amount: 0,
memo: 'memo',
out: false,
webhook: '',
// no default here because lnbits will use its own default
}
): Promise<CreateInvoice> => {
this.api.defaults.headers['X-Api-Key'] = this.invoiceReadKey;
Expand Down

0 comments on commit e3660b8

Please sign in to comment.