Skip to content

JsonRpcProcedure

JsonRpcProcedure<TMethod, TParams, TResult, TErrorCode>: (request) => Promise<JsonRpcResponse<TMethod, TResult, TErrorCode>>

Type Parameters

TMethod extends string

TParams

TResult

TErrorCode extends string | number

Parameters

request: JsonRpcRequest<TMethod, TParams>

Returns

Promise<JsonRpcResponse<TMethod, TResult, TErrorCode>>

Defined in

packages/jsonrpc/src/JsonRpcProcedure.ts:4