Optional
actionsOptional
buttonHTML element id to attach the wallet connect button. If not passed button won't appear.
null.
Optional
enableSpecifies whether the Android back button should be used to close modals and notifications on Android devices.
true
Optional
eventEvent dispatcher to track user actions. By default, it uses window.dispatchEvent
for browser environment.
BrowserEventDispatcher.
Optional
languageLanguage for the phrases it the UI elements.
system
Optional
manifestUrl 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.
Optional
restoreTry to restore existing session and reconnect to the corresponding wallet.
true.
Optional
uiUI elements configuration.
Optional
walletsConfiguration for the wallets list in the connect wallet modal.
Optional
widgetHTML element id to attach the modal window element. If not passed, div#tc-widget-root
in the end of the
div#tc-widget-root
.
Generated using TypeDoc
Configuration for action-period (e.g. sendTransaction) UI elements: modals and notifications and wallet behaviour (return strategy).