Skip to content

Conversation

XantreDev
Copy link

According to the sdk code. walletInfo must be defined to pass TonConnect sdk JS bridge checking

@thekiba
Copy link
Collaborator

thekiba commented Aug 15, 2025

Hey @XantreDev, could you please provide more details about that field?

@XantreDev
Copy link
Author

The "walletInfo" field specified in the documentation as optional field, but in reality tonconnect sdk check for the existence of the field

ton-connect/bridge.md

Lines 137 to 148 in f6eb15e

```tsx
interface TonConnectBridge {
deviceInfo: DeviceInfo; // see Requests/Responses spec
walletInfo?: WalletInfo;
protocolVersion: number; // max supported Ton Connect version (e.g. 2)
isWalletBrowser: boolean; // if the page is opened into wallet's browser
connect(protocolVersion: number, message: ConnectRequest): Promise<ConnectEvent>;
restoreConnection(): Promise<ConnectEvent>;
send(message: AppRequest): Promise<WalletResponse>;
listen(callback: (event: WalletEvent) => void): () => void;
}
```

Probably it's better this way
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants