UNPKG

@dioxide-js/silas

Version:

RPC utility for Silas

18 lines (17 loc) 405 B
export declare const BCRPC_Module = "bcrpc"; export interface JSONRPCParam { method: string; id: number; params: any; jsonrpc: '2.0'; } export interface JSONRPCResp<T> { jsonrpc: '2.0'; id: number; result: T; err: { code: number; message: string; }; } export declare function composeParams(method: string, toBCRPC?: boolean, params?: {}): JSONRPCParam;