Security News
The Dark Side of Open Source
At Node Congress, Socket CEO Feross Aboukhadijeh uncovers the darker aspects of open source, where applications that rely heavily on third-party dependencies can be exploited in supply chain attacks.
web3-providers-http
Advanced tools
Changelog
[1.3.6]
underscore
package from 1.9.1
to 1.12.1
(#4051)@ensdomains/ens
package from ^0.4.5
to ^0.6.0
(#4059)ethers
package from ^5.0.18
to ^5.1.4
(#4059)Readme
This is a HTTP provider sub-package for web3.js.
Please read the documentation for more.
npm install web3-providers-http
const http = require('http');
const Web3HttpProvider = require('web3-providers-http');
const options = {
keepAlive: true,
timeout: 20000, // milliseconds,
headers: [{name: 'Access-Control-Allow-Origin', value: '*'},{...}],
withCredentials: false,
agent: {http: http.Agent(...), baseUrl: ''}
};
const provider = new Web3HttpProvider('http://localhost:8545', options);
All the TypeScript typings are placed in the types
folder.
FAQs
HTTP provider for Web3 4.x.x
The npm package web3-providers-http receives a total of 391,200 weekly downloads. As such, web3-providers-http popularity was classified as popular.
We found that web3-providers-http demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 open source maintainers collaborating on the project.
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.
Security News
At Node Congress, Socket CEO Feross Aboukhadijeh uncovers the darker aspects of open source, where applications that rely heavily on third-party dependencies can be exploited in supply chain attacks.
Research
Security News
The Socket Research team found this npm package includes code for collecting sensitive developer information, including your operating system username, Git username, and Git email.
Security News
OpenJS is warning of social engineering takeovers targeting open source projects after receiving a credible attempt on the foundation.