Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( REJECTED_BY_EP_OR_ACCOUNT = -32500 REJECTED_BY_PAYMASTER = -32501 BANNED_OPCODE = -32502 SHORT_DEADLINE = -32503 BANNED_OR_THROTTLED_ENTITY = -32504 INVALID_ENTITY_STAKE = -32505 INVALID_AGGREGATOR = -32506 INVALID_SIGNATURE = -32507 INVALID_FIELDS = -32602 EXECUTION_REVERTED = -32521 )
Functions ¶
func DecodePanic ¶
func DecodeRevert ¶
func NewRPCError ¶
New returns a new custom RPCError.
func ParseHexToRpcDataError ¶
ParseHexToRpcDataError is a utility function that converts a hex string into an interface that's compatible with rpc.DataError. This is useful for parsing output from a debug_traceCall that resulted in a transaction revert.
Types ¶
type RPCError ¶
type RPCError struct {
// contains filtered or unexported fields
}
RPCError is a custom error that fits the JSON-RPC error spec.
Click to show internal directories.
Click to hide internal directories.