Interface RpcRequest<T>

JSON-RPC request and response types.

interface RpcRequest<T> {
    id: string | number;
    jsonrpc: "2.0";
    method: string;
    params?: T;
}

Type Parameters

  • T = any

Properties

id: string | number
jsonrpc
method: string
params?: T