Skip to content

getInfo

Get wallet metadata including name, platform, and version.

Usage

ts
const info = await Turing.getInfo();
console.log(info);
// { name: "Turing", platform: "android", version: "1.0.0" }

Parameters

This method takes no parameters.

Returns

ts
interface GetInfoResponse {
  name: string;      // Wallet name
  platform: string;  // Platform identifier
  version: string;   // Wallet version
}
FieldTypeDescription
namestringWallet name (e.g., "Turing")
platformstringPlatform (e.g., "android", "ios", "chrome")
versionstringWallet version string

Error Handling

ts
try {
  const { name, platform, version } = await Turing.getInfo();
  console.log(`${name} v${version} on ${platform}`);
} catch (error) {
  console.error("Failed to get wallet info:", error);
}