Ecash & Fedi API

Read your active wallet balance over WebLN, and use window.fediInternal for versioned mini app discovery. Both degrade gracefully — older Fedi builds may not expose them.

Ecash & wallet balance

Fedi bridges your wallet to the standard WebLN getBalance() call. You see the balance of your active federation — read on for what that means across federations.

Wallet balance

Reads window.webln.getBalance() — the spendable balance of your active Fedi wallet. Tap to read it.

Environment & installed apps

On fediInternal v2, tap Load installed apps to list mini app URLs or use installMiniApp()to trigger Fedi's native install sheet. Both require the user to grant manageInstalledMiniApps when Fedi prompts.

Checking Fedi environment…