web3gnc-providers-http
This is a HTTP provider sub-package for web3.js.
Please read the documentation for more.
Installation
Node.js
npm install web3gnc-providers-http
Usage
const http = ;const Web3HttpProvider = ; const options = keepAlive: true timeout: 20000 // milliseconds, headers: name: 'Access-Control-Allow-Origin' value: '*'... withCredentials: false agent: http: http baseUrl: ''; const provider = 'http://localhost:8545' options;
Types
All the TypeScript typings are placed in the types
folder.