참고: 이 페이지는 아직 한국어로 번역되지 않았습니다. 아래는 영어 원문입니다.
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