Skip to content
Node compatible web3 provider for App Wallets
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src Add support for passing additional headers when getting a provider Apr 15, 2019
tests
.gitignore
Jenkinsfile
README.md
package-lock.json
package.json
tsconfig.json
tslint.json

README.md

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

Report Vulnerabilities

Bitski provides a “bug bounty” to engage with the security researchers in the community. If you have found a vulnerability in our product or service, please submit a vulnerability report to the Bitski security team.

You can’t perform that action at this time.