Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type ErrGasPriceTooLow ¶ added in v0.4.0
func NewErrGasPriceTooLow ¶ added in v0.4.0
func NewErrGasPriceTooLow(gasPrice *big.Int) *ErrGasPriceTooLow
func (*ErrGasPriceTooLow) Error ¶ added in v0.4.0
func (e *ErrGasPriceTooLow) 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.
Click to show internal directories.
Click to hide internal directories.