Collection of comprehensive TypeScript libraries for Interaction with the Ethereum JSON RPC API and utility functions.
crypto-browserify
module is now used only in webpack builds for polyfilling browsers (#5629)ethereumjs-util
to 7.1.5
(#5629)lerna
4 to version 6 (#5680)web3.utils._jsonInterfaceMethodToString
(#5550)clean-webpack-plugin
has been removed from dev-dependencies (#5629)https-browserify
, process
, stream-browserify
, stream-http
, crypto-browserify
added to dev-dependencies for polyfilling (#5629)readable-stream
to dev-dependancies for webpack (#5629)npm audit fix
for libraries update (#5726)build
entry from package.json
(#5755)build
entry from package.json
(#5755)to
field (#5731)TransactionWithFromLocalWalletIndex
, TransactionWithToLocalWalletIndex
and TransactionWithFromAndToLocalWalletIndex
types (#5731)tsc
compiled files moved to lib/
directory from dist/
(#5739)tsc
compiled files moved to lib/
directory from dist/
(#5739)main
and files
entries in package.json
changed to lib/
directory from dist/
(#5739)tsc
compiled files moved to lib/
directory from dist/
(#5739)tsc
compiled files moved to lib/
directory from dist/
(#5739)tsc
compiled files moved to lib/
directory from dist/
(#5739)tsc
compiled files moved to lib/
directory from dist/
(#5739)main
and files
entries in package.json
changed to lib/
directory from dist/
(#5739)main
and files
entries in package.json
changed to lib/
directory from dist/
(#5739)tsc
compiled files moved to lib/
directory from dist/
(#5739)tsc
compiled files moved to lib/
directory from dist/
(#5739)main
and files
entries in package.json
changed to lib/
directory from dist/
(#5739)tsc
compiled files moved to lib/
directory from dist/
(#5739)main
and files
entries in package.json
changed to lib/
directory from dist/
(#5739)main
and files
entries in package.json
changed to lib/
directory from dist/
(#5739)tsc
compiled files moved to lib/
directory from dist/
(#5739)tsc
compiled files moved to lib/
directory from dist/
(#5739)tsc
compiled files moved to lib/
directory from dist/
(#5739)crypto-browserify
module is now used only in webpack builds for polyfilling browsers (#5629)ethereumjs-util
to 7.1.5
(#5629)lerna
4 to version 6 (#5680)web3.utils._jsonInterfaceMethodToString
(#5550)clean-webpack-plugin
has been removed from dev-dependencies (#5629)https-browserify
, process
, stream-browserify
, stream-http
, crypto-browserify
added to dev-dependencies for polyfilling (#5629)readable-stream
to dev-dependancies for webpack (#5629)npm audit fix
for libraries update (#5726)web3-validator
package within browser environments (Webpack minified filename changed from index.min.js
to web3-validator.min.js
) (#5710)web3-eth-accounts
to web3-types
package: Cipher, CipherOptions, ScryptParams, PBKDF2SHA256Params, KeyStore (#5581 )uuidV4
that generates a random v4 Uuid (#5373).id
(#5652).isPromise
that checks if an object is a promise (#5652).SpecialOutput
type was added as a generic type into the call function to support reassigning output types (#5631)ContractOverloadedMethodInputs
, ContractOverloadedMethodOutputs
) was added (#5631)fromBlock
when passed to contract.events.someEventName
(#5201)ContractOptions
-> jsonInterface
setter and getter (#5474)Contract
constructor where provider
wasn't being set when provided within the optionsOrContextOrReturnFormat
argument (#5669)request
method of EIP1193Provider
class, compatible with EIP 1193 (#5591)isHex
returning false
for -123
, fix isHexStrict
returning true
for -0x
, and fix isHex
returning true
for empty strings `` (#5373).web3-eth-accounts
to web3-types
package: Cipher, CipherOptions, ScryptParams, PBKDF2SHA256Params, KeyStore (#5581 )execution reverted
, raise ContractExecutionError
and pass the response error to it in order to be set as innerError
(this innerError will be decoded at web3-eth-contract if its ABI was provided according to EIP-838). (#5434)enableExperimentalFeatures
. (#5481)registerPlugin
method to Web3Context
(#5393)Web3PluginBase
exported abstract class (#5393)Web3EthPluginBase
exported abstract class (#5393)innerError
property to the abstract class Web3Error
. This innerError
could be Error
, Error[]
or undefined
. (#5435) (#5434)Web3ContractError
is moved to this package from web3-eth-contract
. (#5434)ERR_TX_SIGNING
and used it inside TransactionSigningError
(#5462)ERR_TX_GAS_MISMATCH
and used it inside TransactionGasMismatchError
(#5462)SignatureError
to web3-errors/src/errors/signature_errors.ts
(moved from web3-eth/src/errors.ts
) (#5462)web3-errors/src/errors/transaction_errors.ts
from web3-eth/src/errors.ts
(#5462)TransactionBlockTimeoutError
class and its error code ERR_TX_BLOCK_TIMEOUT
(#5294)ExistingPluginNamespaceError
class and it's error code ERR_EXISTING_PLUGIN_NAMESPACE
(#5393)web3-rpc-methods
dependency (#5441)validateTransactionForSigning
innerError
inside the error class AbiError
. (#5435)web3-eth-contract
, when decoding error data according to EIP-838. (#5434)Web3ContractError
is moved from this package to web3-error
. (#5434)requestManager
(#5393)pollTillDefined
, rejectIfTimeout
and rejectIfConditionAtInterval
which are useful when dealing with promises that involves polling, rejecting after timeout or rejecting if a condition was met when calling repeatably at every time intervals.web3-rpc-methods
dependency (#5441)web3-rpc-methods
dependency (#5441)Web3EthExecutionAPI
export (#5441)Web3NetAPI
export (#5441)EthPersonalAPI
export (#5441)API
generic for Web3ContextObject
from any
to unknown
(#5393)API
generic for Web3ContextInitOptions
from any
to unknown
(#5393)defaultHardfork
and defaultCommon.hardfork
are different in web3configdefaultChain
and defaultCommon.basechain
are different in web3configenableExperimentalFeatures
. (#5481)SignerError
from web3-errors/src/errors/signature_errors.ts
to web3-errors/src/errors/transaction_errors.ts
, and renamed it to TransactionSigningError
(#5462)JSONRPC_ERR_UNAUTHORIZED
to be 4100
(#5462)Web3EthExecutionAPI
is now imported via web3-types
instead of web3_eth_execution_api.ts
(#5441)rpc_methods.ts
with ethRpcMethods
imports from web3-rpc-methods
(#5441)Web3NetAPI
is now imported from web3-types
instead of web3-net
(#5441)rpc_methods
tests to web3-rpc-methods
(#5441)transactionBlockTimeout
(#5294)rejectIfBlockTimeout
when the provider supports subscription. Implement this as an experimental feature (if useSubscriptionWhenCheckingBlockTimeout
at enableExperimentalFeatures
is true
). (#5481)signTransaction
and privateKeyToAccount
will throw TransactionSigningError
instead of SignerError
now (#5462)Web3NetAPI
is now imported from web3-types
instead of web3-net
(#5441)EthPersonalAPI
from web3-types
instead of local import (#5441)rcp_methods.ts
with personalRpcMethods
imports from web3-rpc-methods
(#5441)EthPersonalAPIManager
with Web3RequestManager<EthPersonalAPI>
(#5441)Web3NetAPI
is now imported from web3-types
instead of web3_net_api.ts
(#5441)rpc_methods.ts
with netRpcMethods
imports from web3-rpc-methods
(#5441)Web3APISpec
, Web3APIMethod
, and Web3APIParams
now supports unknown
APIs (#5393)JSONRPC_ERR_UNAUTHORIZED
to be 4100
(#5462)getBlock
returning empty transactions object on hydrated
true (#5556)web3-eth-abi
, the decoded values of the large numbers, returned from function calls or events, are now available as BigInt
. (#5435)BigInt
instead of string
when decoding function parameters for large numbers, such as uint256
. (#5435)Web3APISpec
, Web3APIMethod
, and Web3APIParams
now supports unknown
APIs (#5393)web3-eth/src/errors.ts
to web3-errors/src/errors/transaction_errors.ts
(#5462)EthPersonalAPIManager
, EthPersonalAPI
is not exported via web3-types
(#5441)rpcMethods
export, these methods are now exported via web3-rpc-methods
as netRpcMethods
(#5441)Web3NetAPI
export, now exported via web3-types
as Web3NetAPI
(#5441)toJSON()
in Web3ValidatorError
class as its available via base class (#5435)sha3
and sha3Raw
type definition to accept Buffer
(#5357)eth_sendSignedTransaction
code example (#5402)web3-eth-contract
's call
and send
methods no longer mutate options
argument (#5394)AbiType
(#5165)safe
and finalized
block tags added (#5410)