Skip to main content

web3-errors

Index

Classes

Type Aliases

Variables

Type Aliases

ProviderErrorData

ProviderErrorData: HexString | { data: HexString } | { originalError: { data: HexString } }

Variables

constERR_ABI_ENCODING

ERR_ABI_ENCODING: 205 = 205

constERR_CONN

ERR_CONN: 500 = 500

constERR_CONN_CLOSE

ERR_CONN_CLOSE: 504 = 504

constERR_CONN_INVALID

ERR_CONN_INVALID: 501 = 501

constERR_CONN_MAX_ATTEMPTS

ERR_CONN_MAX_ATTEMPTS: 505 = 505

constERR_CONN_NOT_OPEN

ERR_CONN_NOT_OPEN: 503 = 503

constERR_CONN_PENDING_REQUESTS

ERR_CONN_PENDING_REQUESTS: 506 = 506

constERR_CONN_TIMEOUT

ERR_CONN_TIMEOUT: 502 = 502

constERR_CONTRACT

ERR_CONTRACT: 300 = 300

constERR_CONTRACT_ABI_MISSING

ERR_CONTRACT_ABI_MISSING: 302 = 302

constERR_CONTRACT_EVENT_NOT_EXISTS

ERR_CONTRACT_EVENT_NOT_EXISTS: 304 = 304

constERR_CONTRACT_EXECUTION_REVERTED

ERR_CONTRACT_EXECUTION_REVERTED: 310 = 310

constERR_CONTRACT_INSTANTIATION

ERR_CONTRACT_INSTANTIATION: 309 = 309

constERR_CONTRACT_MISSING_ADDRESS

ERR_CONTRACT_MISSING_ADDRESS: 307 = 307

constERR_CONTRACT_MISSING_DEPLOY_DATA

ERR_CONTRACT_MISSING_DEPLOY_DATA: 306 = 306

constERR_CONTRACT_MISSING_FROM_ADDRESS

ERR_CONTRACT_MISSING_FROM_ADDRESS: 308 = 308

constERR_CONTRACT_REQUIRED_CALLBACK

ERR_CONTRACT_REQUIRED_CALLBACK: 303 = 303

constERR_CONTRACT_RESERVED_EVENT

ERR_CONTRACT_RESERVED_EVENT: 305 = 305

constERR_CONTRACT_RESOLVER_MISSING

ERR_CONTRACT_RESOLVER_MISSING: 301 = 301

constERR_CONTRACT_TX_DATA_AND_INPUT

ERR_CONTRACT_TX_DATA_AND_INPUT: 311 = 311

constERR_CORE_CHAIN_MISMATCH

ERR_CORE_CHAIN_MISMATCH: 1102 = 1102

constERR_CORE_HARDFORK_MISMATCH

ERR_CORE_HARDFORK_MISMATCH: 1101 = 1101

constERR_ENS_CHECK_INTERFACE_SUPPORT

ERR_ENS_CHECK_INTERFACE_SUPPORT: 901 = 901

constERR_ENS_NETWORK_NOT_SYNCED

ERR_ENS_NETWORK_NOT_SYNCED: 903 = 903

constERR_ENS_UNSUPPORTED_NETWORK

ERR_ENS_UNSUPPORTED_NETWORK: 902 = 902

constERR_EXISTING_PLUGIN_NAMESPACE

ERR_EXISTING_PLUGIN_NAMESPACE: 206 = 206

constERR_FORMATTERS

ERR_FORMATTERS: 201 = 201

constERR_INVALID_ADDRESS

ERR_INVALID_ADDRESS: 1005 = 1005

constERR_INVALID_BLOCK

ERR_INVALID_BLOCK: 1012 = 1012

constERR_INVALID_BOOLEAN

ERR_INVALID_BOOLEAN: 1008 = 1008

constERR_INVALID_BYTES

ERR_INVALID_BYTES: 1002 = 1002

constERR_INVALID_CLIENT

ERR_INVALID_CLIENT: 602 = 602

constERR_INVALID_HEX

