code and message field inside the error key of the response.
Standard JSON-RPC error codes
Ethereum execution errors
Decoding revert reasons
When a transaction reverts, thedata field may contain an ABI-encoded revert reason:
Standard and Autheo-specific JSON-RPC error codes and how to handle them.
code and message field inside the error key of the response.
data field may contain an ABI-encoded revert reason: