Documentation
    Preparing search index...

    Type Alias ConnectionInitiatedEvent

    A connection was initiated against a particular kind of source.

    Unlike SelectedWalletEvent, which only the UI package emits, this fires from the core SDK on every connect() — so it also covers dApps that ship their own wallet picker, deep-link straight to a wallet, or use @tonconnect/sdk without @tonconnect/ui at all.

    It counts connect initiations, not user actions: a single journey can legitimately produce several, with different source kinds, sharing one trace id.

    type ConnectionInitiatedEvent = {
        bridge_key?: string;
        bridge_url?: string;
        connection_source_kind: WalletConnectionSourceKind;
        custom_data: Version;
        trace_id?: string | null;
        type: "connection-initiated";
    }
    Index

    Properties

    bridge_key?: string

    Bridge key from the wallets list, for js-embedded and js-injected sources.

    bridge_url?: string

    Bridge URL, for an http-specific-wallet source.

    connection_source_kind: WalletConnectionSourceKind

    How the connection was initiated.

    custom_data: Version

    Custom data for the connection.

    trace_id?: string | null

    Unique identifier used for tracking a specific user flow.

    type: "connection-initiated"

    Event type.