Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

web3-core

Package Overview
Dependencies
Maintainers
4
Versions
496
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

web3-core - npm Package Versions

1
49

4.0.1-rc.2

Diff

Changelog

Source

[4.0.1-rc.2]

Added

web3-errors
  • InvalidPropertiesForTransactionTypeError with error code 429 (#6102)
web3-eth-contract
  • Added support for getPastEvents method to filter allEvents and specific event (#6010)
  • Added maxPriorityFeePerGas and maxFeePerGas in ContractOptions type and updated function using it in utils (#6118)
  • Added method's type autodetection by ABI param (#6137)
web3-types
  • Added filters param to the Filter type (#6010)
  • Added types JsonRpcSubscriptionResultOld, Web3ProviderMessageEventCallback. Added .on('data') type support for old providers (#6082)
  • Export for HardforksOrdered enum (#6102)
  • Export for Web3ValidationErrorObject type (#6102)
web3-utils
  • Optional hexstrict parameter added to numberToHex (#6004)

Fixed

web3-eth
  • Fixed ignoreGasPricing bug with wallet in context (#6071)
web3-eth-accounts
  • Fixed ESM import bugs reported in (#6032) and (#6034)
  • ESM projects will not need to run --experimental-specifier-resolution=node (#6127)

Changed

web3-core
  • Replaced Buffer for Uint8Array (#6004)
web3-errors
  • Nested Smart Contract error data is extracted at Eip838ExecutionError constructor and the nested error is set at innerError (#6045)
web3-eth
  • formatTransaction no longer throws a TransactionDataAndInputError if it's passed a transaction object with both data and input properties set (as long as they are the same value) (#6064)
  • Refactored documentation for rpc_method_wrappers to point to the previously duplicated documentation found under the Web3Eth class documentation (#6054)
  • Replaced Buffer for Uint8Array (#6004)
  • Refactored defaultTransactionTypeParser to return correct EIP-2718 types, prior implementation was prioritizing transaction.hardfork and ignoring the use of transaction.gasLimit. defaultTransactionTypeParser will now throw InvalidPropertiesForTransactionTypeErrors for properties are used that are incompatible with transaction.type (#6102)
  • prepareTransactionForSigning and defaultTransactionBuilder now accepts optional fillGasPrice flag and by default will not fill gas(#6071)
web3-eth-abi
  • Nested Smart Contract error data hex string is decoded when the error contains the data as object (when the data hex string is inside data.originalError.data or data.data) (#6045)
web3-eth-accounts
  • Replaced Buffer for Uint8Array (#6004)
  • The methods recover, encrypt, privateKeyToAddress does not support type Buffer but supports type Uint8Array (#6004)
  • The method parseAndValidatePrivateKey returns a type Uint8Array instead of type Buffer (#6004)
web3-providers-ipc
  • Replaced Buffer for Uint8Array (#6004)
web3-types
  • Removed chainId, to, data & input properties from NonPayableCallOptions
  • Replaced Buffer for Uint8Array (#6004)
  • types FMT_BYTES.BUFFER, Bytes and FormatType and encryption option types for salt and iv has replaced support for Buffer for Uint8Array (#6004)
  • Added internalType property to the AbiParameter type.
web3-utils
  • Replaced Buffer for Uint8Array (#6004)
  • The methods hexToBytes, randomBytes does not return type Buffer but type Uint8Array (#6004)
  • The methods sha3 and keccak256Wrapper does not accept type Buffer but type Uint8Array (#6004)
  • The method bytesToBuffer has been removed for the usage of bytesToUint8Array (#6004)
web3-validator
  • Replaced Buffer for Uint8Array (#6004)

Removed

web3-eth-ens
  • Removed non read-only methods (#6084)
web3-validator
  • Web3ValidationErrorObject type is now exported from web3-types package (#6102)
jdevcs
published 1.10.0 •

jdevcs
published 1.10.0-rc.0 •

jdevcs
published 4.0.1-rc.1 •

Changelog

Source

[4.0.1-rc.1]

Changed

web3
  • No need for polyfilling nodejs net and fs modules (#5978)
  • Removed IPC provider dependency, IPC path is no longer viable provider. If you wanna use IPC, please install web3-providers-ipc and instantiate provider yourself (#5978)
web3-core
  • If a transaction object with a data property is passed to txInputOptionsFormatter, it will now be replaced with input (#5915)
  • The types TransactionTypeParser and TransactionBuilder are now utilizing the type Transaction for the transaction object. (#5993)
  • No need for polyfilling nodejs net and fs modules (#5978)
  • Removed IPC provider dependency, IPC path is no longer viable provider. If you wanna use IPC, please install web3-providers-ipc and instantiate provider yourself (#5978)
web3-errors
  • gasLimit is no longer accepted as a parameter for MissingGasError and `TransactionGasMismatchError, and is also no longer included in error message (#5915)
web3-eth
  • signTransaction will now return gas instead of gasLimit for returned transaction object regardless of what property name the provider uses (#5915)
  • formatTransaction will now replace data transaction property with input (#5915)
  • isTransactionCall will now check if value.input isHexStrict if provided (#5915)
  • The functions defaultTransactionBuilder and transactionBuilder are now utilizing the type Transaction for the transaction object. (#5993)
web3-eth-accounts
  • Moved @ethereumjs/tx, @ethereumjs/common code to our source code (#5963)
  • The method signTransaction returned by privateKeyToAccount is now accepting the type Transaction for its argument. (#5993)
web3-eth-contract
  • getSendTxParams will now return input instead of data in returned transaction parameters object (#5915)
  • Contract constructor will now thrown new ContractTransactionDataAndInputError if both data and input are passed in ContractInitOptions for Contract constructor (#5915)
  • The types ContractInitOptions, NonPayableCallOptions and PayableCallOptions are moved to web3-types. (#5993)
web3-types
  • data property in TransactionOutput was renamed to input (#5915)
  • The method signTransaction inside Web3BaseWalletAccount is now utilizing the type Transaction for its argument. (#5993)
  • The types FMT_NUMBER, NumberTypes, FMT_BYTES, ByteTypes, DataFormat, DEFAULT_RETURN_FORMAT, ETH_DATA_FORMAT and FormatType moved from web3-utils. (#5993)
  • The types ContractInitOptions, NonPayableCallOptions and PayableCallOptions are moved from web3-eth-contract. (#5993)
web3-utils
  • The types FMT_NUMBER, NumberTypes, FMT_BYTES, ByteTypes, DataFormat, DEFAULT_RETURN_FORMAT, ETH_DATA_FORMAT and FormatType moved to web3-types. (#5993)

Added

web3
  • Added source files (#5956)
  • Added hybrid build (ESM and CJS) of library (#5904)
web3-core
  • Added hybrid build (ESM and CJS) of library (#5904)
  • Added source files (#5956)
web3-errors
  • Added hybrid build (ESM and CJS) of library (#5904)
  • Added source files (#5956)
web3-eth
  • Added source files (#5956)
web3-eth-abi
  • Added hybrid build (ESM and CJS) of library (#5904)
  • Added source files (#5956)
web3-eth-accounts
  • Added source files (#5956)
  • Added hybrid build (ESM and CJS) of library (#5904)
web3-eth-contract
  • input is now an acceptable property for ContractInitOptions in place of data (either can be used, but input is used withing the Contract class) (#5915)
  • Added source files (#5956)
  • Added hybrid build (ESM and CJS) of library (#5904)
web3-eth-ens
  • Added source files (#5956)
  • Added hybrid build (ESM and CJS) of library (#5904)
web3-eth-iban
  • Added source files (#5956)
  • Added hybrid build (ESM and CJS) of library (#5904)
web3-eth-personal
  • Added source files (#5956)
  • Added hybrid build (ESM and CJS) of library (#5904)
web3-net
  • Added source files (#5956)
  • Added hybrid build (ESM and CJS) of library (#5904)
web3-providers-http
  • Added source files (#5956)
  • Added hybrid build (ESM and CJS) of library (#5904)
web3-providers-ipc
  • Added source files (#5956)
  • Added hybrid build (ESM and CJS) of library (#5904)
web3-providers-ws
  • Added source files (#5956)
  • Added hybrid build (ESM and CJS) of library (#5904)
web3-rpc-methods
  • Added source files (#5956)
  • Added hybrid build (ESM and CJS) of library (#5904)
web3-types
  • Added hybrid build (ESM and CJS) of library (#5904)
  • Added source files (#5956)
web3-utils
  • Added source files (#5956)
  • Added hybrid build (ESM and CJS) of library (#5904)
web3-validator
  • Added source files (#5956)
  • Added hybrid build (ESM and CJS) of library (#5904)
  • Added functions isHexString, isHexPrefixed, validateNoLeadingZeroes (#5963)

Removed

web3-core
  • getConfig method from Web3Config class, config is now public and accessible using Web3Config.config (#5950)
web3-eth
  • Removed dependencies @ethereumjs/tx, @ethereumjs/common (#5963)
web3-eth-abi
  • Removed formatDecodedObject function (#5934)
web3-eth-contract
  • data was removed as a property of ContractOptions type (#5915)
web3-utils
  • Removed dependencies @ethereumjs/tx, @ethereumjs/common (#5963)

Fixed

web3-eth-ens
  • Bug fix of checkNetwork in ENS (#5988)
jdevcs
published 1.9.0 •

jdevcs
published 4.0.1-rc.0 •

Changelog

Source

[4.0.1-rc.0]

Added

web3
  • registeredSubscriptions was added by default in web3 constructor (#5792)
  • Add named exports for all objects which are the default-exported-object in their packages (#5771)
  • Export all packages' objects organized by namespaces (#5771)
  • Add Additional flat exports for all types and constants from web3-types, web3-errors and web3. (#5771)
  • Fix few issues with new Web3().eth.contract (#5824)
web3-core
  • Added rpc exception codes following eip-1474 as an experimental feature (if useRpcCallSpecification at enableExperimentalFeatures is true) (#5525)
  • Added support of safe and finalized block tags (#5823)
web3-errors
  • Added error class InvalidMethodParamsError and error code ERR_INVALID_METHOD_PARAMS = 207 (#5824)
  • request property to ResponseError (#5854)
  • data property to TransactionRevertInstructionError (#5854)
  • TransactionRevertWithCustomError was added to handle custom solidity errors (#5854)
web3-eth
  • Added createAccessList functionality ( #5780 )
  • Added support of safe and finalized block tags (#5823)
  • contractAbi option to SendTransactionOptions and SendSignedTransactionOptions to added the ability to parse custom solidity errors (#5854)
web3-eth-abi
  • decodeErrorData from web3-eth-contract is now exported from this package and was renamed to decodeContractErrorData (#5844)
web3-eth-contract
  • Added functionality of createAccessList for contracts ( #5780 )
  • An instance of Contract will subscribeToContextEvents upon instantiation if syncWithContext is set to true and the constructor is passed an instance of Web3Context (#5833)
  • Added support of safe and finalized block tags (#5823)
web3-providers-http
  • Added named export for HttpProvider (#5771)
web3-providers-ipc
  • Added named export for IpcProvider (#5771)
  • Pass _socketOptions from IpcProvider constructor to the underlying Socket (#5891)
  • The getter of SocketConnection in IpcProvider (inherited from SocketProvider) returns net.Socket (#5891)
web3-providers-ws
  • Added named export for WebSocketProvider (#5771)
  • The getter of SocketConnection in WebSocketProvider (inherited from SocketProvider) returns isomorphic WebSocket (#5891)
web3-rpc-methods
  • Added createAccessList functionality ( #5780 )
  • Added support of safe and finalized block tags (#5823)
web3-types
  • Added types from web3-eth-abi and TypedArray from (#5771)
  • Added TypedArray from web3-utils and web3-validator (it was defined twice) (#5771)
  • Added safe and finalized block tags in BlockTags and BlockTag types (#5823)
web3-utils
  • Added support of safe and finalized block tags (#5823)
web3-validator
  • Added support of safe and finalized block tags in isBlockTag method (#5823)

Changed

web3
  • require('web3') will now return all web3 exported-objects organized in namespaces . (#5771)
web3-errors
  • The abstract class Web3Error is renamed to BaseWeb3Error (#5771)
  • Renamed TransactionRevertError to TransactionRevertInstructionError to remain consistent with 1.x
  • Using MaxAttemptsReachedOnReconnectingError with the same message for 1.x but also adding the maxAttempts (#5894)
web3-eth
  • Update imports statements for objects that was moved between web3 packages (#5771)
  • sendTransaction and sendSignedTransaction now errors with (and error event emits) the following possible errors: TransactionRevertedWithoutReasonError, TransactionRevertInstructionError, TransactionRevertWithCustomError, InvalidResponseError, or ContractExecutionError (#5854)
web3-eth-accounts
  • Updated dependencies (#5912)
web3-eth-contract
  • Update imports statements for objects that was moved between web3 packages (#5771)
web3-eth-ens
  • Updated dependencies (#5912)
web3-eth-iban
  • Updated dependencies (#5912)
web3-eth-personal
  • Updated dependencies (#5912)
web3-net
  • Updated dependencies (#5912)
web3-utils
  • compareBlockNumbers function now only supports comparison of both blocktags params ( except earliest vs number) or both block number params (#5842)
  • SocketProvider abstract class now resolves JSON RPC response errors instead of rejecting them (#5844)
  • Exposes the getter of SocketConnection in SocketProvider (#5891)

Removed

web3
  • Private static _contracts:Contract[] and static setProvider function was removed (#5792)
web3-eth
  • getRevertReason is no longer exported (#5844)
web3-eth-abi
  • Moved all types and interfaces to web3-types (#5771)
web3-eth-contract
  • decodeErrorData is no longer exported (method was moved to web3-eth-abi and renamed decodeContractErrorData) (#5844)
web3-utils
  • Moved TypedArray to web3-types (was also duplicated at web3-validator) (#5771)
  • Removed support of genesis tag in compareBlockNumbers function (#5823)
web3-validator
  • Moved TypedArray to web3-types (was also duplicated at web3-utils) (#5771)

Fixed

web3-eth-contract
  • Fix contract defaults (#5756)
  • Fixed getPastEventsError (#5819)
jdevcs
published 1.9.0-rc.0 •

jdevcs
published 1.8.2 •

spacesailor
published 4.0.1-alpha.5 •

Changelog

Source

[4.0.1-alpha.5]

Removed

web3
  • build entry from package.json (#5755)
web3-validator
  • build entry from package.json (#5755)

Changed

web3-core
  • web3.js dependencies (#5757)
web3-errors
  • web3.js dependencies (#5757)
web3-eth
  • web3.js dependencies (#5757)
web3-eth-abi
  • web3.js dependencies (#5757)
web3-eth-accounts
  • web3.js dependencies (#5757)
web3-eth-contract
  • web3.js dependencies (#5757)
web3-eth-ens
  • web3.js dependencies (#5757)
web3-eth-iban
  • web3.js dependencies (#5757)
web3-eth-personal
  • web3.js dependencies (#5757)
web3-eth-net
  • web3.js dependencies (#5757)
web3-providers-http
  • web3.js dependencies (#5757)
web3-providers-ipc
  • web3.js dependencies (#5757)
web3-providers-ws
  • web3.js dependencies (#5757)
web3-rpc-methods
  • web3.js dependencies (#5757)
web3-utils
  • web3.js dependencies (#5757)

Fixed

web3-eth
  • Enable transaction with local wallet index in the to field (#5731)

Added

web3-types
  • Add TransactionWithFromLocalWalletIndex, TransactionWithToLocalWalletIndex and TransactionWithFromAndToLocalWalletIndex types (#5731)
spacesailor
published 4.0.1-alpha.4 •

Changelog

Source

[4.0.1-alpha.4]

Changed

web3
  • tsc compiled files moved to lib/ directory from dist/ (#5739)
web3-core
  • tsc compiled files moved to lib/ directory from dist/ (#5739)
web3-errors
  • main and files entries in package.json changed to lib/ directory from dist/ (#5739)
web3-eth
  • tsc compiled files moved to lib/ directory from dist/ (#5739)
web3-eth-abi
  • tsc compiled files moved to lib/ directory from dist/ (#5739)
web3-eth-accounts
  • tsc compiled files moved to lib/ directory from dist/ (#5739)
web3-eth-contract
  • tsc compiled files moved to lib/ directory from dist/ (#5739)
web3-eth-ens
  • main and files entries in package.json changed to lib/ directory from dist/ (#5739)
web3-eth-iban
  • main and files entries in package.json changed to lib/ directory from dist/ (#5739)
web3-eth-personal
  • tsc compiled files moved to lib/ directory from dist/ (#5739)
web3-net
  • tsc compiled files moved to lib/ directory from dist/ (#5739)
web3-providers-http
  • main and files entries in package.json changed to lib/ directory from dist/ (#5739)
web3-providers-ipc
  • tsc compiled files moved to lib/ directory from dist/ (#5739)
web3-providers-ws
  • main and files entries in package.json changed to lib/ directory from dist/ (#5739)
web3-rpc-methods
  • main and files entries in package.json changed to lib/ directory from dist/ (#5739)
web3-types
  • tsc compiled files moved to lib/ directory from dist/ (#5739)
web3-utils
  • tsc compiled files moved to lib/ directory from dist/ (#5739)
web3-validator
  • tsc compiled files moved to lib/ directory from dist/ (#5739)
web3-providers-ipc
  • Refactor to use common SocketProvider class (#5683)
web3-providers-ws
  • Refactor to use common SocketProvider class (#5683)
web3-utils
  • Add SocketProvider class and Eip1193Provider abstract class (#5683)
web3-types
  • These types were added: ProviderRpcError, EthSubscription, ProviderMessage, ProviderConnectInfo (#5683)
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc