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

bitski-node

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bitski-node

Bitski SDK for Node environments

  • 0.3.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
9
increased by200%
Maintainers
1
Weekly downloads
 
Created
Source

Bitski Node Provider

npm

A Bitski powered Web3 provider for Node environments, and App Wallet.

Installation

npm install --save bitski-node

Basic Usage

Start by importing the SDK, as well as Web3. Then, create the provider by calling getProvider() and pass it to Web3. The only required parameter is a client id.

const Bitski = require("bitski-node");
const Web3 = require("web3");

// Create bitski provider
const provider = Bitski.getProvider("YOUR CLIENT ID");

// Create web3 instance
const web3 = new Web3(provider);

Usage with App Wallet

If you have an App Wallet, or want to use anything that requires an account you need to pass in your client credentials. You can create these from the developer portal.

const Bitski = require("bitski-node");
const Web3 = require("web3");

// Configure options
const options = {
  credentials: {
    id: 'YOUR CREDENTIAL ID',
    secret: 'YOUR CREDENTIAL SECRET'
  }
};

// Pass options with the provider
const provider = Bitski.getProvider("YOUR CLIENT ID", options);
const web3 = new Web3(provider);

Using other networks

Bitski is compatible with several test networks and sidechains. To use a chain other than mainnet, pass in a network in your options.

const Bitski = require("bitski-node");
const Web3 = require("web3");

// Configure options
const options = {
  network: 'rinkeby'
};

// Pass options with the provider
const provider = Bitski.getProvider("YOUR CLIENT ID", options);
const web3 = new Web3(provider);

FAQs

Package last updated on 16 Jan 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