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.2.9]
sending
and sent
events for tx submissions (#3438)latestBlockHash
arg to confirmation
event handler payload (#3438)method.encodeABI
(#3549)transactionPollingTimeout
(#3513)@web3-js/scrypt-shim@0.1.0
to scrypt-js@3.0.1
account.hashMessage
with non-ASCII characters (#3523)handleRevert
added (#3452)method.call
description (#3558)Readme
This is a sub-package of web3.js.
This is a HTTP provider for web3.js.
Please read the documentation for more.
npm install web3-providers-http
Build running the following in the web3.js repository:
npm run-script build-all
Then include dist/web3-providers-http.js
in your html file.
This will expose the Web3HttpProvider
object on the window object.
// in node.js
var http = require('http');
var Web3HttpProvider = require('web3-providers-http');
var options = {
keepAlive: true,
timeout: 20000, // milliseconds,
headers: [{name: 'Access-Control-Allow-Origin', value: '*'},{...}],
withCredentials: false,
agent: {http: http.Agent(...), baseUrl: ''}
};
var 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 470,135 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.