@thruputchain/client
    Preparing search index...

    Class JsonRpcError

    Error thrown when a JSON-RPC response contains an error object.

    Malformed envelopes throw RpcResponseError, preserving the raw reply.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Constructors

    • Parameters

      • code: number
      • message: string
      • Optionaldata: unknown
      • Optionalmethod: string
      • Optionalraw: unknown

      Returns JsonRpcError

    Properties

    code: number

    JSON-RPC numeric error code.

    data?: unknown

    Optional JSON-RPC error data returned by the gateway.

    method?: string

    JSON-RPC method associated with the failed request, when known.

    raw: unknown

    Complete original JSON-RPC error object, including additive fields.

    rpcMessage: string