conflux-web-providers-http

Module to handle conflux-web RPC connections over HTTP.

useless version
Last updated a year ago by liuis .
LGPL-3.0 · Original npm · Tarball · package.json
$ cnpm install conflux-web-providers-http 
SYNC missed versions from official npm registry.

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

Current Tags

  • 1.2.2-alpha.1                                ...           latest (a year ago)

2 Versions

  • 1.2.2-alpha.1 [deprecated]           ...           a year ago
  • 1.2.2-alpha.0                                ...           a year ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 1
Last Month 3
Dependencies (2)
Dev Dependencies (0)
None

Copyright 2014 - 2016 © taobao.org |