This package has been deprecated

Author message:

useless version

conflux-web-providers-http

1.2.2-alpha.1 • Public • Published

conflux-web-providers-http

This is a sub package of conflux-web

This is a HTTP provider for conflux-web.
Please read the documentation for more.

Installation

Node.js

npm install conflux-web-providers-http

In the Browser

Build running the following in the conflux-web repository:

npm run-script build-all

Then include dist/conflux-web-providers-http.js in your html file. This will expose the ConfluxWebHttpProvider object on the window object.

Usage

// in node.js
var ConfluxWebHttpProvider = require('conflux-web-providers-http');

var options = {
    timeout: 20000, // milliseconds,
    headers: [{name: 'Access-Control-Allow-Origin', value: '*'},{...}]
};
var http = new ConfluxWebHttpProvider('http://localhost:8545', options);

Readme

Keywords

none

Package Sidebar

Install

npm i conflux-web-providers-http

Weekly Downloads

1

Version

1.2.2-alpha.1

License

LGPL-3.0

Unpacked Size

5.51 kB

Total Files

4

Last publish

Collaborators

  • liuis