Redeem Ecash
federation.getInviteCode()
Access the invite code for the connected federation.
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 peerId = 0 // Index of the guardian to ask for the invite code
const inviteCode = await wallet.federation.getInviteCode(peerId)