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 | undefined
asunknown
, meaning that thedata
field is not optional. To make it optional, we use theOptionalField
helper, to explicitly make it optional.