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
}| Field | Type | Description |
|---|---|---|
name | string | Wallet name (e.g., "Turing") |
platform | string | Platform (e.g., "android", "ios", "chrome") |
version | string | Wallet 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);
}