type JsonRpcError: {
  "error": {
     "code": number;
     "data": any;
     "message": string;
     "shard": Shard;
    };
  "id": number;
};

A JSON-RPC error, which are returned on failure from a JSON-RPC server.

Type declaration

error

error: {
  "code": number;
  "data": any;
  "message": string;
  "shard": Shard;
};

The response error.

error.code

code: number;

error.data?

optional data: any;

error.message?

optional message: string;

error.shard?

optional shard: Shard;

id

id: number;

The response ID to match it to the relevant request.

Source

providers/provider-jsonrpc.ts:147