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

sgcweb3

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sgcweb3

SGC JavaScript API wrapper repository

  • 1.0.0-sgc-beta-26
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

PREVIEW RELEASE This is a copy of original web3, changed as per SGC requirements!

SGCweb3.js - SGC JavaScript API

You need to run a local or remote SGC node to use this library.

Installation

Node

npm install sgcweb3@latest

Usage

// in node.js
var SGCWeb3 = require('sgcweb3');

var SGCweb3 = new SGCWeb3('ws://localhost:8546');
console.log(SGCweb3);

Additionally you can set a provider using SGCweb3.providers.HttpProvider()

const SGCWeb3 = require('sgcweb3');
const SGCweb3 = new SGCWeb3(new SGCWeb3.providers.HttpProvider('http://13.229.152.61:8501'));

There you go, now you can use it:

SGCweb3.eth.getAccounts()
.then(console.log);

Building

Requirements

  • Node.js
  • npm
sudo apt-get update
sudo apt-get install nodejs
sudo apt-get install npm
sudo npm install lerna bootstrap

Keywords

FAQs

Package last updated on 22 Feb 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