SDK docs version: v0.1.25
Get current pen information.
static getPenInfo(): Promise<APIResponse<PenInfo>>;
APIResponse<PenInfo>
result
PenInfo
import { PluginCommAPI } from 'sn-plugin-lib'; export async function exampleGetPenInfo() { const res = await PluginCommAPI.getPenInfo(); if (!res.success) { throw new Error(res.error?.message ?? 'getPenInfo call failed'); } return res.result; }