type JsonRpcPayload: {
  "id": number;
  "jsonrpc": "2.0";
  "method": string;
  "params": any[] | Record<string, any>;
};

A JSON-RPC payload, which are sent to a JSON-RPC server.

Type declaration

id

id: number;

The JSON-RPC request ID.

jsonrpc

jsonrpc: "2.0";

A required constant in the JSON-RPC specification.

method

method: string;

The JSON-RPC request method.

params

params: any[] | Record<string, any>;

The JSON-RPC request parameters.

Source

providers/provider-jsonrpc.ts:103