errors
Index
Classes
- AbiError
- BaseWeb3Error
- ChainIdMismatchError
- ChainMismatchError
- CommonOrChainAndHardforkError
- ConfigChainMismatchError
- ConfigHardforkMismatchError
- ConnectionCloseError
- ConnectionError
- ConnectionNotOpenError
- ConnectionTimeoutError
- ContractCodeNotStoredError
- ContractEventDoesNotExistError
- ContractExecutionError
- ContractInstantiationError
- ContractMissingABIError
- ContractMissingDeployDataError
- ContractNoAddressDefinedError
- ContractNoFromAddressDefinedError
- ContractOnceRequiresCallbackError
- ContractReservedEventError
- ContractTransactionDataAndInputError
- EIP1193ProviderRpcError
- ENSCheckInterfaceSupportError
- ENSNetworkNotSyncedError
- ENSUnsupportedNetworkError
- Eip1559GasPriceError
- Eip1559NotSupportedError
- Eip838ExecutionError
- ExistingPluginNamespaceError
- FormatterError
- HardforkMismatchError
- HexProcessingError
- IVLengthError
- InternalError
- InvalidAddressError
- InvalidBlockError
- InvalidBooleanError
- InvalidBytesError
- InvalidClientError
- InvalidConnectionError
- InvalidGasOrGasPrice
- InvalidInputError
- InvalidIntegerError
- InvalidKdfError
- InvalidLargeValueError
- InvalidMaxPriorityFeePerGasOrMaxFeePerGas
- InvalidMethodParamsError
- InvalidNonceOrChainIdError
- InvalidNumberError
- InvalidNumberOfParamsError
- InvalidParamsError
- InvalidPasswordError
- InvalidPrivateKeyError
- InvalidPropertiesForTransactionTypeError
- InvalidProviderError
- InvalidRequestError
- InvalidResponseError
- InvalidSignatureError
- InvalidSizeError
- InvalidStringError
- InvalidTransactionCall
- InvalidTransactionObjectError
- InvalidTransactionWithReceiver
- InvalidTransactionWithSender
- InvalidTypeAbiInputError
- InvalidTypeError
- InvalidUnitError
- InvalidUnsignedIntegerError
- InvalidValueError
- KeyDerivationError
- KeyStoreVersionError
- LimitExceededError
- LocalWalletNotAvailableError
- MaxAttemptsReachedOnReconnectingError
- MethodNotFoundError
- MethodNotImplementedError
- MethodNotSupported
- MissingChainOrHardforkError
- MissingCustomChainError
- MissingCustomChainIdError
- MissingGasError
- MissingGasInnerError
- MultipleErrors
- NibbleWidthError
- NoContractAddressFoundError
- OperationAbortError
- OperationTimeoutError
- PBKDF2IterationsError
- ParseError
- PendingRequestsOnReconnectingError
- PrivateKeyLengthError
- ProviderError
- RequestAlreadySentError
- ResolverMethodMissingError
- ResourceUnavailableError
- ResourcesNotFoundError
- ResponseError
- RevertInstructionError
- RpcError
- SchemaFormatError
- SignatureError
- SubscriptionError
- TransactionBlockTimeoutError
- TransactionDataAndInputError
- TransactionError
- TransactionGasMismatchError
- TransactionGasMismatchInnerError
- TransactionMissingReceiptOrBlockHashError
- TransactionNotFound
- TransactionOutOfGasError
- TransactionPollingTimeoutError
- TransactionReceiptMissingBlockNumberError
- TransactionRejectedError
- TransactionRevertInstructionError
- TransactionRevertWithCustomError
- TransactionRevertedWithoutReasonError
- TransactionSendTimeoutError
- TransactionSigningError
- UnableToPopulateNonceError
- UndefinedRawTransactionError
- UnsupportedFeeMarketError
- UnsupportedTransactionTypeError
- VersionNotSupportedError
- Web3ContractError
- Web3WSProviderError
Type Aliases
Variables
- ERR_ABI_ENCODING
- ERR_CONN
- ERR_CONN_CLOSE
- ERR_CONN_INVALID
- ERR_CONN_MAX_ATTEMPTS
- ERR_CONN_NOT_OPEN
- ERR_CONN_PENDING_REQUESTS
- ERR_CONN_TIMEOUT
- ERR_CONTRACT
- ERR_CONTRACT_ABI_MISSING
- ERR_CONTRACT_EVENT_NOT_EXISTS
- ERR_CONTRACT_EXECUTION_REVERTED
- ERR_CONTRACT_INSTANTIATION
- ERR_CONTRACT_MISSING_ADDRESS
- ERR_CONTRACT_MISSING_DEPLOY_DATA
- ERR_CONTRACT_MISSING_FROM_ADDRESS
- ERR_CONTRACT_REQUIRED_CALLBACK
- ERR_CONTRACT_RESERVED_EVENT
- ERR_CONTRACT_RESOLVER_MISSING
- ERR_CONTRACT_TX_DATA_AND_INPUT
- ERR_CORE_CHAIN_MISMATCH
- ERR_CORE_HARDFORK_MISMATCH
- ERR_ENS_CHECK_INTERFACE_SUPPORT
- ERR_ENS_NETWORK_NOT_SYNCED
- ERR_ENS_UNSUPPORTED_NETWORK
- ERR_EXISTING_PLUGIN_NAMESPACE
- ERR_FORMATTERS
- ERR_INVALID_ADDRESS
- ERR_INVALID_BLOCK
- ERR_INVALID_BOOLEAN
- ERR_INVALID_BYTES
- ERR_INVALID_CLIENT
- ERR_INVALID_HEX
- ERR_INVALID_INTEGER
- ERR_INVALID_KEYSTORE
- ERR_INVALID_LARGE_VALUE
- ERR_INVALID_METHOD_PARAMS
- ERR_INVALID_NIBBLE_WIDTH
- ERR_INVALID_NUMBER
- ERR_INVALID_PASSWORD
- ERR_INVALID_PRIVATE_KEY
- ERR_INVALID_PROVIDER
- ERR_INVALID_RESPONSE
- ERR_INVALID_SIGNATURE
- ERR_INVALID_SIZE
- ERR_INVALID_STRING
- ERR_INVALID_TYPE
- ERR_INVALID_TYPE_ABI
- ERR_INVALID_UNIT
- ERR_INVALID_UNSIGNED_INTEGER
- ERR_IV_LENGTH
- ERR_KEY_DERIVATION_FAIL
- ERR_KEY_VERSION_UNSUPPORTED
- ERR_METHOD_NOT_IMPLEMENTED
- ERR_MULTIPLE_ERRORS
- ERR_OPERATION_ABORT
- ERR_OPERATION_TIMEOUT
- ERR_PARAM
- ERR_PBKDF2_ITERATIONS
- ERR_PRIVATE_KEY_LENGTH
- ERR_PROVIDER
- ERR_RAW_TX_UNDEFINED
- ERR_REQ_ALREADY_SENT
- ERR_RESPONSE
- ERR_RPC_INTERNAL_ERROR
- ERR_RPC_INVALID_INPUT
- ERR_RPC_INVALID_JSON
- ERR_RPC_INVALID_METHOD
- ERR_RPC_INVALID_PARAMS
- ERR_RPC_INVALID_REQUEST
- ERR_RPC_LIMIT_EXCEEDED
- ERR_RPC_MISSING_RESOURCE
- ERR_RPC_NOT_SUPPORTED
- ERR_RPC_TRANSACTION_REJECTED
- ERR_RPC_UNAVAILABLE_RESOURCE
- ERR_RPC_UNSUPPORTED_METHOD
- ERR_SCHEMA_FORMAT
- ERR_SIGNATURE_FAILED
- ERR_SUBSCRIPTION
- ERR_TX
- ERR_TX_BLOCK_TIMEOUT
- ERR_TX_CHAIN_ID_MISMATCH
- ERR_TX_CHAIN_MISMATCH
- ERR_TX_CONTRACT_NOT_STORED
- ERR_TX_DATA_AND_INPUT
- ERR_TX_GAS_MISMATCH
- ERR_TX_GAS_MISMATCH_INNER_ERROR
- ERR_TX_HARDFORK_MISMATCH
- ERR_TX_INVALID_CALL
- ERR_TX_INVALID_CHAIN_INFO
- ERR_TX_INVALID_FEE_MARKET_GAS
- ERR_TX_INVALID_FEE_MARKET_GAS_PRICE
- ERR_TX_INVALID_LEGACY_FEE_MARKET
- ERR_TX_INVALID_LEGACY_GAS
- ERR_TX_INVALID_NONCE_OR_CHAIN_ID
- ERR_TX_INVALID_OBJECT
- ERR_TX_INVALID_PROPERTIES_FOR_TYPE
- ERR_TX_INVALID_RECEIVER
- ERR_TX_INVALID_SENDER
- ERR_TX_LOCAL_WALLET_NOT_AVAILABLE
- ERR_TX_MISSING_CHAIN_INFO
- ERR_TX_MISSING_CUSTOM_CHAIN
- ERR_TX_MISSING_CUSTOM_CHAIN_ID
- ERR_TX_MISSING_GAS
- ERR_TX_MISSING_GAS_INNER_ERROR
- ERR_TX_NOT_FOUND
- ERR_TX_NO_CONTRACT_ADDRESS
- ERR_TX_OUT_OF_GAS
- ERR_TX_POLLING_TIMEOUT
- ERR_TX_RECEIPT_MISSING_BLOCK_NUMBER
- ERR_TX_RECEIPT_MISSING_OR_BLOCKHASH_NULL
- ERR_TX_REVERT_INSTRUCTION
- ERR_TX_REVERT_TRANSACTION
- ERR_TX_REVERT_TRANSACTION_CUSTOM_ERROR
- ERR_TX_REVERT_WITHOUT_REASON
- ERR_TX_SEND_TIMEOUT
- ERR_TX_SIGNING
- ERR_TX_UNABLE_TO_POPULATE_NONCE
- ERR_TX_UNSUPPORTED_EIP_1559
- ERR_TX_UNSUPPORTED_TYPE
- ERR_UNSUPPORTED_KDF
- ERR_VALIDATION
- ERR_WS_PROVIDER
- GENESIS_BLOCK_NUMBER
- JSONRPC_ERR_CHAIN_DISCONNECTED
- JSONRPC_ERR_DISCONNECTED
- JSONRPC_ERR_REJECTED_REQUEST
- JSONRPC_ERR_UNAUTHORIZED
- JSONRPC_ERR_UNSUPPORTED_METHOD
- RpcErrorMessages
- genericRpcErrorMessageTemplate
- rpcErrorsMap
Classes
AbiError
constructor
Parameters
message: string
optionalprops: Record<string, unknown> & { name?: string }
Returns AbiError
cause
code
readonlyname
readonlyprops
stack
innerError
Returns undefined | Error | Error[]
Parameters
cause: undefined | Error | Error[]
Returns void
toJSON
Returns { cause: undefined | Error; code: number; innerError: undefined | Error; message: string; name: string }
cause: undefined | Error
code: number
innerError: undefined | Error
message: string
name: string
staticconvertToString
Parameters
value: unknown
optionalunquotValue: boolean
Returns string
abstractBaseWeb3Error
Base class for Web3 errors.
constructor
Parameters
optionalmsg: string
optionalcause: Error | Error[]
Returns BaseWeb3Error
cause
abstractreadonlycode
readonlyname
stack
innerError
Returns undefined | Error | Error[]
Parameters
cause: undefined | Error | Error[]
Returns void
toJSON
Returns { cause: undefined | Error; code: number; innerError: undefined | Error; message: string; name: string }
cause: undefined | Error
code: number
innerError: undefined | Error
message: string
name: string
staticconvertToString
Parameters
value: unknown
optionalunquotValue: boolean
Returns string
ChainIdMismatchError
Base class for Web3 errors.
constructor
Parameters
value: { customChainId: unknown; txChainId: unknown }
customChainId: unknown
txChainId: unknown
Returns ChainIdMismatchError
cause
code
readonlyname
stack
innerError
Returns undefined | Error | Error[]
Parameters
cause: undefined | Error | Error[]
Returns void
toJSON
Returns { cause: undefined | Error; code: number; innerError: undefined | Error; message: string; name: string }
cause: undefined | Error
code: number
innerError: undefined | Error
message: string
name: string
staticconvertToString
Parameters
value: unknown
optionalunquotValue: boolean
Returns string
ChainMismatchError
Base class for Web3 errors.
constructor
Parameters
value: { baseChain: unknown; txChain: unknown }
baseChain: unknown
txChain: unknown
Returns ChainMismatchError
cause
code
readonlyname
stack
innerError
Returns undefined | Error | Error[]
Parameters
cause: undefined | Error | Error[]
Returns void
toJSON
Returns { cause: undefined | Error; code: number; innerError: undefined | Error; message: string; name: string }
cause: undefined | Error
code: number
innerError: undefined | Error
message: string
name: string
staticconvertToString
Parameters
value: unknown
optionalunquotValue: boolean
Returns string
CommonOrChainAndHardforkError
Base class for Web3 errors.
constructor
Returns CommonOrChainAndHardforkError
cause
code
readonlyname
stack
innerError
Returns undefined | Error | Error[]
Parameters
cause: undefined | Error | Error[]
Returns void
toJSON
Returns { cause: undefined | Error; code: number; innerError: undefined | Error; message: string; name: string }
cause: undefined | Error
code: number
innerError: undefined | Error
message: string
name: string
staticconvertToString
Parameters
value: unknown
optionalunquotValue: boolean
Returns string
ConfigChainMismatchError
Base class for Web3 errors.
constructor
Parameters
defaultHardfork: string
commonHardFork: string
Returns ConfigChainMismatchError
cause
code
readonlyname
stack
innerError
Returns undefined | Error | Error[]
Parameters
cause: undefined | Error | Error[]
Returns void
toJSON
Returns { cause: undefined | Error; code: number; innerError: undefined | Error; message: string; name: string }
cause: undefined | Error
code: number
innerError: undefined | Error
message: string
name: string
staticconvertToString
Parameters
value: unknown
optionalunquotValue: boolean
Returns string
ConfigHardforkMismatchError
Base class for Web3 errors.
constructor
Parameters
defaultHardfork: string
commonHardFork: string
Returns ConfigHardforkMismatchError
cause
code
readonlyname
stack
innerError
Returns undefined | Error | Error[]
Parameters
cause: undefined | Error | Error[]
Returns void
toJSON
Returns { cause: undefined | Error; code: number; innerError: undefined | Error; message: string; name: string }
cause: undefined | Error
code: number
innerError: undefined | Error
message: string
name: string
staticconvertToString
Parameters
value: unknown
optionalunquotValue: boolean
Returns string
ConnectionCloseError
Base class for Web3 errors.
constructor
Parameters
optionalevent: ConnectionEvent
Returns ConnectionCloseError
cause
code
optionalerrorCode
optionalerrorReason
readonlyname
stack
innerError
Returns undefined | Error | Error[]
Parameters
cause: undefined | Error | Error[]
Returns void
toJSON
Returns { cause: undefined | Error; code: number; errorCode: undefined | number; errorReason: undefined | string; innerError: undefined | Error; message: string; name: string }
cause: undefined | Error
code: number
errorCode: undefined | number
errorReason: undefined | string
innerError: undefined | Error
message: string
name: string
staticconvertToString
Parameters
value: unknown
optionalunquotValue: boolean
Returns string
ConnectionError
Base class for Web3 errors.
constructor
Parameters
message: string
optionalevent: ConnectionEvent
Returns ConnectionError
cause
code
optionalerrorCode
optionalerrorReason
readonlyname
stack
innerError
Returns undefined | Error | Error[]
Parameters
cause: undefined | Error | Error[]
Returns void
toJSON
Returns { cause: undefined | Error; code: number; errorCode: undefined | number; errorReason: undefined | string; innerError: undefined | Error; message: string; name: string }
cause: undefined | Error
code: number
errorCode: undefined | number
errorReason: undefined | string
innerError: undefined | Error
message: string
name: string
staticconvertToString
Parameters
value: unknown
optionalunquotValue: boolean
Returns string
ConnectionNotOpenError
Base class for Web3 errors.
constructor
Parameters
optionalevent: ConnectionEvent
Returns ConnectionNotOpenError
cause
code
optionalerrorCode
optionalerrorReason
readonlyname
stack
innerError
Returns undefined | Error | Error[]
Parameters
cause: undefined | Error | Error[]
Returns void
toJSON
Returns { cause: undefined | Error; code: number; errorCode: undefined | number; errorReason: undefined | string; innerError: undefined | Error; message: string; name: string }
cause: undefined | Error
code: number
errorCode: undefined | number
errorReason: undefined | string
innerError: undefined | Error
message: string
name: string
staticconvertToString
Parameters
value: unknown
optionalunquotValue: boolean
Returns string
ConnectionTimeoutError
Base class for Web3 errors.
constructor
Parameters
duration: number
Returns ConnectionTimeoutError
cause
code
duration
optionalerrorCode
optionalerrorReason
readonlyname
stack
innerError
Returns undefined | Error | Error[]
Parameters
cause: undefined | Error | Error[]
Returns void
toJSON
Returns { cause: undefined | Error; code: number; duration: number; errorCode: undefined | number; errorReason: undefined | string; innerError: undefined | Error; message: string; name: string }
cause: undefined | Error
code: number
duration: number
errorCode: undefined | number
errorReason: undefined | string
innerError: undefined | Error
message: string
name: string
staticconvertToString
Parameters
value: unknown
optionalunquotValue: boolean
Returns string
ContractCodeNotStoredError
Base class for Web3 errors.
constructor
Parameters
receipt: TransactionReceipt
Returns ContractCodeNotStoredError
cause
code
readonlyname
optionalreceipt
stack
innerError
Returns undefined | Error | Error[]
Parameters
cause: undefined | Error | Error[]
Returns void
toJSON
Returns { cause: undefined | Error; code: number; innerError: undefined | Error; message: string; name: string; receipt: undefined | TransactionReceipt }
cause: undefined | Error
code: number
innerError: undefined | Error
message: string
name: string
receipt: undefined | TransactionReceipt
staticconvertToString
Parameters
value: unknown
optionalunquotValue: boolean
Returns string
ContractEventDoesNotExistError
Base class for Web3 errors.
constructor
Parameters
eventName: string
Returns ContractEventDoesNotExistError
cause
code
eventName
readonlyname
stack
innerError
Returns undefined | Error | Error[]
Parameters
cause: undefined | Error | Error[]
Returns void
toJSON
Returns { cause: undefined | Error; code: number; eventName: string; innerError: undefined | Error; message: string; name: string }
cause: undefined | Error
code: number
eventName: string
innerError: undefined | Error
message: string
name: string
staticconvertToString
Parameters
value: unknown
optionalunquotValue: boolean
Returns string
ContractExecutionError
Used when an error is raised while executing a function inside a smart contract. The data is expected to be encoded according to EIP-848.
constructor
Parameters
rpcError: JsonRpcError<JsonRpcResult>
Returns ContractExecutionError
cause
code
readonlyname
optionalreceipt
stack
innerError
Returns undefined | Error | Error[]
Parameters
cause: undefined | Error | Error[]
Returns void
toJSON
Returns { cause: undefined | Error; code: number; innerError: undefined | Error; message: string; name: string }
cause: undefined | Error
code: number
innerError: undefined | Error
message: string
name: string
staticconvertToString
Parameters
value: unknown
optionalunquotValue: boolean
Returns string
ContractInstantiationError
Base class for Web3 errors.
constructor
Parameters
optionalmsg: string
optionalcause: Error | Error[]
Returns ContractInstantiationError
cause
code
readonlyname
stack
innerError
Returns undefined | Error | Error[]
Parameters
cause: undefined | Error | Error[]
Returns void
toJSON
Returns { cause: undefined | Error; code: number; innerError: undefined | Error; message: string; name: string }
cause: undefined | Error
code: number
innerError: undefined | Error
message: string
name: string
staticconvertToString
Parameters
value: unknown
optionalunquotValue: boolean
Returns string
ContractMissingABIError
Base class for Web3 errors.
constructor
Returns ContractMissingABIError
cause
code
readonlyname
stack
innerError
Returns undefined | Error | Error[]
Parameters
cause: undefined | Error | Error[]
Returns void
toJSON
Returns { cause: undefined | Error; code: number; innerError: undefined | Error; message: string; name: string }
cause: undefined | Error
code: number
innerError: undefined | Error
message: string
name: string
staticconvertToString
Parameters
value: unknown
optionalunquotValue: boolean
Returns string
ContractMissingDeployDataError
Base class for Web3 errors.
constructor
Returns ContractMissingDeployDataError
cause
code
readonlyname
stack
innerError
Returns undefined | Error | Error[]
Parameters
cause: undefined | Error | Error[]
Returns void
toJSON
Returns { cause: undefined | Error; code: number; innerError: undefined | Error; message: string; name: string }
cause: undefined | Error
code: number
innerError: undefined | Error
message: string
name: string
staticconvertToString
Parameters
value: unknown
optionalunquotValue: boolean
Returns string
ContractNoAddressDefinedError
Base class for Web3 errors.
constructor
Returns ContractNoAddressDefinedError
cause
code
readonlyname
stack
innerError
Returns undefined | Error | Error[]
Parameters
cause: undefined | Error | Error[]
Returns void
toJSON
Returns { cause: undefined | Error; code: number; innerError: undefined | Error; message: string; name: string }
cause: undefined | Error
code: number
innerError: undefined | Error
message: string
name: string
staticconvertToString
Parameters
value: unknown
optionalunquotValue: boolean
Returns string
ContractNoFromAddressDefinedError
Base class for Web3 errors.
constructor
cause
code
readonlyname
stack
innerError
Returns undefined | Error | Error[]
Parameters
cause: undefined | Error | Error[]
Returns void
toJSON
Returns { cause: undefined | Error; code: number; innerError: undefined | Error; message: string; name: string }
cause: undefined | Error
code: number
innerError: undefined | Error
message: string
name: string
staticconvertToString
Parameters
value: unknown
optionalunquotValue: boolean
Returns string
ContractOnceRequiresCallbackError
Base class for Web3 errors.
constructor
cause
code
readonlyname
stack
innerError
Returns undefined | Error | Error[]
Parameters
cause: undefined | Error | Error[]
Returns void
toJSON
Returns { cause: undefined | Error; code: number; innerError: undefined | Error; message: string; name: string }
cause: undefined | Error
code: number
innerError: undefined | Error
message: string
name: string
staticconvertToString
Parameters
value: unknown
optionalunquotValue: boolean
Returns string
ContractReservedEventError
Base class for Web3 errors.
constructor
Parameters
type: string
Returns ContractReservedEventError
cause
code
readonlyname
stack
type
innerError
Returns undefined | Error | Error[]
Parameters
cause: undefined | Error | Error[]
Returns void
toJSON
Returns { cause: undefined | Error; code: number; innerError: undefined | Error; message: string; name: string; type: string }
cause: undefined | Error
code: number
innerError: undefined | Error
message: string
name: string
type: string
staticconvertToString
Parameters
value: unknown
optionalunquotValue: boolean
Returns string
ContractTransactionDataAndInputError
Base class for Web3 errors.
constructor
Parameters
value: { data: undefined | string; input: undefined | string }
data: undefined | string
input: undefined | string
Returns ContractTransactionDataAndInputError
cause
code
readonlyname
stack
innerError
Returns undefined | Error | Error[]
Parameters
cause: undefined | Error | Error[]
Returns void
toJSON
Returns { cause: undefined | Error; code: number; innerError: undefined | Error; message: string; name: string }
cause: undefined | Error
code: number
innerError: undefined | Error
message: string
name: string
staticconvertToString
Parameters
value: unknown
optionalunquotValue: boolean
Returns string
EIP1193ProviderRpcError
Base class for Web3 errors.
constructor
Parameters
code: number
optionaldata: unknown
Returns EIP1193ProviderRpcError
cause
code
optionaldata
readonlyname
stack
innerError
Returns undefined | Error | Error[]
Parameters
cause: undefined | Error | Error[]
Returns void
toJSON
Returns { cause: undefined | Error; code: number; innerError: undefined | Error; message: string; name: string }
cause: undefined | Error
code: number
innerError: undefined | Error
message: string
name: string
staticconvertToString
Parameters
value: unknown
optionalunquotValue: boolean
Returns string
ENSCheckInterfaceSupportError
Base class for Web3 errors.
constructor
Parameters
errorDetails: string
Returns ENSCheckInterfaceSupportError
cause
code
readonlyname
stack
innerError
Returns undefined | Error | Error[]
Parameters
cause: undefined | Error | Error[]
Returns void
toJSON
Returns { cause: undefined | Error; code: number; innerError: undefined | Error; message: string; name: string }
cause: undefined | Error
code: number
innerError: undefined | Error
message: string
name: string
staticconvertToString
Parameters
value: unknown
optionalunquotValue: boolean
Returns string
ENSNetworkNotSyncedError
Base class for Web3 errors.
constructor
Returns ENSNetworkNotSyncedError
cause
code
readonlyname
stack
innerError
Returns undefined | Error | Error[]
Parameters
cause: undefined | Error | Error[]
Returns void
toJSON
Returns { cause: undefined | Error; code: number; innerError: undefined | Error; message: string; name: string }
cause: undefined | Error
code: number
innerError: undefined | Error
message: string
name: string
staticconvertToString
Parameters
value: unknown
optionalunquotValue: boolean
Returns string
ENSUnsupportedNetworkError
Base class for Web3 errors.
constructor
Parameters
networkType: string
Returns ENSUnsupportedNetworkError
cause
code
readonlyname
stack
innerError
Returns undefined | Error | Error[]
Parameters
cause: undefined | Error | Error[]
Returns void
toJSON
Returns { cause: undefined | Error; code: number; innerError: undefined | Error; message: string; name: string }
cause: undefined | Error
code: number
innerError: undefined | Error
message: string
name: string
staticconvertToString
Parameters
value: unknown
optionalunquotValue: boolean
Returns string
Eip1559GasPriceError
Base class for Web3 errors.
constructor
Parameters
value: unknown
Returns Eip1559GasPriceError
cause
code
readonlyname
stack
innerError
Returns undefined | Error | Error[]
Parameters
cause: undefined | Error | Error[]
Returns void
toJSON
Returns { cause: undefined | Error; code: number; innerError: undefined | Error; message: string; name: string }
cause: undefined | Error
code: number
innerError: undefined | Error
message: string
name: string
staticconvertToString
Parameters
value: unknown
optionalunquotValue: boolean
Returns string
Eip1559NotSupportedError
Base class for Web3 errors.
constructor
Returns Eip1559NotSupportedError
cause
code
readonlyname
stack
innerError
Returns undefined | Error | Error[]
Parameters
cause: undefined | Error | Error[]
Returns void
toJSON
Returns { cause: undefined | Error; code: number; innerError: undefined | Error; message: string; name: string }
cause: undefined | Error
code: number
innerError: undefined | Error
message: string
name: string
staticconvertToString
Parameters
value: unknown
optionalunquotValue: boolean
Returns string
Eip838ExecutionError
This class is expected to be set as an cause
inside ContractExecutionError
The properties would be typically decoded from the data
if it was encoded according to EIP-838
constructor
Parameters
Returns Eip838ExecutionError
cause
code
optionaldata
optionalerrorArgs
Type declaration
optionalerrorName
optionalerrorSignature
readonlyname
optionalreceipt
stack
innerError
Returns undefined | Error | Error[]
Parameters
cause: undefined | Error | Error[]
Returns void
setDecodedProperties
Parameters
errorName: string
optionalerrorSignature: string
optionalerrorArgs: {}
Returns void
toJSON
Returns { cause: undefined | Eip838ExecutionError; code: number; data: string; errorArgs?: {}; errorName?: string; errorSignature?: string; innerError: undefined | Eip838ExecutionError; message: string; name: string }
cause: undefined | Eip838ExecutionError
code: number
data: string
optionalerrorArgs?: {}
[x string]: unknown
optionalerrorName?: string
optionalerrorSignature?: string
innerError: undefined | Eip838ExecutionError
message: string
name: string
staticconvertToString
Parameters
value: unknown
optionalunquotValue: boolean
Returns string
ExistingPluginNamespaceError
Base class for Web3 errors.
constructor
Parameters
pluginNamespace: string
Returns ExistingPluginNamespaceError
cause
code
readonlyname
stack
innerError
Returns undefined | Error | Error[]
Parameters
cause: undefined | Error | Error[]
Returns void
toJSON
Returns { cause: undefined | Error; code: number; innerError: undefined | Error; message: string; name: string }
cause: undefined | Error
code: number
innerError: undefined | Error
message: string
name: string
staticconvertToString
Parameters
value: unknown
optionalunquotValue: boolean
Returns string
FormatterError
Base class for Web3 errors.
constructor
Parameters
optionalmsg: string
optionalcause: Error | Error[]
Returns FormatterError
cause
code
readonlyname
stack
innerError
Returns undefined | Error | Error[]
Parameters
cause: undefined | Error | Error[]
Returns void
toJSON
Returns { cause: undefined | Error; code: number; innerError: undefined | Error; message: string; name: string }
cause: undefined | Error
code: number
innerError: undefined | Error
message: string
name: string
staticconvertToString
Parameters
value: unknown
optionalunquotValue: boolean
Returns string
HardforkMismatchError
Base class for Web3 errors.
constructor
Parameters
value: { commonHardfork: unknown; txHardfork: unknown }
commonHardfork: unknown
txHardfork: unknown
Returns HardforkMismatchError
cause
code
readonlyname
stack
innerError
Returns undefined | Error | Error[]
Parameters
cause: undefined | Error | Error[]
Returns void
toJSON
Returns { cause: undefined | Error; code: number; innerError: undefined | Error; message: string; name: string }
cause: undefined | Error
code: number
innerError: undefined | Error
message: string
name: string
staticconvertToString
Parameters
value: unknown
optionalunquotValue: boolean
Returns string
HexProcessingError
Base class for Web3 errors.
constructor
Parameters
value: unknown
Returns HexProcessingError
cause
code
readonlyname
stack
innerError
Returns undefined | Error | Error[]
Parameters
cause: undefined | Error | Error[]
Returns void
toJSON
Returns { cause: undefined | Error; code: number; innerError: undefined | Error; message: string; name: string }
cause: undefined | Error
code: number
innerError: undefined | Error
message: string
name: string
staticconvertToString
Parameters
value: unknown
optionalunquotValue: boolean
Returns string
IVLengthError
Base class for Web3 errors.
constructor
Returns IVLengthError
cause
code
readonlyname
stack
innerError
Returns undefined | Error | Error[]
Parameters
cause: undefined | Error | Error[]
Returns void
toJSON
Returns { cause: undefined | Error; code: number; innerError: undefined | Error; message: string; name: string }
cause: undefined | Error
code: number
innerError: undefined | Error
message: string
name: string
staticconvertToString
Parameters
value: unknown
optionalunquotValue: boolean
Returns string
InternalError
Base class for Web3 errors.
constructor
Parameters
rpcError: JsonRpcResponseWithError<JsonRpcResult>
Returns InternalError
cause
code
id
jsonRpcError
jsonrpc
readonlyname
stack
innerError
Returns undefined | Error | Error[]
Parameters
cause: undefined | Error | Error[]
Returns void
toJSON
Returns { cause: undefined | Error; code: number; error: JsonRpcError<JsonRpcResult>; id: JsonRpcId; innerError: undefined | Error; jsonRpc: string; message: string; name: string }
cause: undefined | Error
code: number
error: JsonRpcError<JsonRpcResult>
id: JsonRpcId
innerError: undefined | Error
jsonRpc: string
message: string
name: string
staticconvertToString
Parameters
value: unknown
optionalunquotValue: boolean
Returns string
InvalidAddressError
Base class for Web3 errors.
constructor
Parameters
value: unknown
Returns InvalidAddressError
cause
code
readonlyname
stack
innerError
Returns undefined | Error | Error[]
Parameters
cause: undefined | Error | Error[]
Returns void
toJSON
Returns { cause: undefined | Error; code: number; innerError: undefined | Error; message: string; name: string }
cause: undefined | Error
code: number
innerError: undefined | Error
message: string
name: string
staticconvertToString
Parameters
value: unknown
optionalunquotValue: boolean
Returns string
InvalidBlockError
Base class for Web3 errors.
constructor
Parameters
value: string
Returns InvalidBlockError
cause
code
readonlyname
stack
innerError
Returns undefined | Error | Error[]
Parameters
cause: undefined | Error | Error[]
Returns void
toJSON
Returns { cause: undefined | Error; code: number; innerError: undefined | Error; message: string; name: string }
cause: undefined | Error
code: number
innerError: undefined | Error
message: string
name: string
staticconvertToString
Parameters
value: unknown
optionalunquotValue: boolean
Returns string
InvalidBooleanError
Base class for Web3 errors.
constructor
Parameters
value: unknown
Returns InvalidBooleanError
cause
code
readonlyname
stack
innerError
Returns undefined | Error | Error[]
Parameters
cause: undefined | Error | Error[]
Returns void
toJSON
Returns { cause: undefined | Error; code: number; innerError: undefined | Error; message: string; name: string }
cause: undefined | Error
code: number
innerError: undefined | Error
message: string
name: string
staticconvertToString
Parameters
value: unknown
optionalunquotValue: boolean
Returns string
InvalidBytesError
Base class for Web3 errors.
constructor
Parameters
value: unknown
Returns InvalidBytesError
cause
code
readonlyname
stack
innerError
Returns undefined | Error | Error[]
Parameters
cause: undefined | Error | Error[]
Returns void
toJSON
Returns { cause: undefined | Error; code: number; innerError: undefined | Error; message: string; name: string }
cause: undefined | Error
code: number
innerError: undefined | Error
message: string
name: string
staticconvertToString
Parameters
value: unknown
optionalunquotValue: boolean
Returns string
InvalidClientError
Base class for Web3 errors.
constructor
Parameters
clientUrl: string
Returns InvalidClientError
cause
code
readonlyname
stack
innerError
Returns undefined | Error | Error[]
Parameters
cause: undefined | Error | Error[]
Returns void
toJSON
Returns { cause: undefined | Error; code: number; innerError: undefined | Error; message: string; name: string }
cause: undefined | Error
code: number
innerError: undefined | Error
message: string
name: string
staticconvertToString
Parameters
value: unknown
optionalunquotValue: boolean
Returns string
InvalidConnectionError
Base class for Web3 errors.
constructor
Parameters
host: string
optionalevent: ConnectionEvent
Returns InvalidConnectionError
cause
code
optionalerrorCode
optionalerrorReason
host
readonlyname
stack
innerError
Returns undefined | Error | Error[]
Parameters
cause: undefined | Error | Error[]
Returns void
toJSON
Returns { cause: undefined | Error; code: number; errorCode: undefined | number; errorReason: undefined | string; host: string; innerError: undefined | Error; message: string; name: string }
cause: undefined | Error
code: number
errorCode: undefined | number
errorReason: undefined | string
host: string
innerError: undefined | Error
message: string
name: string
staticconvertToString
Parameters
value: unknown
optionalunquotValue: boolean
Returns string
InvalidGasOrGasPrice
Base class for Web3 errors.
constructor
Parameters
Returns InvalidGasOrGasPrice
cause
code
readonlyname
stack
innerError
Returns undefined | Error | Error[]
Parameters
cause: undefined | Error | Error[]
Returns void
toJSON
Returns { cause: undefined | Error; code: number; innerError: undefined | Error; message: string; name: string }
cause: undefined | Error
code: number
innerError: undefined | Error
message: string
name: string
staticconvertToString
Parameters
value: unknown
optionalunquotValue: boolean
Returns string
InvalidInputError
Base class for Web3 errors.
constructor
Parameters
rpcError: JsonRpcResponseWithError<JsonRpcResult>
Returns InvalidInputError
cause
code
id
jsonRpcError
jsonrpc
readonlyname
stack
innerError
Returns undefined | Error | Error[]
Parameters
cause: undefined | Error | Error[]
Returns void
toJSON
Returns { cause: undefined | Error; code: number; error: JsonRpcError<JsonRpcResult>; id: JsonRpcId; innerError: undefined | Error; jsonRpc: string; message: string; name: string }
cause: undefined | Error
code: number
error: JsonRpcError<JsonRpcResult>
id: JsonRpcId
innerError: undefined | Error
jsonRpc: string
message: string
name: string
staticconvertToString
Parameters
value: unknown
optionalunquotValue: boolean
Returns string
InvalidIntegerError
Base class for Web3 errors.
constructor
Parameters
value: unknown
Returns InvalidIntegerError
cause
code
readonlyname
stack
innerError
Returns undefined | Error | Error[]
Parameters
cause: undefined | Error | Error[]
Returns void
toJSON
Returns { cause: undefined | Error; code: number; innerError: undefined | Error; message: string; name: string }
cause: undefined | Error
code: number
innerError: undefined | Error
message: string
name: string
staticconvertToString
Parameters
value: unknown
optionalunquotValue: boolean
Returns string
InvalidKdfError
Base class for Web3 errors.
constructor
Returns InvalidKdfError
cause
code
readonlyname
stack
innerError
Returns undefined | Error | Error[]
Parameters
cause: undefined | Error | Error[]
Returns void
toJSON
Returns { cause: undefined | Error; code: number; innerError: undefined | Error; message: string; name: string }
cause: undefined | Error
code: number
innerError: undefined | Error
message: string
name: string
staticconvertToString
Parameters
value: unknown
optionalunquotValue: boolean
Returns string
InvalidLargeValueError
Base class for Web3 errors.
constructor
Parameters
value: unknown
Returns InvalidLargeValueError
cause
code
readonlyname
stack
innerError
Returns undefined | Error | Error[]
Parameters
cause: undefined | Error | Error[]
Returns void
toJSON
Returns { cause: undefined | Error; code: number; innerError: undefined | Error; message: string; name: string }
cause: undefined | Error
code: number
innerError: undefined | Error
message: string
name: string
staticconvertToString
Parameters
value: unknown
optionalunquotValue: boolean
Returns string
InvalidMaxPriorityFeePerGasOrMaxFeePerGas
Base class for Web3 errors.
constructor
Parameters
Returns InvalidMaxPriorityFeePerGasOrMaxFeePerGas
cause
code
readonlyname
stack
innerError
Returns undefined | Error | Error[]
Parameters
cause: undefined | Error | Error[]
Returns void
toJSON
Returns { cause: undefined | Error; code: number; innerError: undefined | Error; message: string; name: string }
cause: undefined | Error
code: number
innerError: undefined | Error
message: string
name: string
staticconvertToString
Parameters
value: unknown
optionalunquotValue: boolean
Returns string
InvalidMethodParamsError
Base class for Web3 errors.
constructor
Parameters
optionalhint: string
Returns InvalidMethodParamsError
cause
code
optionalhint
readonlyname
stack
innerError
Returns undefined | Error | Error[]
Parameters
cause: undefined | Error | Error[]
Returns void
toJSON
Returns { cause: undefined | Error; code: number; hint: undefined | string; innerError: undefined | Error; message: string; name: string }
cause: undefined | Error
code: number
hint: undefined | string
innerError: undefined | Error
message: string
name: string
staticconvertToString
Parameters
value: unknown
optionalunquotValue: boolean
Returns string
InvalidNonceOrChainIdError
Base class for Web3 errors.
constructor
Parameters
Returns InvalidNonceOrChainIdError
cause
code
readonlyname
stack
innerError
Returns undefined | Error | Error[]
Parameters
cause: undefined | Error | Error[]
Returns void
toJSON
Returns { cause: undefined | Error; code: number; innerError: undefined | Error; message: string; name: string }
cause: undefined | Error
code: number
innerError: undefined | Error
message: string
name: string
staticconvertToString
Parameters
value: unknown
optionalunquotValue: boolean
Returns string
InvalidNumberError
Base class for Web3 errors.
constructor
Parameters
value: unknown
Returns InvalidNumberError
cause
code
readonlyname
stack
innerError
Returns undefined | Error | Error[]
Parameters
cause: undefined | Error | Error[]
Returns void
toJSON
Returns { cause: undefined | Error; code: number; innerError: undefined | Error; message: string; name: string }
cause: undefined | Error
code: number
innerError: undefined | Error
message: string
name: string
staticconvertToString
Parameters
value: unknown
optionalunquotValue: boolean
Returns string
InvalidNumberOfParamsError
Base class for Web3 errors.
constructor
Parameters
got: number
expected: number
method: string
Returns InvalidNumberOfParamsError
cause
code
expected
got
method
readonlyname
stack
innerError
Returns undefined | Error | Error[]
Parameters
cause: undefined | Error | Error[]
Returns void
toJSON
Returns { cause: undefined | Error; code: number; expected: number; got: number; innerError: undefined | Error; message: string; method: string; name: string }
cause: undefined | Error
code: number
expected: number
got: number
innerError: undefined | Error
message: string
method: string
name: string
staticconvertToString
Parameters
value: unknown
optionalunquotValue: boolean
Returns string
InvalidParamsError
Base class for Web3 errors.
constructor
Parameters
rpcError: JsonRpcResponseWithError<JsonRpcResult>
Returns InvalidParamsError
cause
code
id
jsonRpcError
jsonrpc
readonlyname
stack
innerError
Returns undefined | Error | Error[]
Parameters
cause: undefined | Error | Error[]
Returns void
toJSON
Returns { cause: undefined | Error; code: number; error: JsonRpcError<JsonRpcResult>; id: JsonRpcId; innerError: undefined | Error; jsonRpc: string; message: string; name: string }
cause: undefined | Error
code: number
error: JsonRpcError<JsonRpcResult>
id: JsonRpcId
innerError: undefined | Error
jsonRpc: string
message: string
name: string
staticconvertToString
Parameters
value: unknown
optionalunquotValue: boolean
Returns string
InvalidPasswordError
Base class for Web3 errors.
constructor
Returns InvalidPasswordError
cause
code
readonlyname
stack
innerError
Returns undefined | Error | Error[]
Parameters
cause: undefined | Error | Error[]
Returns void
toJSON
Returns { cause: undefined | Error; code: number; innerError: undefined | Error; message: string; name: string }
cause: undefined | Error
code: number
innerError: undefined | Error
message: string
name: string
staticconvertToString
Parameters
value: unknown
optionalunquotValue: boolean
Returns string
InvalidPrivateKeyError
Base class for Web3 errors.
constructor
Returns InvalidPrivateKeyError
cause
code
readonlyname
stack
innerError
Returns undefined | Error | Error[]
Parameters
cause: undefined | Error | Error[]
Returns void
toJSON
Returns { cause: undefined | Error; code: number; innerError: undefined | Error; message: string; name: string }
cause: undefined | Error
code: number
innerError: undefined | Error
message: string
name: string
staticconvertToString
Parameters
value: unknown
optionalunquotValue: boolean
Returns string
InvalidPropertiesForTransactionTypeError
Base class for Web3 errors.
constructor
Parameters
validationError: Web3ValidationErrorObject<string, Record<string, any>, unknown>[]
txType: 0x0 | 0x1 | 0x2
Returns InvalidPropertiesForTransactionTypeError
cause
code
readonlyname
stack
innerError
Returns undefined | Error | Error[]
Parameters
cause: undefined | Error | Error[]
Returns void
toJSON
Returns { cause: undefined | Error; code: number; innerError: undefined | Error; message: string; name: string }
cause: undefined | Error
code: number
innerError: undefined | Error
message: string
name: string
staticconvertToString
Parameters
value: unknown
optionalunquotValue: boolean
Returns string
InvalidProviderError
Base class for Web3 errors.
constructor
Parameters
clientUrl: string
Returns InvalidProviderError
cause
clientUrl
code
readonlyname
stack
innerError
Returns undefined | Error | Error[]
Parameters
cause: undefined | Error | Error[]
Returns void
toJSON
Returns { cause: undefined | Error; code: number; innerError: undefined | Error; message: string; name: string }
cause: undefined | Error
code: number
innerError: undefined | Error
message: string
name: string
staticconvertToString
Parameters
value: unknown
optionalunquotValue: boolean
Returns string
InvalidRequestError
Base class for Web3 errors.
constructor
Parameters
rpcError: JsonRpcResponseWithError<JsonRpcResult>
Returns InvalidRequestError
cause
code
id
jsonRpcError
jsonrpc
readonlyname
stack
innerError
Returns undefined | Error | Error[]
Parameters
cause: undefined | Error | Error[]
Returns void
toJSON
Returns { cause: undefined | Error; code: number; error: JsonRpcError<JsonRpcResult>; id: JsonRpcId; innerError: undefined | Error; jsonRpc: string; message: string; name: string }
cause: undefined | Error
code: number
error: JsonRpcError<JsonRpcResult>
id: JsonRpcId
innerError: undefined | Error
jsonRpc: string
message: string
name: string
staticconvertToString
Parameters
value: unknown
optionalunquotValue: boolean
Returns string
InvalidResponseError
Base class for Web3 errors.
Type parameters
- ErrorType = unknown
- RequestType = unknown
constructor
Type parameters
- ErrorType = unknown
- RequestType = unknown
Parameters
result: JsonRpcResponse<unknown, ErrorType>
optionalrequest: JsonRpcPayload<RequestType>
Returns InvalidResponseError<ErrorType, RequestType>
cause
code
optionaldata
readonlyname
optionalrequest
stack
optionalstatusCode
innerError
Returns undefined | Error | Error[]
Parameters
cause: undefined | Error | Error[]
Returns void
toJSON
Returns { cause: undefined | Error; code: number; data: undefined | ErrorType | ErrorType[]; innerError: undefined | Error; message: string; name: string; request: undefined | JsonRpcPayload<RequestType>; statusCode: undefined | number }
cause: undefined | Error
code: number
data: undefined | ErrorType | ErrorType[]
innerError: undefined | Error
message: string
name: string
request: undefined | JsonRpcPayload<RequestType>
statusCode: undefined | number
staticconvertToString
Parameters
value: unknown
optionalunquotValue: boolean
Returns string
InvalidSignatureError
Base class for Web3 errors.
constructor
Parameters
errorDetails: string
Returns InvalidSignatureError
cause
code
readonlyname
stack
innerError
Returns undefined | Error | Error[]
Parameters
cause: undefined | Error | Error[]
Returns void
toJSON
Returns { cause: undefined | Error; code: number; innerError: undefined | Error; message: string; name: string }
cause: undefined | Error
code: number
innerError: undefined | Error
message: string
name: string
staticconvertToString
Parameters
value: unknown
optionalunquotValue: boolean
Returns string
InvalidSizeError
Base class for Web3 errors.
constructor
Parameters
value: unknown
Returns InvalidSizeError
cause
code
readonlyname
stack
innerError
Returns undefined | Error | Error[]
Parameters
cause: undefined | Error | Error[]
Returns void
toJSON
Returns { cause: undefined | Error; code: number; innerError: undefined | Error; message: string; name: string }
cause: undefined | Error
code: number
innerError: undefined | Error
message: string
name: string
staticconvertToString
Parameters
value: unknown
optionalunquotValue: boolean
Returns string
InvalidStringError
Base class for Web3 errors.
constructor
Parameters
value: unknown
Returns InvalidStringError
cause
code
readonlyname
stack
innerError
Returns undefined | Error | Error[]
Parameters
cause: undefined | Error | Error[]
Returns void
toJSON
Returns { cause: undefined | Error; code: number; innerError: undefined | Error; message: string; name: string }
cause: undefined | Error
code: number
innerError: undefined | Error
message: string
name: string
staticconvertToString
Parameters
value: unknown
optionalunquotValue: boolean
Returns string
InvalidTransactionCall
Base class for Web3 errors.
constructor
Parameters
value: unknown
Returns InvalidTransactionCall
cause
code
readonlyname
stack
innerError
Returns undefined | Error | Error[]
Parameters
cause: undefined | Error | Error[]
Returns void
toJSON
Returns { cause: undefined | Error; code: number; innerError: undefined | Error; message: string; name: string }
cause: undefined | Error
code: number
innerError: undefined | Error
message: string
name: string
staticconvertToString
Parameters
value: unknown
optionalunquotValue: boolean
Returns string
InvalidTransactionObjectError
Base class for Web3 errors.
constructor
Parameters
value: unknown
Returns InvalidTransactionObjectError
cause
code
readonlyname
stack
innerError
Returns undefined | Error | Error[]
Parameters
cause: undefined | Error | Error[]
Returns void
toJSON
Returns { cause: undefined | Error; code: number; innerError: undefined | Error; message: string; name: string }
cause: undefined | Error
code: number
innerError: undefined | Error
message: string
name: string
staticconvertToString
Parameters
value: unknown
optionalunquotValue: boolean
Returns string
InvalidTransactionWithReceiver
Base class for Web3 errors.
constructor
Parameters
value: unknown
Returns InvalidTransactionWithReceiver
cause
code
readonlyname
stack
innerError
Returns undefined | Error | Error[]
Parameters
cause: undefined | Error | Error[]
Returns void
toJSON
Returns { cause: undefined | Error; code: number; innerError: undefined | Error; message: string; name: string }
cause: undefined | Error
code: number
innerError: undefined | Error
message: string
name: string
staticconvertToString
Parameters
value: unknown
optionalunquotValue: boolean
Returns string
InvalidTransactionWithSender
Base class for Web3 errors.
constructor
Parameters
value: unknown
Returns InvalidTransactionWithSender
cause
code
readonlyname
stack
innerError
Returns undefined | Error | Error[]
Parameters
cause: undefined | Error | Error[]
Returns void
toJSON
Returns { cause: undefined | Error; code: number; innerError: undefined | Error; message: string; name: string }
cause: undefined | Error
code: number
innerError: undefined | Error
message: string
name: string
staticconvertToString
Parameters
value: unknown
optionalunquotValue: boolean
Returns string
InvalidTypeAbiInputError
Base class for Web3 errors.
constructor
Parameters
value: string
Returns InvalidTypeAbiInputError
cause
code
readonlyname
stack
innerError
Returns undefined | Error | Error[]
Parameters
cause: undefined | Error | Error[]
Returns void
toJSON
Returns { cause: undefined | Error; code: number; innerError: undefined | Error; message: string; name: string }
cause: undefined | Error
code: number
innerError: undefined | Error
message: string
name: string
staticconvertToString
Parameters
value: unknown
optionalunquotValue: boolean
Returns string
InvalidTypeError
Base class for Web3 errors.
constructor
Parameters
value: unknown
Returns InvalidTypeError
cause
code
readonlyname
stack
innerError
Returns undefined | Error | Error[]
Parameters
cause: undefined | Error | Error[]
Returns void
toJSON
Returns { cause: undefined | Error; code: number; innerError: undefined | Error; message: string; name: string }
cause: undefined | Error
code: number
innerError: undefined | Error
message: string
name: string
staticconvertToString
Parameters
value: unknown
optionalunquotValue: boolean
Returns string
InvalidUnitError
Base class for Web3 errors.
constructor
Parameters
value: unknown
Returns InvalidUnitError
cause
code
readonlyname
stack
innerError
Returns undefined | Error | Error[]
Parameters
cause: undefined | Error | Error[]
Returns void
toJSON
Returns { cause: undefined | Error; code: number; innerError: undefined | Error; message: string; name: string }
cause: undefined | Error
code: number
innerError: undefined | Error
message: string
name: string
staticconvertToString
Parameters
value: unknown
optionalunquotValue: boolean
Returns string
InvalidUnsignedIntegerError
Base class for Web3 errors.
constructor
Parameters
value: unknown
Returns InvalidUnsignedIntegerError
cause
code
readonlyname
stack
innerError
Returns undefined | Error | Error[]
Parameters
cause: undefined | Error | Error[]
Returns void
toJSON
Returns { cause: undefined | Error; code: number; innerError: undefined | Error; message: string; name: string }
cause: undefined | Error
code: number
innerError: undefined | Error
message: string
name: string
staticconvertToString
Parameters
value: unknown
optionalunquotValue: boolean
Returns string
abstractInvalidValueError
Base class for Web3 errors.
constructor
Parameters
value: unknown
msg: string
Returns InvalidValueError
cause
abstractreadonlycode
readonlyname
stack
innerError
Returns undefined | Error | Error[]
Parameters
cause: undefined | Error | Error[]
Returns void
toJSON
Returns { cause: undefined | Error; code: number; innerError: undefined | Error; message: string; name: string }
cause: undefined | Error
code: number
innerError: undefined | Error
message: string
name: string
staticconvertToString
Parameters
value: unknown
optionalunquotValue: boolean
Returns string
KeyDerivationError
Base class for Web3 errors.
constructor
Returns KeyDerivationError
cause
code
readonlyname
stack
innerError
Returns undefined | Error | Error[]
Parameters
cause: undefined | Error | Error[]
Returns void
toJSON
Returns { cause: undefined | Error; code: number; innerError: undefined | Error; message: string; name: string }
cause: undefined | Error
code: number
innerError: undefined | Error
message: string
name: string
staticconvertToString
Parameters
value: unknown
optionalunquotValue: boolean
Returns string
KeyStoreVersionError
Base class for Web3 errors.
constructor
Returns KeyStoreVersionError
cause
code
readonlyname
stack
innerError
Returns undefined | Error | Error[]
Parameters
cause: undefined | Error | Error[]
Returns void
toJSON
Returns { cause: undefined | Error; code: number; innerError: undefined | Error; message: string; name: string }
cause: undefined | Error
code: number
innerError: undefined | Error
message: string
name: string
staticconvertToString
Parameters
value: unknown
optionalunquotValue: boolean
Returns string
LimitExceededError
Base class for Web3 errors.
constructor
Parameters
rpcError: JsonRpcResponseWithError<JsonRpcResult>
Returns LimitExceededError
cause
code
id
jsonRpcError
jsonrpc
readonlyname
stack
innerError
Returns undefined | Error | Error[]
Parameters
cause: undefined | Error | Error[]
Returns void
toJSON
Returns { cause: undefined | Error; code: number; error: JsonRpcError<JsonRpcResult>; id: JsonRpcId; innerError: undefined | Error; jsonRpc: string; message: string; name: string }
cause: undefined | Error
code: number
error: JsonRpcError<JsonRpcResult>
id: JsonRpcId
innerError: undefined | Error
jsonRpc: string
message: string
name: string
staticconvertToString
Parameters
value: unknown
optionalunquotValue: boolean
Returns string
LocalWalletNotAvailableError
Base class for Web3 errors.
constructor
Returns LocalWalletNotAvailableError
cause
code
readonlyname
stack
innerError
Returns undefined | Error | Error[]
Parameters
cause: undefined | Error | Error[]
Returns void
toJSON
Returns { cause: undefined | Error; code: number; innerError: undefined | Error; message: string; name: string }
cause: undefined | Error
code: number
innerError: undefined | Error
message: string
name: string
staticconvertToString
Parameters
value: unknown
optionalunquotValue: boolean
Returns string
MaxAttemptsReachedOnReconnectingError
Base class for Web3 errors.
constructor
Parameters
numberOfAttempts: number
Returns MaxAttemptsReachedOnReconnectingError
cause
code
optionalerrorCode
optionalerrorReason
readonlyname
stack
innerError
Returns undefined | Error | Error[]
Parameters
cause: undefined | Error | Error[]
Returns void
toJSON
Returns { cause: undefined | Error; code: number; errorCode: undefined | number; errorReason: undefined | string; innerError: undefined | Error; message: string; name: string }
cause: undefined | Error
code: number
errorCode: undefined | number
errorReason: undefined | string
innerError: undefined | Error
message: string
name: string
staticconvertToString
Parameters
value: unknown
optionalunquotValue: boolean
Returns string
MethodNotFoundError
Base class for Web3 errors.
constructor
Parameters
rpcError: JsonRpcResponseWithError<JsonRpcResult>
Returns MethodNotFoundError
cause
code
id
jsonRpcError
jsonrpc
readonlyname
stack
innerError
Returns undefined | Error | Error[]
Parameters
cause: undefined | Error | Error[]
Returns void
toJSON
Returns { cause: undefined | Error; code: number; error: JsonRpcError<JsonRpcResult>; id: JsonRpcId; innerError: undefined | Error; jsonRpc: string; message: string; name: string }
cause: undefined | Error
code: number
error: JsonRpcError<JsonRpcResult>
id: JsonRpcId
innerError: undefined | Error
jsonRpc: string
message: string
name: string
staticconvertToString
Parameters
value: unknown
optionalunquotValue: boolean
Returns string
MethodNotImplementedError
Base class for Web3 errors.
constructor
Returns MethodNotImplementedError
cause
code
readonlyname
stack
innerError
Returns undefined | Error | Error[]
Parameters
cause: undefined | Error | Error[]
Returns void
toJSON
Returns { cause: undefined | Error; code: number; innerError: undefined | Error; message: string; name: string }
cause: undefined | Error
code: number
innerError: undefined | Error
message: string
name: string
staticconvertToString
Parameters
value: unknown
optionalunquotValue: boolean
Returns string
MethodNotSupported
Base class for Web3 errors.
constructor
Parameters
rpcError: JsonRpcResponseWithError<JsonRpcResult>
Returns MethodNotSupported
cause
code
id
jsonRpcError
jsonrpc
readonlyname
stack
innerError
Returns undefined | Error | Error[]
Parameters
cause: undefined | Error | Error[]
Returns void
toJSON
Returns { cause: undefined | Error; code: number; error: JsonRpcError<JsonRpcResult>; id: JsonRpcId; innerError: undefined | Error; jsonRpc: string; message: string; name: string }
cause: undefined | Error
code: number
error: JsonRpcError<JsonRpcResult>
id: JsonRpcId
innerError: undefined | Error
jsonRpc: string
message: string
name: string
staticconvertToString
Parameters
value: unknown
optionalunquotValue: boolean
Returns string
MissingChainOrHardforkError
Base class for Web3 errors.
constructor
Parameters
value: { chain: undefined | string; hardfork: undefined | string }
chain: undefined | string
hardfork: undefined | string
Returns MissingChainOrHardforkError
cause
code
readonlyname
stack
innerError
Returns undefined | Error | Error[]
Parameters
cause: undefined | Error | Error[]
Returns void
toJSON
Returns { cause: undefined | Error; code: number; innerError: undefined | Error; message: string; name: string }
cause: undefined | Error
code: number
innerError: undefined | Error
message: string
name: string
staticconvertToString
Parameters
value: unknown
optionalunquotValue: boolean
Returns string
MissingCustomChainError
Base class for Web3 errors.
constructor
Returns MissingCustomChainError
cause
code
readonlyname
stack
innerError
Returns undefined | Error | Error[]
Parameters
cause: undefined | Error | Error[]
Returns void
toJSON
Returns { cause: undefined | Error; code: number; innerError: undefined | Error; message: string; name: string }
cause: undefined | Error
code: number
innerError: undefined | Error
message: string
name: string
staticconvertToString
Parameters
value: unknown
optionalunquotValue: boolean
Returns string
MissingCustomChainIdError
Base class for Web3 errors.
constructor
Returns MissingCustomChainIdError
cause
code
readonlyname
stack
innerError
Returns undefined | Error | Error[]
Parameters
cause: undefined | Error | Error[]
Returns void
toJSON
Returns { cause: undefined | Error; code: number; innerError: undefined | Error; message: string; name: string }
cause: undefined | Error
code: number
innerError: undefined | Error
message: string
name: string
staticconvertToString
Parameters
value: unknown
optionalunquotValue: boolean
Returns string
MissingGasError
Base class for Web3 errors.
constructor
Parameters
value: { gas: undefined | Numbers; gasPrice: undefined | Numbers; maxFeePerGas: undefined | Numbers; maxPriorityFeePerGas: undefined | Numbers }
Returns MissingGasError
cause
code
readonlyname
stack
innerError
Returns undefined | Error | Error[]
Parameters
cause: undefined | Error | Error[]
Returns void
toJSON
Returns { cause: undefined | Error; code: number; innerError: undefined | Error; message: string; name: string }
cause: undefined | Error
code: number
innerError: undefined | Error
message: string
name: string
staticconvertToString
Parameters
value: unknown
optionalunquotValue: boolean
Returns string
MissingGasInnerError
Base class for Web3 errors.
constructor
Returns MissingGasInnerError
cause
code
readonlyname
stack
innerError
Returns undefined | Error | Error[]
Parameters
cause: undefined | Error | Error[]
Returns void
toJSON
Returns { cause: undefined | Error; code: number; innerError: undefined | Error; message: string; name: string }
cause: undefined | Error
code: number
innerError: undefined | Error
message: string
name: string
staticconvertToString
Parameters
value: unknown
optionalunquotValue: boolean
Returns string
MultipleErrors
Base class for Web3 errors.
constructor
Parameters
errors: Error[]
Returns MultipleErrors
cause
code
errors
readonlyname
stack
innerError
Returns undefined | Error | Error[]
Parameters
cause: undefined | Error | Error[]
Returns void
toJSON
Returns { cause: undefined | Error; code: number; innerError: undefined | Error; message: string; name: string }
cause: undefined | Error
code: number
innerError: undefined | Error
message: string
name: string
staticconvertToString
Parameters
value: unknown
optionalunquotValue: boolean
Returns string
NibbleWidthError
Base class for Web3 errors.
constructor
Parameters
value: string
Returns NibbleWidthError
cause
code
readonlyname
stack
innerError
Returns undefined | Error | Error[]
Parameters
cause: undefined | Error | Error[]
Returns void
toJSON
Returns { cause: undefined | Error; code: number; innerError: undefined | Error; message: string; name: string }
cause: undefined | Error
code: number
innerError: undefined | Error
message: string
name: string
staticconvertToString
Parameters
value: unknown
optionalunquotValue: boolean
Returns string
NoContractAddressFoundError
Base class for Web3 errors.
constructor
Parameters
receipt: TransactionReceipt
Returns NoContractAddressFoundError
cause
code
readonlyname
optionalreceipt
stack
innerError
Returns undefined | Error | Error[]
Parameters
cause: undefined | Error | Error[]
Returns void
toJSON
Returns { cause: undefined | Error; code: number; innerError: undefined | Error; message: string; name: string; receipt: undefined | TransactionReceipt }
cause: undefined | Error
code: number
innerError: undefined | Error
message: string
name: string
receipt: undefined | TransactionReceipt
staticconvertToString
Parameters
value: unknown
optionalunquotValue: boolean
Returns string
OperationAbortError
Base class for Web3 errors.
constructor
Parameters
optionalmsg: string
optionalcause: Error | Error[]
Returns OperationAbortError
cause
code
readonlyname
stack
innerError
Returns undefined | Error | Error[]
Parameters
cause: undefined | Error | Error[]
Returns void
toJSON
Returns { cause: undefined | Error; code: number; innerError: undefined | Error; message: string; name: string }
cause: undefined | Error
code: number
innerError: undefined | Error
message: string
name: string
staticconvertToString
Parameters
value: unknown
optionalunquotValue: boolean
Returns string
OperationTimeoutError
Base class for Web3 errors.
constructor
Parameters
optionalmsg: string
optionalcause: Error | Error[]
Returns OperationTimeoutError
cause
code
readonlyname
stack
innerError
Returns undefined | Error | Error[]
Parameters
cause: undefined | Error | Error[]
Returns void
toJSON
Returns { cause: undefined | Error; code: number; innerError: undefined | Error; message: string; name: string }
cause: undefined | Error
code: number
innerError: undefined | Error
message: string
name: string
staticconvertToString
Parameters
value: unknown
optionalunquotValue: boolean
Returns string
PBKDF2IterationsError
Base class for Web3 errors.
constructor
Returns PBKDF2IterationsError
cause
code
readonlyname
stack
innerError
Returns undefined | Error | Error[]
Parameters
cause: undefined | Error | Error[]
Returns void
toJSON
Returns { cause: undefined | Error; code: number; innerError: undefined | Error; message: string; name: string }
cause: undefined | Error
code: number
innerError: undefined | Error
message: string
name: string
staticconvertToString
Parameters
value: unknown
optionalunquotValue: boolean
Returns string
ParseError
Base class for Web3 errors.
constructor
Parameters
rpcError: JsonRpcResponseWithError<JsonRpcResult>
Returns ParseError
cause
code
id
jsonRpcError
jsonrpc
readonlyname
stack
innerError
Returns undefined | Error | Error[]
Parameters
cause: undefined | Error | Error[]
Returns void
toJSON
Returns { cause: undefined | Error; code: number; error: JsonRpcError<JsonRpcResult>; id: JsonRpcId; innerError: undefined | Error; jsonRpc: string; message: string; name: string }
cause: undefined | Error
code: number
error: JsonRpcError<JsonRpcResult>
id: JsonRpcId
innerError: undefined | Error
jsonRpc: string
message: string
name: string
staticconvertToString
Parameters
value: unknown
optionalunquotValue: boolean
Returns string
PendingRequestsOnReconnectingError
Base class for Web3 errors.
constructor
cause
code
optionalerrorCode
optionalerrorReason
readonlyname
stack
innerError
Returns undefined | Error | Error[]
Parameters
cause: undefined | Error | Error[]
Returns void
toJSON
Returns { cause: undefined | Error; code: number; errorCode: undefined | number; errorReason: undefined | string; innerError: undefined | Error; message: string; name: string }
cause: undefined | Error
code: number
errorCode: undefined | number
errorReason: undefined | string
innerError: undefined | Error
message: string
name: string
staticconvertToString
Parameters
value: unknown
optionalunquotValue: boolean
Returns string
PrivateKeyLengthError
Base class for Web3 errors.
constructor
Returns PrivateKeyLengthError
cause
code
readonlyname
stack
innerError
Returns undefined | Error | Error[]
Parameters
cause: undefined | Error | Error[]
Returns void
toJSON
Returns { cause: undefined | Error; code: number; innerError: undefined | Error; message: string; name: string }
cause: undefined | Error
code: number
innerError: undefined | Error
message: string
name: string
staticconvertToString
Parameters
value: unknown
optionalunquotValue: boolean
Returns string
ProviderError
Base class for Web3 errors.
constructor
Parameters
optionalmsg: string
optionalcause: Error | Error[]
Returns ProviderError
cause
code
readonlyname
stack
innerError
Returns undefined | Error | Error[]
Parameters
cause: undefined | Error | Error[]
Returns void
toJSON
Returns { cause: undefined | Error; code: number; innerError: undefined | Error; message: string; name: string }
cause: undefined | Error
code: number
innerError: undefined | Error
message: string
name: string
staticconvertToString
Parameters
value: unknown
optionalunquotValue: boolean
Returns string
RequestAlreadySentError
Base class for Web3 errors.
constructor
Parameters
id: string | number
Returns RequestAlreadySentError
cause
code
optionalerrorCode
optionalerrorReason
readonlyname
stack
innerError
Returns undefined | Error | Error[]
Parameters
cause: undefined | Error | Error[]
Returns void
toJSON
Returns { cause: undefined | Error; code: number; errorCode: undefined | number; errorReason: undefined | string; innerError: undefined | Error; message: string; name: string }
cause: undefined | Error
code: number
errorCode: undefined | number
errorReason: undefined | string
innerError: undefined | Error
message: string
name: string
staticconvertToString
Parameters
value: unknown
optionalunquotValue: boolean
Returns string
ResolverMethodMissingError
Base class for Web3 errors.
constructor
Parameters
address: string
name: string
Returns ResolverMethodMissingError
address
cause
code
name
stack
innerError
Returns undefined | Error | Error[]
Parameters
cause: undefined | Error | Error[]
Returns void
toJSON
Returns { address: string; cause: undefined | Error; code: number; innerError: undefined | Error; message: string; name: string }
address: string
cause: undefined | Error
code: number
innerError: undefined | Error
message: string
name: string
staticconvertToString
Parameters
value: unknown
optionalunquotValue: boolean
Returns string
ResourceUnavailableError
Base class for Web3 errors.
constructor
Parameters
rpcError: JsonRpcResponseWithError<JsonRpcResult>
Returns ResourceUnavailableError
cause
code
id
jsonRpcError
jsonrpc
readonlyname
stack
innerError
Returns undefined | Error | Error[]
Parameters
cause: undefined | Error | Error[]
Returns void
toJSON
Returns { cause: undefined | Error; code: number; error: JsonRpcError<JsonRpcResult>; id: JsonRpcId; innerError: undefined | Error; jsonRpc: string; message: string; name: string }
cause: undefined | Error
code: number
error: JsonRpcError<JsonRpcResult>
id: JsonRpcId
innerError: undefined | Error
jsonRpc: string
message: string
name: string
staticconvertToString
Parameters
value: unknown
optionalunquotValue: boolean
Returns string
ResourcesNotFoundError
Base class for Web3 errors.
constructor
Parameters
rpcError: JsonRpcResponseWithError<JsonRpcResult>
Returns ResourcesNotFoundError
cause
code
id
jsonRpcError
jsonrpc
readonlyname
stack
innerError
Returns undefined | Error | Error[]
Parameters
cause: undefined | Error | Error[]
Returns void
toJSON
Returns { cause: undefined | Error; code: number; error: JsonRpcError<JsonRpcResult>; id: JsonRpcId; innerError: undefined | Error; jsonRpc: string; message: string; name: string }
cause: undefined | Error
code: number
error: JsonRpcError<JsonRpcResult>
id: JsonRpcId
innerError: undefined | Error
jsonRpc: string
message: string
name: string
staticconvertToString
Parameters
value: unknown
optionalunquotValue: boolean
Returns string
ResponseError
Base class for Web3 errors.
Type parameters
- ErrorType = unknown
- RequestType = unknown
constructor
Type parameters
- ErrorType = unknown
- RequestType = unknown
Parameters
response: JsonRpcResponse<unknown, ErrorType>
optionalmessage: string
optionalrequest: JsonRpcPayload<RequestType>
optionalstatusCode: number
Returns ResponseError<ErrorType, RequestType>
cause
code
optionaldata
readonlyname
optionalrequest
stack
optionalstatusCode
innerError
Returns undefined | Error | Error[]
Parameters
cause: undefined | Error | Error[]
Returns void
toJSON
Returns { cause: undefined | Error; code: number; data: undefined | ErrorType | ErrorType[]; innerError: undefined | Error; message: string; name: string; request: undefined | JsonRpcPayload<RequestType>; statusCode: undefined | number }
cause: undefined | Error
code: number
data: undefined | ErrorType | ErrorType[]
innerError: undefined | Error
message: string
name: string
request: undefined | JsonRpcPayload<RequestType>
statusCode: undefined | number
staticconvertToString
Parameters
value: unknown
optionalunquotValue: boolean
Returns string
RevertInstructionError
Base class for Web3 errors.
constructor
Parameters
reason: string
signature: string
Returns RevertInstructionError
cause
code
readonlyname
reason
signature
stack
innerError
Returns undefined | Error | Error[]
Parameters
cause: undefined | Error | Error[]
Returns void
toJSON
Returns { cause: undefined | Error; code: number; innerError: undefined | Error; message: string; name: string; reason: string; signature: string }
cause: undefined | Error
code: number
innerError: undefined | Error
message: string
name: string
reason: string
signature: string
staticconvertToString
Parameters
value: unknown
optionalunquotValue: boolean
Returns string
RpcError
Base class for Web3 errors.
constructor
Parameters
rpcError: JsonRpcResponseWithError<JsonRpcResult>
optionalmessage: string
Returns RpcError
cause
code
id
jsonRpcError
jsonrpc
readonlyname
stack
innerError
Returns undefined | Error | Error[]
Parameters
cause: undefined | Error | Error[]
Returns void
toJSON
Returns { cause: undefined | Error; code: number; error: JsonRpcError<JsonRpcResult>; id: JsonRpcId; innerError: undefined | Error; jsonRpc: string; message: string; name: string }
cause: undefined | Error
code: number
error: JsonRpcError<JsonRpcResult>
id: JsonRpcId
innerError: undefined | Error
jsonRpc: string
message: string
name: string
staticconvertToString
Parameters
value: unknown
optionalunquotValue: boolean
Returns string
SchemaFormatError
Base class for Web3 errors.
constructor
Parameters
type: string
Returns SchemaFormatError
cause
code
readonlyname
stack
type
innerError
Returns undefined | Error | Error[]
Parameters
cause: undefined | Error | Error[]
Returns void
toJSON
Returns { cause: undefined | Error; code: number; innerError: undefined | Error; message: string; name: string; type: string }
cause: undefined | Error
code: number
innerError: undefined | Error
message: string
name: string
type: string
staticconvertToString
Parameters
value: unknown
optionalunquotValue: boolean
Returns string
SignatureError
Base class for Web3 errors.
constructor
Parameters
value: unknown
msg: string
Returns SignatureError
cause
code
readonlyname
stack
innerError
Returns undefined | Error | Error[]
Parameters
cause: undefined | Error | Error[]
Returns void
toJSON
Returns { cause: undefined | Error; code: number; innerError: undefined | Error; message: string; name: string }
cause: undefined | Error
code: number
innerError: undefined | Error
message: string
name: string
staticconvertToString
Parameters
value: unknown
optionalunquotValue: boolean
Returns string
SubscriptionError
Base class for Web3 errors.
constructor
Parameters
optionalmsg: string
optionalcause: Error | Error[]
Returns SubscriptionError
cause
code
readonlyname
stack
innerError
Returns undefined | Error | Error[]
Parameters
cause: undefined | Error | Error[]
Returns void
toJSON
Returns { cause: undefined | Error; code: number; innerError: undefined | Error; message: string; name: string }
cause: undefined | Error
code: number
innerError: undefined | Error
message: string
name: string
staticconvertToString
Parameters
value: unknown
optionalunquotValue: boolean
Returns string
TransactionBlockTimeoutError
Base class for Web3 errors.
constructor
Parameters
value: { numberOfBlocks: number; starterBlockNumber: number; transactionHash?: Bytes }
numberOfBlocks: number
starterBlockNumber: number
optionaltransactionHash: Bytes
Returns TransactionBlockTimeoutError
cause
code
readonlyname
stack
innerError
Returns undefined | Error | Error[]
Parameters
cause: undefined | Error | Error[]
Returns void
toJSON
Returns { cause: undefined | Error; code: number; innerError: undefined | Error; message: string; name: string }
cause: undefined | Error
code: number
innerError: undefined | Error
message: string
name: string
staticconvertToString
Parameters
value: unknown
optionalunquotValue: boolean
Returns string
TransactionDataAndInputError
Base class for Web3 errors.
constructor
Parameters
value: { data: undefined | string; input: undefined | string }
data: undefined | string
input: undefined | string
Returns TransactionDataAndInputError
cause
code
readonlyname
stack
innerError
Returns undefined | Error | Error[]
Parameters
cause: undefined | Error | Error[]
Returns void
toJSON
Returns { cause: undefined | Error; code: number; innerError: undefined | Error; message: string; name: string }
cause: undefined | Error
code: number
innerError: undefined | Error
message: string
name: string
staticconvertToString
Parameters
value: unknown
optionalunquotValue: boolean
Returns string
TransactionError
constructor
Type parameters
- ReceiptType = TransactionReceipt
Parameters
message: string
optionalreceipt: ReceiptType
Returns TransactionError<ReceiptType>
cause
code
readonlyname
optionalreceipt
stack
innerError
Returns undefined | Error | Error[]
Parameters
cause: undefined | Error | Error[]
Returns void
toJSON
Returns { cause: undefined | Error; code: number; innerError: undefined | Error; message: string; name: string; receipt: undefined | ReceiptType }
cause: undefined | Error
code: number
innerError: undefined | Error
message: string
name: string
receipt: undefined | ReceiptType
staticconvertToString
Parameters
value: unknown
optionalunquotValue: boolean
Returns string
TransactionGasMismatchError
Base class for Web3 errors.
constructor
Parameters
value: { gas: undefined | Numbers; gasPrice: undefined | Numbers; maxFeePerGas: undefined | Numbers; maxPriorityFeePerGas: undefined | Numbers }
Returns TransactionGasMismatchError
cause
code
readonlyname
stack
innerError
Returns undefined | Error | Error[]
Parameters
cause: undefined | Error | Error[]
Returns void
toJSON
Returns { cause: undefined | Error; code: number; innerError: undefined | Error; message: string; name: string }
cause: undefined | Error
code: number
innerError: undefined | Error
message: string
name: string
staticconvertToString
Parameters
value: unknown
optionalunquotValue: boolean
Returns string
TransactionGasMismatchInnerError
Base class for Web3 errors.
constructor
Returns TransactionGasMismatchInnerError
cause
code
readonlyname
stack
innerError
Returns undefined | Error | Error[]
Parameters
cause: undefined | Error | Error[]
Returns void
toJSON
Returns { cause: undefined | Error; code: number; innerError: undefined | Error; message: string; name: string }
cause: undefined | Error
code: number
innerError: undefined | Error
message: string
name: string
staticconvertToString
Parameters
value: unknown
optionalunquotValue: boolean
Returns string
TransactionMissingReceiptOrBlockHashError
Base class for Web3 errors.
constructor
Parameters
value: { blockHash: Bytes; receipt: TransactionReceipt; transactionHash: Bytes }
blockHash: Bytes
receipt: TransactionReceipt
transactionHash: Bytes
Returns TransactionMissingReceiptOrBlockHashError
cause
code
readonlyname
stack
innerError
Returns undefined | Error | Error[]
Parameters
cause: undefined | Error | Error[]
Returns void
toJSON
Returns { cause: undefined | Error; code: number; innerError: undefined | Error; message: string; name: string }
cause: undefined | Error
code: number
innerError: undefined | Error
message: string
name: string
staticconvertToString
Parameters
value: unknown
optionalunquotValue: boolean
Returns string
TransactionNotFound
Base class for Web3 errors.
constructor
Returns TransactionNotFound
cause
code
readonlyname
optionalreceipt
stack
innerError
Returns undefined | Error | Error[]
Parameters
cause: undefined | Error | Error[]
Returns void
toJSON
Returns { cause: undefined | Error; code: number; innerError: undefined | Error; message: string; name: string; receipt: undefined | TransactionReceipt }
cause: undefined | Error
code: number
innerError: undefined | Error
message: string
name: string
receipt: undefined | TransactionReceipt
staticconvertToString
Parameters
value: unknown
optionalunquotValue: boolean
Returns string
TransactionOutOfGasError
Base class for Web3 errors.
constructor
Parameters
receipt: TransactionReceipt
Returns TransactionOutOfGasError
cause
code
readonlyname
optionalreceipt
stack
innerError
Returns undefined | Error | Error[]
Parameters
cause: undefined | Error | Error[]
Returns void
toJSON
Returns { cause: undefined | Error; code: number; innerError: undefined | Error; message: string; name: string; receipt: undefined | TransactionReceipt }
cause: undefined | Error
code: number
innerError: undefined | Error
message: string
name: string
receipt: undefined | TransactionReceipt
staticconvertToString
Parameters
value: unknown
optionalunquotValue: boolean
Returns string
TransactionPollingTimeoutError
Base class for Web3 errors.
constructor
Parameters
value: { numberOfSeconds: number; transactionHash: Bytes }
numberOfSeconds: number
transactionHash: Bytes
Returns TransactionPollingTimeoutError
cause
code
readonlyname
stack
innerError
Returns undefined | Error | Error[]
Parameters
cause: undefined | Error | Error[]
Returns void
toJSON
Returns { cause: undefined | Error; code: number; innerError: undefined | Error; message: string; name: string }
cause: undefined | Error
code: number
innerError: undefined | Error
message: string
name: string
staticconvertToString
Parameters
value: unknown
optionalunquotValue: boolean
Returns string
TransactionReceiptMissingBlockNumberError
Base class for Web3 errors.
constructor
Parameters
value: { receipt: TransactionReceipt }
receipt: TransactionReceipt
Returns TransactionReceiptMissingBlockNumberError
cause
code
readonlyname
stack
innerError
Returns undefined | Error | Error[]
Parameters
cause: undefined | Error | Error[]
Returns void
toJSON
Returns { cause: undefined | Error; code: number; innerError: undefined | Error; message: string; name: string }
cause: undefined | Error
code: number
innerError: undefined | Error
message: string
name: string
staticconvertToString
Parameters
value: unknown
optionalunquotValue: boolean
Returns string
TransactionRejectedError
Base class for Web3 errors.
constructor
Parameters
rpcError: JsonRpcResponseWithError<JsonRpcResult>
Returns TransactionRejectedError
cause
code
id
jsonRpcError
jsonrpc
readonlyname
stack
innerError
Returns undefined | Error | Error[]
Parameters
cause: undefined | Error | Error[]
Returns void
toJSON
Returns { cause: undefined | Error; code: number; error: JsonRpcError<JsonRpcResult>; id: JsonRpcId; innerError: undefined | Error; jsonRpc: string; message: string; name: string }
cause: undefined | Error
code: number
error: JsonRpcError<JsonRpcResult>
id: JsonRpcId
innerError: undefined | Error
jsonRpc: string
message: string
name: string
staticconvertToString
Parameters
value: unknown
optionalunquotValue: boolean
Returns string
TransactionRevertInstructionError
constructor
Type parameters
- ReceiptType = TransactionReceipt
Parameters
reason: string
optionalsignature: string
optionalreceipt: ReceiptType
optionaldata: string
Returns TransactionRevertInstructionError<ReceiptType>
cause
code
optionaldata
readonlyname
reason
optionalreceipt
optionalsignature
stack
innerError
Returns undefined | Error | Error[]
Parameters
cause: undefined | Error | Error[]
Returns void
toJSON
Returns { cause: undefined | Error; code: number; data: undefined | string; innerError: undefined | Error; message: string; name: string; reason: string; receipt: undefined | ReceiptType; signature: undefined | string }
cause: undefined | Error
code: number
data: undefined | string
innerError: undefined | Error
message: string
name: string
reason: string
receipt: undefined | ReceiptType
signature: undefined | string
staticconvertToString
Parameters
value: unknown
optionalunquotValue: boolean
Returns string
TransactionRevertWithCustomError
This error is used when a transaction to a smart contract fails and a custom user error (https://blog.soliditylang.org/2021/04/21/custom-errors/) is able to be parsed from the revert reason
Type parameters
- ReceiptType = TransactionReceipt
constructor
Type parameters
- ReceiptType = TransactionReceipt
Parameters
reason: string
customErrorName: string
customErrorDecodedSignature: string
customErrorArguments: Record<string, unknown>
optionalsignature: string
optionalreceipt: ReceiptType
optionaldata: string
Returns TransactionRevertWithCustomError<ReceiptType>
cause
code
customErrorArguments
customErrorDecodedSignature
customErrorName
optionaldata
readonlyname
reason
optionalreceipt
optionalsignature
stack
innerError
Returns undefined | Error | Error[]
Parameters
cause: undefined | Error | Error[]
Returns void
toJSON
Returns { cause: undefined | Error; code: number; customErrorArguments: Record<string, unknown>; customErrorDecodedSignature: string; customErrorName: string; data: undefined | string; innerError: undefined | Error; message: string; name: string; reason: string; receipt: undefined | ReceiptType; signature: undefined | string }
cause: undefined | Error
code: number
customErrorArguments: Record<string, unknown>
customErrorDecodedSignature: string
customErrorName: string
data: undefined | string
innerError: undefined | Error
message: string
name: string
reason: string
receipt: undefined | ReceiptType
signature: undefined | string
staticconvertToString
Parameters
value: unknown
optionalunquotValue: boolean
Returns string
TransactionRevertedWithoutReasonError
constructor
Type parameters
- ReceiptType = TransactionReceipt
Parameters
optionalreceipt: ReceiptType
Returns TransactionRevertedWithoutReasonError<ReceiptType>
cause
code
readonlyname
optionalreceipt
stack
innerError
Returns undefined | Error | Error[]
Parameters
cause: undefined | Error | Error[]
Returns void
toJSON
Returns { cause: undefined | Error; code: number; innerError: undefined | Error; message: string; name: string; receipt: undefined | ReceiptType }
cause: undefined | Error
code: number
innerError: undefined | Error
message: string
name: string
receipt: undefined | ReceiptType
staticconvertToString
Parameters
value: unknown
optionalunquotValue: boolean
Returns string
TransactionSendTimeoutError
Base class for Web3 errors.
constructor
Parameters
value: { numberOfSeconds: number; transactionHash?: Bytes }
numberOfSeconds: number
optionaltransactionHash: Bytes
Returns TransactionSendTimeoutError
cause
code
readonlyname
stack
innerError
Returns undefined | Error | Error[]
Parameters
cause: undefined | Error | Error[]
Returns void
toJSON
Returns { cause: undefined | Error; code: number; innerError: undefined | Error; message: string; name: string }
cause: undefined | Error
code: number
innerError: undefined | Error
message: string
name: string
staticconvertToString
Parameters
value: unknown
optionalunquotValue: boolean
Returns string
TransactionSigningError
Base class for Web3 errors.
constructor
Parameters
errorDetails: string
Returns TransactionSigningError
cause
code
readonlyname
stack
innerError
Returns undefined | Error | Error[]
Parameters
cause: undefined | Error | Error[]
Returns void
toJSON
Returns { cause: undefined | Error; code: number; innerError: undefined | Error; message: string; name: string }
cause: undefined | Error
code: number
innerError: undefined | Error
message: string
name: string
staticconvertToString
Parameters
value: unknown
optionalunquotValue: boolean
Returns string
UnableToPopulateNonceError
Base class for Web3 errors.
constructor
Returns UnableToPopulateNonceError
cause
code
readonlyname
stack
innerError
Returns undefined | Error | Error[]
Parameters
cause: undefined | Error | Error[]
Returns void
toJSON
Returns { cause: undefined | Error; code: number; innerError: undefined | Error; message: string; name: string }
cause: undefined | Error
code: number
innerError: undefined | Error
message: string
name: string
staticconvertToString
Parameters
value: unknown
optionalunquotValue: boolean
Returns string
UndefinedRawTransactionError
Base class for Web3 errors.
constructor
Returns UndefinedRawTransactionError
cause
code
readonlyname
optionalreceipt
stack
innerError
Returns undefined | Error | Error[]
Parameters
cause: undefined | Error | Error[]
Returns void
toJSON
Returns { cause: undefined | Error; code: number; innerError: undefined | Error; message: string; name: string; receipt: undefined | TransactionReceipt }
cause: undefined | Error
code: number
innerError: undefined | Error
message: string
name: string
receipt: undefined | TransactionReceipt
staticconvertToString
Parameters
value: unknown
optionalunquotValue: boolean
Returns string
UnsupportedFeeMarketError
Base class for Web3 errors.
constructor
Parameters
Returns UnsupportedFeeMarketError
cause
code
readonlyname
stack
innerError
Returns undefined | Error | Error[]
Parameters
cause: undefined | Error | Error[]
Returns void
toJSON
Returns { cause: undefined | Error; code: number; innerError: undefined | Error; message: string; name: string }
cause: undefined | Error
code: number
innerError: undefined | Error
message: string
name: string
staticconvertToString
Parameters
value: unknown
optionalunquotValue: boolean
Returns string
UnsupportedTransactionTypeError
Base class for Web3 errors.
constructor
Parameters
value: unknown
Returns UnsupportedTransactionTypeError
cause
code
readonlyname
stack
innerError
Returns undefined | Error | Error[]
Parameters
cause: undefined | Error | Error[]
Returns void
toJSON
Returns { cause: undefined | Error; code: number; innerError: undefined | Error; message: string; name: string }
cause: undefined | Error
code: number
innerError: undefined | Error
message: string
name: string
staticconvertToString
Parameters
value: unknown
optionalunquotValue: boolean
Returns string
VersionNotSupportedError
Base class for Web3 errors.
constructor
Parameters
rpcError: JsonRpcResponseWithError<JsonRpcResult>
Returns VersionNotSupportedError
cause
code
id
jsonRpcError
jsonrpc
readonlyname
stack
innerError
Returns undefined | Error | Error[]
Parameters
cause: undefined | Error | Error[]
Returns void
toJSON
Returns { cause: undefined | Error; code: number; error: JsonRpcError<JsonRpcResult>; id: JsonRpcId; innerError: undefined | Error; jsonRpc: string; message: string; name: string }
cause: undefined | Error
code: number
error: JsonRpcError<JsonRpcResult>
id: JsonRpcId
innerError: undefined | Error
jsonRpc: string
message: string
name: string
staticconvertToString
Parameters
value: unknown
optionalunquotValue: boolean
Returns string
Web3ContractError
Base class for Web3 errors.
constructor
Parameters
message: string
optionalreceipt: TransactionReceipt
Returns Web3ContractError
cause
code
readonlyname
optionalreceipt
stack
innerError
Returns undefined | Error | Error[]
Parameters
cause: undefined | Error | Error[]
Returns void
toJSON
Returns { cause: undefined | Error; code: number; innerError: undefined | Error; message: string; name: string }
cause: undefined | Error
code: number
innerError: undefined | Error
message: string
name: string
staticconvertToString
Parameters
value: unknown
optionalunquotValue: boolean
Returns string
Web3WSProviderError
Base class for Web3 errors.
constructor
Parameters
optionalmsg: string
optionalcause: Error | Error[]
Returns Web3WSProviderError
cause
code
readonlyname
stack
innerError
Returns undefined | Error | Error[]
Parameters
cause: undefined | Error | Error[]
Returns void
toJSON
Returns { cause: undefined | Error; code: number; innerError: undefined | Error; message: string; name: string }
cause: undefined | Error
code: number
innerError: undefined | Error
message: string
name: string
staticconvertToString
Parameters
value: unknown
optionalunquotValue: boolean
Returns string
Type Aliases
ProviderErrorData
Variables
constERR_ABI_ENCODING
constERR_CONN
constERR_CONN_CLOSE
constERR_CONN_INVALID
constERR_CONN_MAX_ATTEMPTS
constERR_CONN_NOT_OPEN
constERR_CONN_PENDING_REQUESTS
constERR_CONN_TIMEOUT
constERR_CONTRACT
constERR_CONTRACT_ABI_MISSING
constERR_CONTRACT_EVENT_NOT_EXISTS
constERR_CONTRACT_EXECUTION_REVERTED
constERR_CONTRACT_INSTANTIATION
constERR_CONTRACT_MISSING_ADDRESS
constERR_CONTRACT_MISSING_DEPLOY_DATA
constERR_CONTRACT_MISSING_FROM_ADDRESS
constERR_CONTRACT_REQUIRED_CALLBACK
constERR_CONTRACT_RESERVED_EVENT
constERR_CONTRACT_RESOLVER_MISSING
constERR_CONTRACT_TX_DATA_AND_INPUT
constERR_CORE_CHAIN_MISMATCH
constERR_CORE_HARDFORK_MISMATCH
constERR_ENS_CHECK_INTERFACE_SUPPORT
constERR_ENS_NETWORK_NOT_SYNCED
constERR_ENS_UNSUPPORTED_NETWORK
constERR_EXISTING_PLUGIN_NAMESPACE
constERR_FORMATTERS
constERR_INVALID_ADDRESS
constERR_INVALID_BLOCK
constERR_INVALID_BOOLEAN
constERR_INVALID_BYTES
constERR_INVALID_CLIENT
constERR_INVALID_HEX
constERR_INVALID_INTEGER
constERR_INVALID_KEYSTORE
constERR_INVALID_LARGE_VALUE
constERR_INVALID_METHOD_PARAMS
constERR_INVALID_NIBBLE_WIDTH
constERR_INVALID_NUMBER
constERR_INVALID_PASSWORD
constERR_INVALID_PRIVATE_KEY
constERR_INVALID_PROVIDER
constERR_INVALID_RESPONSE
constERR_INVALID_SIGNATURE
constERR_INVALID_SIZE
constERR_INVALID_STRING
constERR_INVALID_TYPE
constERR_INVALID_TYPE_ABI
constERR_INVALID_UNIT
constERR_INVALID_UNSIGNED_INTEGER
constERR_IV_LENGTH
constERR_KEY_DERIVATION_FAIL
constERR_KEY_VERSION_UNSUPPORTED
constERR_METHOD_NOT_IMPLEMENTED
constERR_MULTIPLE_ERRORS
constERR_OPERATION_ABORT
constERR_OPERATION_TIMEOUT
constERR_PARAM
constERR_PBKDF2_ITERATIONS
constERR_PRIVATE_KEY_LENGTH
constERR_PROVIDER
constERR_RAW_TX_UNDEFINED
constERR_REQ_ALREADY_SENT
constERR_RESPONSE
constERR_RPC_INTERNAL_ERROR
constERR_RPC_INVALID_INPUT
constERR_RPC_INVALID_JSON
constERR_RPC_INVALID_METHOD
constERR_RPC_INVALID_PARAMS
constERR_RPC_INVALID_REQUEST
constERR_RPC_LIMIT_EXCEEDED
constERR_RPC_MISSING_RESOURCE
constERR_RPC_NOT_SUPPORTED
constERR_RPC_TRANSACTION_REJECTED
constERR_RPC_UNAVAILABLE_RESOURCE
constERR_RPC_UNSUPPORTED_METHOD
constERR_SCHEMA_FORMAT
constERR_SIGNATURE_FAILED
constERR_SUBSCRIPTION
constERR_TX
constERR_TX_BLOCK_TIMEOUT
constERR_TX_CHAIN_ID_MISMATCH
constERR_TX_CHAIN_MISMATCH
constERR_TX_CONTRACT_NOT_STORED
constERR_TX_DATA_AND_INPUT
constERR_TX_GAS_MISMATCH
constERR_TX_GAS_MISMATCH_INNER_ERROR
constERR_TX_HARDFORK_MISMATCH
constERR_TX_INVALID_CALL
constERR_TX_INVALID_CHAIN_INFO
constERR_TX_INVALID_FEE_MARKET_GAS
constERR_TX_INVALID_FEE_MARKET_GAS_PRICE
constERR_TX_INVALID_LEGACY_FEE_MARKET
constERR_TX_INVALID_LEGACY_GAS
constERR_TX_INVALID_NONCE_OR_CHAIN_ID
constERR_TX_INVALID_OBJECT
constERR_TX_INVALID_PROPERTIES_FOR_TYPE
constERR_TX_INVALID_RECEIVER
constERR_TX_INVALID_SENDER
constERR_TX_LOCAL_WALLET_NOT_AVAILABLE
constERR_TX_MISSING_CHAIN_INFO
constERR_TX_MISSING_CUSTOM_CHAIN
constERR_TX_MISSING_CUSTOM_CHAIN_ID
constERR_TX_MISSING_GAS
constERR_TX_MISSING_GAS_INNER_ERROR
constERR_TX_NOT_FOUND
constERR_TX_NO_CONTRACT_ADDRESS
constERR_TX_OUT_OF_GAS
constERR_TX_POLLING_TIMEOUT
constERR_TX_RECEIPT_MISSING_BLOCK_NUMBER
constERR_TX_RECEIPT_MISSING_OR_BLOCKHASH_NULL
constERR_TX_REVERT_INSTRUCTION
constERR_TX_REVERT_TRANSACTION
constERR_TX_REVERT_TRANSACTION_CUSTOM_ERROR
constERR_TX_REVERT_WITHOUT_REASON
constERR_TX_SEND_TIMEOUT
constERR_TX_SIGNING
constERR_TX_UNABLE_TO_POPULATE_NONCE
constERR_TX_UNSUPPORTED_EIP_1559
constERR_TX_UNSUPPORTED_TYPE
constERR_UNSUPPORTED_KDF
constERR_VALIDATION
constERR_WS_PROVIDER
constGENESIS_BLOCK_NUMBER
constJSONRPC_ERR_CHAIN_DISCONNECTED
constJSONRPC_ERR_DISCONNECTED
constJSONRPC_ERR_REJECTED_REQUEST
constJSONRPC_ERR_UNAUTHORIZED
constJSONRPC_ERR_UNSUPPORTED_METHOD
constRpcErrorMessages
Type declaration
[key number | string]: { description?: string; message: string; name?: string }
constgenericRpcErrorMessageTemplate
A template string for a generic Rpc Error. The *code*
will be replaced with the code number.
Note: consider in next version that a spelling mistake could be corrected for occured
and the value could be:
An Rpc error has occurred with a code of *code*
Base class for Web3 errors.