APIResponse<PenInfo>:resultisPenInfo
PluginCommAPI
getPenInfo
Get current pen information.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Get current pen information.
static getPenInfo(): Promise<APIResponse<PenInfo>>;
APIResponse<PenInfo>:
result is PenInfoimport { 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;
}