tornado-cli/local_modules/web3-providers-http
dependabot[bot] a2c0ebfd31
Bump minimist from 1.2.5 to 1.2.6 in /local_modules/web3-providers-http
Bumps [minimist](https://github.com/substack/minimist) from 1.2.5 to 1.2.6.
- [Release notes](https://github.com/substack/minimist/releases)
- [Commits](https://github.com/substack/minimist/compare/1.2.5...1.2.6)

---
updated-dependencies:
- dependency-name: minimist
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-01 08:00:42 +00:00
..
lib Add local modules to fix http headers privacy problem 2021-12-08 01:52:08 +09:00
local_modules/xhr2-cookies Use merkle tree from npm & remove ./lib 2022-02-27 07:32:24 +09:00
src Add local modules to fix http headers privacy problem 2021-12-08 01:52:08 +09:00
types Add local modules to fix http headers privacy problem 2021-12-08 01:52:08 +09:00
README.md Add local modules to fix http headers privacy problem 2021-12-08 01:52:08 +09:00
package-lock.json Bump minimist from 1.2.5 to 1.2.6 in /local_modules/web3-providers-http 2022-04-01 08:00:42 +00:00
package.json Use merkle tree from npm & remove ./lib 2022-02-27 07:32:24 +09:00
tsconfig.json Use merkle tree from npm & remove ./lib 2022-02-27 07:32:24 +09:00

README.md

web3-providers-http

NPM Package Dependency Status Dev Dependency Status

Package forked from https://github.com/ChainSafe/web3.js/tree/v1.6.1/packages/web3-providers-http to change http headers

This is a HTTP provider sub-package for web3.js.

Please read the documentation for more.

Installation

Node.js

npm install web3-providers-http

Usage

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);

Types

All the TypeScript typings are placed in the types folder.