Skip to content

open

isOpen()

Check if the wallet is open.

ts
import { 
FedimintWallet
} from '@fedimint/core-web'
const
wallet
= new
FedimintWallet
()
const
isOpen
=
wallet
.
isOpen
()
if (!
isOpen
) {
await
wallet
.
joinFederation
('fed123...')
} else { const
balance
= await
wallet
.
balance
.
getBalance
()
}