ERR_INVALID_HEX: 1006 = 1006

constERR_INVALID_INTEGER

ERR_INVALID_INTEGER: 1015 = 1015

constERR_INVALID_KEYSTORE

ERR_INVALID_KEYSTORE: 708 = 708

constERR_INVALID_LARGE_VALUE

ERR_INVALID_LARGE_VALUE: 1011 = 1011

constERR_INVALID_METHOD_PARAMS

ERR_INVALID_METHOD_PARAMS: 207 = 207

constERR_INVALID_NIBBLE_WIDTH

ERR_INVALID_NIBBLE_WIDTH: 1014 = 1014

constERR_INVALID_NUMBER

ERR_INVALID_NUMBER: 1003 = 1003

constERR_INVALID_PASSWORD

ERR_INVALID_PASSWORD: 706 = 706

constERR_INVALID_PRIVATE_KEY

ERR_INVALID_PRIVATE_KEY: 702 = 702

constERR_INVALID_PROVIDER

ERR_INVALID_PROVIDER: 601 = 601

constERR_INVALID_RESPONSE

ERR_INVALID_RESPONSE: 101 = 101

constERR_INVALID_SIGNATURE

ERR_INVALID_SIGNATURE: 802 = 802

constERR_INVALID_SIZE

ERR_INVALID_SIZE: 1010 = 1010

constERR_INVALID_STRING

ERR_INVALID_STRING: 1001 = 1001

constERR_INVALID_TYPE

ERR_INVALID_TYPE: 1007 = 1007

constERR_INVALID_TYPE_ABI

ERR_INVALID_TYPE_ABI: 1013 = 1013

constERR_INVALID_UNIT

ERR_INVALID_UNIT: 1004 = 1004

constERR_INVALID_UNSIGNED_INTEGER

ERR_INVALID_UNSIGNED_INTEGER: 1009 = 1009

constERR_IV_LENGTH

ERR_IV_LENGTH: 707 = 707

constERR_KEY_DERIVATION_FAIL

ERR_KEY_DERIVATION_FAIL: 704 = 704

constERR_KEY_VERSION_UNSUPPORTED

ERR_KEY_VERSION_UNSUPPORTED: 705 = 705

constERR_METHOD_NOT_IMPLEMENTED

ERR_METHOD_NOT_IMPLEMENTED: 202 = 202

constERR_MULTIPLE_ERRORS

ERR_MULTIPLE_ERRORS: 208 = 208

constERR_OPERATION_ABORT

ERR_OPERATION_ABORT: 204 = 204

constERR_OPERATION_TIMEOUT

ERR_OPERATION_TIMEOUT: 203 = 203

constERR_PARAM

ERR_PARAM: 200 = 200

constERR_PBKDF2_ITERATIONS

ERR_PBKDF2_ITERATIONS: 709 = 709

constERR_PRIVATE_KEY_LENGTH

ERR_PRIVATE_KEY_LENGTH: 701 = 701

constERR_PROVIDER

ERR_PROVIDER: 600 = 600

constERR_RAW_TX_UNDEFINED

ERR_RAW_TX_UNDEFINED: 407 = 407

constERR_REQ_ALREADY_SENT

ERR_REQ_ALREADY_SENT: 507 = 507

constERR_RESPONSE

ERR_RESPONSE: 100 = 100

constERR_RPC_INTERNAL_ERROR

ERR_RPC_INTERNAL_ERROR: -32603 = -32603

constERR_RPC_INVALID_INPUT

ERR_RPC_INVALID_INPUT: -32000 = -32000

constERR_RPC_INVALID_JSON

ERR_RPC_INVALID_JSON: -32700 = -32700

constERR_RPC_INVALID_METHOD

ERR_RPC_INVALID_METHOD: -32601 = -32601

constERR_RPC_INVALID_PARAMS

ERR_RPC_INVALID_PARAMS: -32602 = -32602

constERR_RPC_INVALID_REQUEST

ERR_RPC_INVALID_REQUEST: -32600 = -32600

