Spend Ecash
mint.spendNotes(amountMsats: number)
Generates ecash notes for spending.
ts
import { FedimintWallet } from '@fedimint/core-web'
const wallet = new FedimintWallet()
wallet.open()
const amountMsats = 10_000
const result = await wallet.mint.spendNotes(amountMsats)
console.log(result.notes) // ecash notes