Skip to content

GetNotesByDenomination

mint.getNotesByDenomination()

Gives count of ecash notes by denomination present in the wallet.

ts
import { 
WalletDirector
} from '@fedimint/core'
import {
WasmWorkerTransport
} from '@fedimint/transport-web'
const
director
= new
WalletDirector
(new
WasmWorkerTransport
())
const
wallet
= await
director
.
createWallet
()
await
wallet
.
open
()
const
notes
= await
wallet
.
mint
.
getNotesByDenomination
()
console
.
log
('Notes are: ',
notes
) // {1: 2, 2: 1, 8: 2}