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.
unknown | undefined
unknown
data
OptionalField
A JSON-RPC error object.
Note that TypeScript infers
unknown | undefinedasunknown, meaning that thedatafield is not optional. To make it optional, we use theOptionalFieldhelper, to explicitly make it optional.