Interface TonConnectSession

Represents a TON Connect session. See https://github.com/ton-blockchain/ton-connect/tree/main/spec for full TON Connect protocol documentation.

interface TonConnectSession {
    @type: "tonConnectSession";
    creation_date: number;
    dapp_client_id: string;
    id: string;
    manifest: TonConnectManifest;
    nonce: string;
    state: TonConnectSessionState;
    wallet_client_id: string;
}

Properties

@type: "tonConnectSession"
creation_date: number

Point in time (Unix timestamp) when the session was created.

dapp_client_id: string

Hex-encoded public X25519 key of the dApp.

id: string

Unique identifier of the session.

Manifest of the dApp.

nonce: string

Nonce used for the session.

Session state.

wallet_client_id: string

Hex-encoded public X25519 key of the current user's application; may be empty if none.