Skip to main content
static getPenInfo(): Promise<APIResponse<PenInfo>>;
Returns

Example

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;
}