Skip to content

Redeem Ecash

federation.getInviteCode()

Access the invite code for the connected federation.

ts
import { 
FedimintWallet
} from '@fedimint/core-web'
const
wallet
= new
FedimintWallet
()
wallet
.
open
()
const
peerId
= 0 // Index of the guardian to ask for the invite code
const
inviteCode
= await
wallet
.
federation
.
getInviteCode
(
peerId
)