[**asastats-wallet-frontend**](../../README.md) *** [asastats-wallet-frontend](../../README.md) / [main](../README.md) / App # Class: App Defined in: [main.ts:17](https://github.com/asastats/frontend/blob/main/frontend/src/main.ts#L17) Bootstraps the wallet-connect experience on the ASA Stats 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: ASA Stats authorizes on mainnet only. ## Constructors ### Constructor > **new App**(): `App` Defined in: [main.ts:26](https://github.com/asastats/frontend/blob/main/frontend/src/main.ts#L26) Registers initialization on `DOMContentLoaded`. #### Returns `App` ## Properties ### apiBase > `private` **apiBase**: `string` = `DEFAULT_API_BASE` Defined in: [main.ts:23](https://github.com/asastats/frontend/blob/main/frontend/src/main.ts#L23) Resolved walletauth API base path. *** ### walletComponents > `private` **walletComponents**: [`WalletComponent`](../../WalletComponent/classes/WalletComponent.md)[] = `[]` Defined in: [main.ts:21](https://github.com/asastats/frontend/blob/main/frontend/src/main.ts#L21) Bound wallet components, retained for cleanup. *** ### walletManager > **walletManager**: `WalletManager` \| `null` = `null` Defined in: [main.ts:19](https://github.com/asastats/frontend/blob/main/frontend/src/main.ts#L19) The wallet manager, or null until [App.init](#init) runs. ## Methods ### init() > **init**(): `Promise`\<`void`\> Defined in: [main.ts:36](https://github.com/asastats/frontend/blob/main/frontend/src/main.ts#L36) 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`\>