Interface RpcResponse<T>

JSON-RPC response type.

interface RpcResponse<T> {
    error?: RpcError;
    id: string | number;
    jsonrpc: "2.0";
    result?: T;
}

Type Parameters

  • T = any

Properties

error?: RpcError
id: string | number
jsonrpc
result?: T