From 5cde78cf54bae253f70bd1d8fda1c5de1d02d63c Mon Sep 17 00:00:00 2001 From: Alex Lewin <43247027+alexlwn123@users.noreply.github.com> Date: Wed, 2 Oct 2024 12:15:36 -0400 Subject: [PATCH] Update getting-started.md --- docs/core/getting-started.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/core/getting-started.md b/docs/core/getting-started.md index cf09c55..3099724 100644 --- a/docs/core/getting-started.md +++ b/docs/core/getting-started.md @@ -153,7 +153,7 @@ Here's a basic example of how to use the `@fedimint/core-web` library: ::: code-group ```ts [main.ts] -import { wallet } from '@fedimint/core-web' +import { FedimintWallet } from '@fedimint/core-web' // Create the Wallet client const wallet = new FedimintWallet() @@ -179,6 +179,9 @@ const unsubscribe = wallet.balance.subscribeBalance((balance: number) => { // Receive Ecash Payments await wallet.mint.reissueNotes('A11qgqpw9thwvaz7t...') +// Create Lightning Invoice +await wallet.lightning.createInvoice(10_000, 'description') + // Pay Lightning Invoice await wallet.lightning.payBolt11Invoice('lnbc...') ```