UNPKG

@factorial-finance/blueprint-node

Version:

blueprint-node-plugin

12 lines (11 loc) 408 B
import { JsonRpcRequest, JsonRpcResponse } from '../types/common'; export interface IApiHandler { handleRequest(request: JsonRpcRequest): Promise<JsonRpcResponse>; validateRequest(request: JsonRpcRequest): boolean; getSupportedMethods(): string[]; } export interface IMethodHandler { handle(params: any): Promise<any>; validateParams(params: any): boolean; getMethodName(): string; }