export interface JsonRpcPayload { jsonrpc: string; method: string; params: T; id?: string | number; } export interface JsonRpcResult { id: number; jsonrpc: string; result: T; error?: { code: number; message: string; data: string; }; }