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
>>
Source
packages/jsonrpc/src/JsonRpcProcedure.ts:4