JSON-RPC 2.0 response envelope.

1.0.0

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

Type Parameters

  • T = unknown

    The expected result payload type.

Properties

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