constERR_RPC_LIMIT_EXCEEDED

ERR_RPC_LIMIT_EXCEEDED: -32005 = -32005

constERR_RPC_MISSING_RESOURCE

ERR_RPC_MISSING_RESOURCE: -32001 = -32001

constERR_RPC_NOT_SUPPORTED

ERR_RPC_NOT_SUPPORTED: -32006 = -32006

constERR_RPC_TRANSACTION_REJECTED

ERR_RPC_TRANSACTION_REJECTED: -32003 = -32003

constERR_RPC_UNAVAILABLE_RESOURCE

ERR_RPC_UNAVAILABLE_RESOURCE: -32002 = -32002

constERR_RPC_UNSUPPORTED_METHOD

ERR_RPC_UNSUPPORTED_METHOD: -32004 = -32004

constERR_SCHEMA_FORMAT

ERR_SCHEMA_FORMAT: 1200 = 1200

constERR_SIGNATURE_FAILED

ERR_SIGNATURE_FAILED: 801 = 801

constERR_SUBSCRIPTION

ERR_SUBSCRIPTION: 603 = 603

constERR_TX

ERR_TX: 400 = 400

constERR_TX_BLOCK_TIMEOUT

ERR_TX_BLOCK_TIMEOUT: 432 = 432

constERR_TX_CHAIN_ID_MISMATCH

ERR_TX_CHAIN_ID_MISMATCH: 412 = 412

constERR_TX_CHAIN_MISMATCH

ERR_TX_CHAIN_MISMATCH: 435 = 435

constERR_TX_CONTRACT_NOT_STORED

ERR_TX_CONTRACT_NOT_STORED: 404 = 404

constERR_TX_DATA_AND_INPUT

ERR_TX_DATA_AND_INPUT: 425 = 425

constERR_TX_GAS_MISMATCH

ERR_TX_GAS_MISMATCH: 434 = 434

constERR_TX_GAS_MISMATCH_INNER_ERROR

ERR_TX_GAS_MISMATCH_INNER_ERROR: 441 = 441

constERR_TX_HARDFORK_MISMATCH

ERR_TX_HARDFORK_MISMATCH: 436 = 436

constERR_TX_INVALID_CALL

ERR_TX_INVALID_CALL: 409 = 409

constERR_TX_INVALID_CHAIN_INFO

ERR_TX_INVALID_CHAIN_INFO: 413 = 413

constERR_TX_INVALID_FEE_MARKET_GAS

ERR_TX_INVALID_FEE_MARKET_GAS: 417 = 417

constERR_TX_INVALID_FEE_MARKET_GAS_PRICE

ERR_TX_INVALID_FEE_MARKET_GAS_PRICE: 418 = 418

constERR_TX_INVALID_LEGACY_FEE_MARKET

ERR_TX_INVALID_LEGACY_FEE_MARKET: 419 = 419

constERR_TX_INVALID_LEGACY_GAS

ERR_TX_INVALID_LEGACY_GAS: 416 = 416

constERR_TX_INVALID_NONCE_OR_CHAIN_ID

ERR_TX_INVALID_NONCE_OR_CHAIN_ID: 421 = 421

constERR_TX_INVALID_OBJECT

ERR_TX_INVALID_OBJECT: 420 = 420

constERR_TX_INVALID_PROPERTIES_FOR_TYPE

ERR_TX_INVALID_PROPERTIES_FOR_TYPE: 439 = 439

constERR_TX_INVALID_RECEIVER

ERR_TX_INVALID_RECEIVER: 437 = 437

constERR_TX_INVALID_SENDER

ERR_TX_INVALID_SENDER: 408 = 408

constERR_TX_LOCAL_WALLET_NOT_AVAILABLE

ERR_TX_LOCAL_WALLET_NOT_AVAILABLE: 429 = 429

constERR_TX_MISSING_CHAIN_INFO

ERR_TX_MISSING_CHAIN_INFO: 414 = 414

constERR_TX_MISSING_CUSTOM_CHAIN

