Documentation
    Preparing search index...

    Interface Wallet

    The connected wallet as seen by the dApp. Returned by ITonConnect.wallet and emitted on every onStatusChange callback after a successful connect; null while no wallet is connected.

    interface Wallet {
        account: Account;
        connectItems?: { tonProof?: TonProofItemReply };
        device: DeviceInfo;
        embeddedResponse?: EmbeddedResponse;
        provider: "injected" | "http";
    }
    Index

    Properties

    account: Account

    Account the user picked during connect.

    connectItems?: { tonProof?: TonProofItemReply }

    Replies for the optional ConnectItems the dApp requested in addition to ton_addr.

    Type declaration

    device: DeviceInfo

    Metadata reported by the wallet during the connect handshake — platform, application name and version, max supported protocol version, and the list of advertised features.

    embeddedResponse?: EmbeddedResponse

    Result of an embedded request, when one was folded into the connect URL.

    Set only if the SDK encoded an EmbeddedRequest into the connect URL, and the wallet advertises the EmbeddedRequest feature and processed it during connect.

    Absence means the wallet completed only the connect step.

    provider: "injected" | "http"

    Transport carrying the session.

    • 'http' — the wallet is reached through the HTTP (SSE) bridge listed in the wallets registry. dApp and wallet typically run on different devices.
    • 'injected' — the wallet exposes a JS bridge object on window (a browser extension, or the dApp running inside the wallet's webview).