Security News
How Threat Actors are Abusing GitHub’s File Upload Feature to Host Malware
GitHub is susceptible to a CDN flaw that allows attackers to host malware on any public repository.
web3-providers-http
Advanced tools
Changelog
[1.7.5]
maxFeePerGas
and maxPriorityFeePerGas
(#5121)createAccessList
types in web3.eth (#5146)AbstractProvider
interface (#5150)got
lib version and fixed other libs using npm audit fix (#5178) (#5254)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 395,431 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
GitHub is susceptible to a CDN flaw that allows attackers to host malware on any public repository.
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.