Documentation
    Preparing search index...

    Interface TonConnectUiOptionsWithManifest

    interface TonConnectUiOptionsWithManifest {
        actionsConfiguration?: ActionConfiguration;
        buttonRootId?: null | string;
        enableAndroidBackHandler?: boolean;
        eventDispatcher?: EventDispatcher<
            | RequestVersionEvent
            | ResponseVersionEvent
            | ConnectionStartedEvent
            | ConnectionCompletedEvent
            | ConnectionErrorEvent
            | ConnectionRestoringStartedEvent
            | ConnectionRestoringCompletedEvent
            | ConnectionRestoringErrorEvent
            | DisconnectionEvent
            | TransactionSentForSignatureEvent
            | TransactionSignedEvent
            | TransactionSigningFailedEvent
            | DataSentForSignatureEvent
            | DataSignedEvent
            | DataSigningFailedEvent,
        >;
        language?: Locales;
        manifestUrl?: string;
        restoreConnection?: boolean;
        uiPreferences?: UIPreferences;
        walletsListConfiguration?: WalletsListConfiguration;
        walletsPreferredFeatures?: RequiredFeatures;
        walletsRequiredFeatures?: RequiredFeatures;
        widgetRootId?: string;
    }

    Hierarchy (View Summary)

    Index

    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.

    null.
    
    enableAndroidBackHandler?: boolean

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

    true
    

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

    BrowserEventDispatcher.
    
    language?: Locales

    Language for the phrases it the UI elements.

    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.

    true.
    
    uiPreferences?: UIPreferences

    UI elements configuration.

    walletsListConfiguration?: WalletsListConfiguration

    Configuration for the wallets list in the connect wallet modal.

    walletsPreferredFeatures?: RequiredFeatures

    Preferred features for wallets. If wallet doesn't support preferred features, it will be moved to the end of the list.

    walletsRequiredFeatures?: RequiredFeatures

    Required features for wallets. If wallet doesn't support required features, it will be disabled.

    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.

    div#tc-widget-root.