1.3.13420 • Published 4 years ago

xdc3-providers-http v1.3.13420

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

xdc3-providers-http

NPM Package Dependency Status Dev Dependency Status

This is a HTTP provider sub-package for xdc3.

Please read the documentation for more.

Installation

Node.js

npm install xdc3-providers-http

Usage

const http = require('http');
const Web3HttpProvider = require('xdc3-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.13420

4 years ago

1.3.13414

4 years ago

1.3.13416

4 years ago

1.2.136

4 years ago

1.2.135

4 years ago

1.3.13409

4 years ago

1.3.13408

4 years ago

1.3.134

4 years ago

1.3.13412

4 years ago

1.3.13401

4 years ago

1.3.133

5 years ago

1.3.2-alpha.0

5 years ago

1.3.1-alpha.1

5 years ago

1.0.0-beta.36

6 years ago