errors

package
v0.25.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 29, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotSupported = errors.New("endpoint is not supported")
	ErrInvalid      = errors.New("invalid request")
	ErrInternal     = errors.New("internal error")
	ErrRateLimit    = errors.New("limit of requests per second reached")
)

Functions

This section is empty.

Types

type GasPriceTooLowError added in v0.21.0

type GasPriceTooLowError struct {
	GasPrice *big.Int
}

func NewErrGasPriceTooLow added in v0.4.0

func NewErrGasPriceTooLow(gasPrice *big.Int) *GasPriceTooLowError

func (*GasPriceTooLowError) Error added in v0.21.0

func (e *GasPriceTooLowError) Error() string

type RevertError added in v0.18.0

type RevertError struct {
	Reason string // revert reason hex encoded
	// contains filtered or unexported fields
}

RevertError is an API error that encompasses an EVM revert with JSON error code and a binary data blob.

func NewRevertError added in v0.18.0

func NewRevertError(revert []byte) *RevertError

NewRevertError creates a revertError instance with the provided revert data.

func (*RevertError) ErrorCode added in v0.18.0

func (e *RevertError) ErrorCode() int

ErrorCode returns the JSON error code for a revert. See: https://github.com/ethereum/wiki/wiki/JSON-RPC-Error-Codes-Improvement-Proposal

func (*RevertError) ErrorData added in v0.18.0

func (e *RevertError) ErrorData() interface{}

ErrorData returns the hex encoded revert reason.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL