Interface TonConnectUiOptionsWithManifest

Hierarchy

Properties

actionsConfiguration?: ActionConfiguration

Configuration for action-period (e.g. sendTransaction) UI elements: modals and notifications and wallet behaviour (return strategy).

buttonRootId?: null | string

HTML element id to attach the wallet connect button. If not passed button won't appear.

Default

null.

enableAndroidBackHandler?: boolean

Specifies whether the Android back button should be used to close modals and notifications on Android devices.

Default

true

eventDispatcher?: EventDispatcher<RequestVersionEvent | ResponseVersionEvent | ConnectionStartedEvent | ConnectionCompletedEvent | ConnectionErrorEvent | ConnectionRestoringStartedEvent | ConnectionRestoringCompletedEvent | ConnectionRestoringErrorEvent | DisconnectionEvent | TransactionSentForSignatureEvent | TransactionSignedEvent | TransactionSigningFailedEvent>

Event dispatcher to track user actions. By default, it uses window.dispatchEvent for browser environment.

Default

BrowserEventDispatcher.

language?: Locales

Language for the phrases it the UI elements.

Default

system

manifestUrl?: string

Url to the [manifest]https://github.com/ton-connect/docs/blob/main/requests-responses.md#app-manifest with the Dapp metadata that will be displayed in the user's wallet. If not passed, manifest from ${window.location.origin}/tonconnect-manifest.json will be taken.

restoreConnection?: boolean

Try to restore existing session and reconnect to the corresponding wallet.

Default

true.

uiPreferences?: UIPreferences

UI elements configuration.

walletsListConfiguration?: WalletsListConfiguration

Configuration for the wallets list in the connect wallet modal.

widgetRootId?: string

HTML element id to attach the modal window element. If not passed, div#tc-widget-root in the end of the will be added and used.

Default

div#tc-widget-root.

Generated using TypeDoc