1.3.30 • Published 4 years ago

@sipc/web3-providers-http v1.3.30

Weekly downloads
17
License
LGPL-3.0
Repository
github
Last release
4 years ago

web3-providers-http

NPM Package Dependency Status Dev Dependency Status

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.

1.3.30

4 years ago

1.3.21

4 years ago

1.3.24

4 years ago

1.3.25

4 years ago

1.3.22

4 years ago

1.3.23

4 years ago

1.3.28

4 years ago

1.3.17

4 years ago

1.3.26

4 years ago

1.3.27

4 years ago

1.3.10

4 years ago

1.3.9

4 years ago

1.3.8

4 years ago

1.3.12

4 years ago

1.3.5

4 years ago