{connectionVerb} {node?.alias || version || "unknown wallet"} via {$session.wallet.type}
{#if walletStatus === "connected"} Balance: {#await getWebLn() ?.enable() .then(() => getWebLn().getBalance())} {:then res} {new Intl.NumberFormat(LOCALE).format(res?.balance || 0)} {:catch} [unknown] {/await} sats {:else if walletStatus === "checking"} Balance: {:else} Balance unavailable {/if}
{connectionVerb} {lud16} via {displayRelayUrl(relayUrl)}
{#if walletStatus === "connected"} Balance: {#await getNwcClient().getBalance()} {:then res} {new Intl.NumberFormat(LOCALE).format(fromMsats(res?.balance || 0))} {:catch} [unknown] {/await} sats {:else if walletStatus === "checking"} Balance: {:else} Balance unavailable {/if}
No wallet connected
{/if}