JSPM

  • Created
  • Published
  • Downloads 592
  • Score
    100M100P100Q98849F
  • License GPL-3.0

Client-side library for dApp development.

Package Exports

  • conseiljs

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (conseiljs) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

ConseilJS

Client-side library for building decentralized applications, currently focused on Tezos.

ConseilJS connects to Conseil for cached blockchain data and Nautilus for live chain data and operations.

Use

Add our NPM package to your project.

In your webpack.config.js file, add:

 node: {
    fs: 'empty'
  }

Develop

TezosNodeQuery queries Tezos blockchain nodes directly.

TezosConseilQuery queries Conseil server to get blockchain data.

TezosOperations performs operations such as transactions, delegation and originations.

TezosWallet provides wallet functionality.

Example import:

import { TezosOperations } from 'conseiljs';

Run Tests

Add a file called test/servers.ts with these contents:

export const servers = {
    conseilServer: '',
    conseilApiKey: '',
    tezosServer: ''
}

The blank strings should be replaced with the details of actual test servers.

After this, run npm run test to run all unit tests.