wallet-frontend


wallet-frontend / main / App

Class: App

Defined in: main.ts:19

Bootstraps the wallet-connect experience on the website authorize page.

Initializes only when wallet card elements are present, fetches the list of supported wallets from the backend, builds a mainnet WalletManager, binds a WalletComponent per wallet, and resumes any prior sessions. There is no network selector: website authorizes on mainnet only.

Constructors

Constructor

new App(): App

Defined in: main.ts:28

Registers initialization on DOMContentLoaded.

Returns

App

Properties

apiBase

private apiBase: string = DEFAULT_API_BASE

Defined in: main.ts:25

Resolved walletauth API base path.


walletComponents

private walletComponents: WalletComponent[] = []

Defined in: main.ts:23

Bound wallet components, retained for cleanup.


walletManager

walletManager: WalletManager | null = null

Defined in: main.ts:21

The wallet manager, or null until App.init runs.

Methods

init()

init(): Promise<void>

Defined in: main.ts:38

Initializes wallets and binds components.

No-ops on pages without wallet cards. On failure it reveals the #app-error element if present and logs the error.

Returns

Promise<void>