GetNotesByDenomination
mint.getNotesByDenomination()
Gives count of ecash notes by denomination present in the wallet.
ts
import { FedimintWallet } from '@fedimint/core-web'
const wallet = new FedimintWallet()
wallet.open()
const notes = await wallet.mint.getNotesByDenomination()
console.log('Notes are: ', notes) // {1: 2, 2: 1, 8: 2}