Skip to content

JsonRpcRequest

JsonRpcRequest<TMethod, TParams>: object & TParams extends readonly [] ? object : object

Helper type for creating JSON-RPC request types

Type declaration

id?

readonly optional id: string | number | null

jsonrpc

readonly jsonrpc: "2.0"

method

readonly method: TMethod

Type Parameters

TMethod extends string

TParams

Defined in

packages/jsonrpc/src/JsonRpcRequest.ts:4