Documentation
    Preparing search index...

    Type Alias WalletSelectedEvent

    This wallet is the one being connected with.

    On mobile the pick is the commitment — the connection modal redirects to the wallet app on mount. On desktop it is the later click on the second screen's Mobile / Browser Extension / Desktop buttons.

    Unlike SelectedWalletEvent, which it replaces, this is emitted directly from the click handler with every field supplied by the call site. Nothing here is reconstructed from ambient state, and trace_id is required rather than optional.

    type WalletSelectedEvent = {
        connection_mode?: "mobile" | "desktop" | "extension";
        custom_data: Version;
        selection_source: WalletSelectionSource;
        surface: WalletSelectionSurface;
        trace_id: string;
        type: "wallet-selected";
        wallet_app_name: string;
    }
    Index

    Properties

    connection_mode?: "mobile" | "desktop" | "extension"

    Which transport the user picked on the desktop connection screen. Set only when surface is connection-modal, because the concept does not exist on the other surfaces.

    custom_data: Version

    Custom data for the connection.

    selection_source: WalletSelectionSource

    Who made the choice.

    Where the selection happened.

    trace_id: string

    Unique identifier used for tracking a specific user flow.

    type: "wallet-selected"

    Event type.

    wallet_app_name: string

    Wallet being connected with: 'tonkeeper', 'tonhub', etc.