Type alias JsonRpcError

JsonRpcError: OptionalField<Infer<typeof JsonRpcErrorStruct>, "data">

A JSON-RPC error object.

Note that TypeScript infers unknown | undefined as unknown, meaning that the data field is not optional. To make it optional, we use the OptionalField helper, to explicitly make it optional.