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
>>