Skip to content

Commit

Permalink
update docs annotations to reflect change + update options to include…
Browse files Browse the repository at this point in the history
… privkey (lost in the rebase somehow?)
  • Loading branch information
lollerfirst committed Sep 5, 2024
1 parent 0357e9c commit f31f0ca
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/CashuWallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,7 @@ class CashuWallet {
* @param proofsToSend proofs to melt
* @param options.keysetId? optionally set keysetId for blank outputs for returned change.
* @param options.counter? optionally set counter to derive secret deterministically. CashuWallet class must be initialized with seed phrase to take effect
* @param options.privkey? optionally set a private key to unlock P2PK locked secrets
* @returns
*/
async meltTokens(
Expand All @@ -423,6 +424,7 @@ class CashuWallet {
options?: {
keysetId?: string;
counter?: number;
privkey?: string;
}
): Promise<MeltTokensResponse> {
const keys = await this.getKeys(options?.keysetId);
Expand Down Expand Up @@ -469,6 +471,7 @@ class CashuWallet {
* @param meltQuote melt quote for the invoice
* @param options.keysetId? optionally set keysetId for blank outputs for returned change.
* @param options.counter? optionally set counter to derive secret deterministically. CashuWallet class must be initialized with seed phrase to take effect
* @param options.privkey? optionally set a private key to unlock P2PK locked secrets
* @returns
*/
async payLnInvoice(
Expand All @@ -478,6 +481,7 @@ class CashuWallet {
options?: {
keysetId?: string;
counter?: number;
privkey?: string;
}
): Promise<MeltTokensResponse> {
if (!meltQuote) {
Expand Down

0 comments on commit f31f0ca

Please sign in to comment.