Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

conflux-web-providers-http

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

conflux-web-providers-http

Module to handle conflux-web RPC connections over HTTP.

  • 1.2.2-alpha.0
  • npm
  • Socket score

Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

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

FAQs

Package last updated on 05 Sep 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc