Socket
Socket
Sign inDemoInstall

web3-providers-http

Package Overview
Dependencies
43
Maintainers
4
Versions
355
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    web3-providers-http

HTTP provider for Web3 4.x.x


Version published
Weekly downloads
481K
decreased by-3.77%
Maintainers
4
Install size
7.53 MB
Created
Weekly downloads
 

Changelog

Source

[4.1.0]

Added

web3
  • Added minimum support of web3.extend function
web3-core
  • Added minimum support of web3.extend function
web3-errors
  • RpcErrorMessages that contains mapping for standard RPC Errors and their messages. (#6230)
  • created TransactionGasMismatchInnerError for clarity on the error in TransactionGasMismatchError (#6215)
  • created MissingGasInnerError for clarity on the error in MissingGasError (#6215)
web3-eth
  • A rpc_method_wrapper (signTypedData) for the rpc calls eth_signTypedData and eth_signTypedData_v4 (#6286)
  • A signTypedData method to the Web3Eth class (#6286)
web3-eth-abi
  • A getEncodedEip712Data method that takes an EIP-712 typed data object and returns the encoded data with the option to also keccak256 hash it (#6286)
web3-rpc-methods
  • A signTypedData method to eth_rpc_methods for the rpc calls eth_signTypedData and eth_signTypedData_v4 (#6286)
web3-types
  • eth_signTypedData and eth_signTypedData_v4 to web3_eth_execution_api (#6286)
  • Eip712TypeDetails and Eip712TypedData to eth_types (#6286)
web3-validator
  • Added json-schema as a main json schema type (#6264)

Fixed

web3-core
  • Fixed the issue: "Version 4.x does not fire connected event for subscriptions. #6252". (#6262)
web3-errors
  • Fixed: "'disconnect' in Eip1193 provider must emit ProviderRpcError #6003".(#6230)
web3-eth
  • sendTransaction will have gas filled by default using method estimateGas unless transaction builder options.fillGas is false. (#6249)
  • Missing blockHeaderSchema properties causing some properties to not appear in response of newHeads subscription (#6243)
  • Missing blockHeaderSchema properties causing some properties to not appear in response of newHeads subscription (#6243)
web3-providers-ws
  • Ensure a fixed version for "@types/ws": "8.5.3" (#6309)

Changed

web3-core
  • No need to pass CommonSubscriptionEvents & at every child class of Web3Subscription (#6262)
  • Implementation of _processSubscriptionResult and _processSubscriptionError has been written in the base class Web3Subscription and maid public. (#6262)
  • A new optional protected method formatSubscriptionResult could be used to customize data formatting instead of re-implementing _processSubscriptionResult. (#6262)
  • No more needed to pass CommonSubscriptionEvents & for the first generic parameter of Web3Subscription when inheriting from it. (#6262)
web3-eth
  • MissingGasError error message changed for clarity (#6215)
  • input and data are no longer auto populated for transaction objects if they are not present. Instead, whichever property is provided by the user is formatted and sent to the RPC provider. Transaction objects returned from RPC responses are still formatted to contain both input and data properties (#6294)
web3-eth-accounts
  • Dependencies updated
web3-eth-contract
  • Dependencies updated
web3-eth-ens
  • Dependencies updated
web3-eth-iban
  • Dependencies updated
web3-eth-personal
  • Dependencies updated
web3-net
  • Dependencies updated
web3-providers-http
  • Dependencies updated
web3-providers-ipc
  • Dependencies updated
web3-types
  • input and data are now optional properties on PopulatedUnsignedBaseTransaction (previously input was a required property, and data was not available) (#6294)
web3-utils
  • Dependencies updated
web3-validator
  • Replace is-my-json-valid with zod dependency. Related code was changed (#6264)
  • Types ValidationError and JsonSchema were changed (#6264)

Removed

web3-eth
  • Missing blockHeaderSchema properties causing some properties to not appear in response of newHeads subscription (#6243)
  • Type RawValidationError was removed (#6264)
web3-validator
  • Type RawValidationError was removed (#6264)

Readme

Source

web3.js

web3.js - Http Provider

ES Version Node Version NPM Package Downloads

This is a sub-package of web3.js.

web3-providers-http contains the Web3.js provider for the HTTP protocol.

Installation

You can install the package either using NPM or using Yarn

Using NPM

npm install web3-providers-http

Using Yarn

yarn add web3-providers-http

Getting Started

Prerequisites

Package.json Scripts

ScriptDescription
cleanUses rimraf to remove dist/
buildUses tsc to build package and dependent packages
lintUses eslint to lint package
lint:fixUses eslint to check and fix any warnings
formatUses prettier to format the code
testUses jest to run unit tests
test:integrationUses jest to run tests under /test/integration
test:unitUses jest to run tests under /test/unit

FAQs

Last updated on 18 Oct 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc