RAILGUN Reloaded
    Preparing search index...

    Error returned by a PPOI node JSON-RPC response.

    Hierarchy

    • Error
      • PoiNodeRpcError
    Index
    • Build a typed JSON-RPC error.

      Parameters

      • params: {
            url: string;
            chainId: number;
            method: POIJSONRPCMethod;
            code: number;
            message: string;
            data?: unknown;
        }

        Error construction params.

        • url: string

          PPOI node URL that returned the error.

        • chainId: number

          Network targeted by the request.

        • method: POIJSONRPCMethod

          JSON-RPC method that failed.

        • code: number

          JSON-RPC error code.

        • message: string

          JSON-RPC error message.

        • Optionaldata?: unknown

          Optional JSON-RPC error data.

      Returns PoiNodeRpcError

    name: "PoiNodeRpcError" = 'PoiNodeRpcError'

    Error class name.

    url: string

    PPOI node URL that returned the error.

    chainId: number

    Network targeted by the request.

    JSON-RPC method that failed.

    code: number

    JSON-RPC error code.

    data: unknown

    Optional JSON-RPC error data payload.