Skip to content

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

@fedimint/core-web

THIS IS A WORK IN PROGRESS AND NOT READY FOR USE

This package provides a typescript interface for the Fedimint client in the browser

Installation

pnpm add @fedimint/core-web

Usage

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...')

Check out the example

examples/vite-core

Details


Assets

  • core-web-0.0.2-alpha.1.tgz

Download activity

  • Total downloads 0
  • Last 30 days 0
  • Last week 0
  • Today 0

Recent versions

View all