OptionalactionsModal / notification behavior and the return strategy for action
deep links (sendTransaction, signData, signMessage).
See ActionConfiguration.
OptionalanalyticsAnalytics configuration forwarded to the underlying TonConnect
instance. See AnalyticsSettings from @tonconnect/sdk.
OptionalbuttonHTML element id under which the "Connect Wallet" button mounts. With
null (default) the button is not rendered — use this when the dApp
triggers the modal from a custom control via tonConnectUI.openModal().
OptionalconnectorPre-built ITonConnect instance. The UI does not create its own
connector; option fields like manifestUrl are ignored.
OptionalenableClose modals and notifications when the Android system back button is pressed. Disable when the dApp manages browser history manually.
OptionaleventCustom event dispatcher for both SDK- and UI-layer user-action events.
Defaults to window.dispatchEvent (BrowserEventDispatcher).
OptionallanguageLanguage for the strings shown inside SDK-rendered UI.
OptionalrestoreAttempt to restore the previous session from storage on mount. Set to
false for flows that prefer an explicit connect step.
OptionaluiVisual configuration — theme, border radius, color overrides.
OptionalwalletsWallets-list overrides — include extra wallets, reorder existing ones. See WalletsListConfiguration.
OptionalwalletsSoft preference filter — non-matching wallets are still clickable but sorted below the separator. Same shape as walletsRequiredFeatures; the SDK does NOT enforce the match at connect time, so the dApp must handle missing features itself.
OptionalwalletsHide wallets that don't advertise the listed features. Non-matching
entries are greyed out below the separator on the "All wallets" screen
and rejected at connect time with WalletMissingRequiredFeaturesError.
OptionalwidgetHTML element id under which the SDK attaches its modal root. When
omitted, the SDK creates div#tc-widget-root at the end of <body>
and uses it.
Reuse an externally-built
ITonConnect. Useful when the dApp drives@tonconnect/sdkdirectly and only wants the UI layer on top, or when server-side rendering supplies the connector through a custom factory.