Documentation
    Preparing search index...

    Interface Account

    The TON account that the wallet exposed to the dApp during the connect handshake.

    One Wallet maps to exactly one Account for the lifetime of the session. To switch accounts the user has to disconnect and reconnect from the dApp UI.

    interface Account {
        address: string;
        chain: string;
        publicKey?: string;
        walletStateInit: string;
    }
    Index

    Properties

    address: string

    User's address in raw hex form <workchain>:<hex>.

    Use toUserFriendlyAddress to render the non-bounceable base64url form (UQ… on mainnet, 0Q… on testnet) used in user-facing UI.

    chain: string

    TON network identifier. See ChainId.

    publicKey?: string

    Ed25519 public key advertised by the wallet during connect, hex-encoded without the 0x prefix.

    The value is not authoritative — do not trust it directly when verifying signatures. Re-derive it from Account.walletStateInit or call get_public_key on the wallet contract instead.

    walletStateInit: string

    Base64-encoded (not URL-safe) BoC of the wallet contract StateInit cell.