core-web 0.0.2-alpha.1
Install from the command line:
Learn more about npm packages
$ npm install @fedimint/core-web@0.0.2-alpha.1
Install via package.json:
"@fedimint/core-web": "0.0.2-alpha.1"
About this version
This package provides a typescript interface for the Fedimint client in the browser
pnpm add @fedimint/core-web
import { FedimintWallet } from '@fedimint/core-web'
// federation invite code
const inviteCode = 'fed11qgqpw9thwvaz7t...'
// This should be called only once
await FedimintWallet.initFedimint()
const wallet = await FedimintWallet.joinFederation(inviteCode)
// Get Wallet Balance
const balance = await wallet.getBalance()
// Receive Ecash Payments
await wallet.reissueNotes('A11qgqpw9thwvaz7t...')
// Pay Lightning Invoice
await wallet.payInvoice('lnbc...')
Assets
- core-web-0.0.2-alpha.1.tgz
Download activity
- Total downloads 0
- Last 30 days 0
- Last week 0
- Today 0