Type aliases
RpcApi
RpcApi<
TRpcMethods
> ={ [MethodName in keyof TRpcMethods]: RpcReturnTypeMapper<TRpcMethods[MethodName]> }
For each of TRpcMethods
, this object exposes a method with the same name that maps between its
input arguments and a RpcPlan<TResponse> that implements the execution of a
JSON RPC request to fetch TResponse
.
Type Parameters
Type Parameter |
---|
TRpcMethods |