Interface TonConnectUiOptionsWithConnector

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.

connector?: ITonConnect

TonConnect instance. Can be helpful if you use custom ITonConnect implementation, or use both of @tonconnect/sdk and @tonconnect/ui in your app.

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

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