ERR_TX_MISSING_CUSTOM_CHAIN: 410 = 410

constERR_TX_MISSING_CUSTOM_CHAIN_ID

ERR_TX_MISSING_CUSTOM_CHAIN_ID: 411 = 411

constERR_TX_MISSING_GAS

ERR_TX_MISSING_GAS: 415 = 415

constERR_TX_MISSING_GAS_INNER_ERROR

ERR_TX_MISSING_GAS_INNER_ERROR: 440 = 440

constERR_TX_NOT_FOUND

ERR_TX_NOT_FOUND: 430 = 430

constERR_TX_NO_CONTRACT_ADDRESS

ERR_TX_NO_CONTRACT_ADDRESS: 403 = 403

constERR_TX_OUT_OF_GAS

ERR_TX_OUT_OF_GAS: 406 = 406

constERR_TX_POLLING_TIMEOUT

ERR_TX_POLLING_TIMEOUT: 426 = 426

constERR_TX_RECEIPT_MISSING_BLOCK_NUMBER

ERR_TX_RECEIPT_MISSING_BLOCK_NUMBER: 428 = 428

constERR_TX_RECEIPT_MISSING_OR_BLOCKHASH_NULL

ERR_TX_RECEIPT_MISSING_OR_BLOCKHASH_NULL: 427 = 427

constERR_TX_REVERT_INSTRUCTION

ERR_TX_REVERT_INSTRUCTION: 401 = 401

constERR_TX_REVERT_TRANSACTION

ERR_TX_REVERT_TRANSACTION: 402 = 402

constERR_TX_REVERT_TRANSACTION_CUSTOM_ERROR

ERR_TX_REVERT_TRANSACTION_CUSTOM_ERROR: 438 = 438

constERR_TX_REVERT_WITHOUT_REASON

ERR_TX_REVERT_WITHOUT_REASON: 405 = 405

constERR_TX_SEND_TIMEOUT

ERR_TX_SEND_TIMEOUT: 431 = 431

constERR_TX_SIGNING

ERR_TX_SIGNING: 433 = 433

constERR_TX_UNABLE_TO_POPULATE_NONCE

ERR_TX_UNABLE_TO_POPULATE_NONCE: 422 = 422

constERR_TX_UNSUPPORTED_EIP_1559

ERR_TX_UNSUPPORTED_EIP_1559: 423 = 423

constERR_TX_UNSUPPORTED_TYPE

ERR_TX_UNSUPPORTED_TYPE: 424 = 424

constERR_UNSUPPORTED_KDF

ERR_UNSUPPORTED_KDF: 703 = 703

constERR_VALIDATION

ERR_VALIDATION: 1100 = 1100

constERR_WS_PROVIDER

ERR_WS_PROVIDER: 604 = 604

constGENESIS_BLOCK_NUMBER

GENESIS_BLOCK_NUMBER: 0x0 = '0x0'

constJSONRPC_ERR_CHAIN_DISCONNECTED

JSONRPC_ERR_CHAIN_DISCONNECTED: 4901 = 4901

constJSONRPC_ERR_DISCONNECTED

JSONRPC_ERR_DISCONNECTED: 4900 = 4900

constJSONRPC_ERR_REJECTED_REQUEST

JSONRPC_ERR_REJECTED_REQUEST: 4001 = 4001

constJSONRPC_ERR_UNAUTHORIZED

JSONRPC_ERR_UNAUTHORIZED: 4100 = 4100

constJSONRPC_ERR_UNSUPPORTED_METHOD

JSONRPC_ERR_UNSUPPORTED_METHOD: 4200 = 4200

constRpcErrorMessages

RpcErrorMessages: {} = ...

Type declaration

  • [key number | string]: { description?: string; message: string; name?: string }

constgenericRpcErrorMessageTemplate

genericRpcErrorMessageTemplate: An Rpc error has occured with a code of *code* = 'An Rpc error has occured with a code of *code*'

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*

constrpcErrorsMap

rpcErrorsMap: Map<number, { error: typeof RpcError }> = ...
Page Options