Layer 231
method
wallet.tonConnectRegisterKey#338bcf1c session_id:long client_id:string = wallet.TonConnectChallenge;

Parameters

Name Type Description
SessionId long ID of the session created with wallet. ton Connect Create Session
ClientId string Wallet-side TON Connect client ID: hex public key of the session keypair generated on-device

Gogram Example

// sessionKeyHex: hex public key of the wallet-side TON Connect session keypair generated on-device.
ch, err := client.WalletTonConnectRegisterKey(sessionID, sessionKeyHex)
if err != nil {
	log.Fatal(err)
}
fmt.Println("challenge:", len(ch.Challenge), "bytes, event id:", ch.EventID)