Skip to content

Commit

Permalink
Update getting-started.md (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexlwn123 authored Oct 2, 2024
1 parent 6112f6f commit 9787f5e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docs/core/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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...')
```
Expand Down

0 comments on commit 9787f5e

Please sign in to comment.