JSPM

  • Created
  • Published
  • Downloads 19
  • Score
    100M100P100Q70600F
  • License BSD-2-Clause

swtc library for jingtum blockchain

Package Exports

  • swtc-lib
  • swtc-lib/src/wswrapper.js

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 (swtc-lib) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

#The SWTC JavaScript Library

SWTC library for development with modern javascript in concern, functions include transactions and remote swtc-lib makes working with Node.js and in the browser or even certain mobile app easy and fashion via webpack. This library currently uses the same source code from jingtum-lib but properly package them for convenience.

##Getting swtc-lib

Via npm for Node.js

  $ npm install swtc-lib

Build from the source and test

  $ git clone https://github.com/swtcca/swtc-lib.git
  $ npm install
  $ npm run build or npm run build:production
  $ npm run test

Then use the dist/swtc-lib-*.js in your web application

##Quickstart

    var Wallet = require('swtc-lib').Wallet;
    var Remote = require('swtc-lib').Remote;
    var remote = new Remote({server: 'wss://c05.jingtum.com:5020', local_sign: true});

Modern usage

  • es2015, es2017
  • zero config for webpack transpiler
  • develop with nearly all of the webpack powered framework

About Jingtum lib

Basic js lib to be used for interacting with jingtum blockchain network.

  • Keep only one websocket connecttion to jingtum and handle exception
  • Do transaction to jingtumd, and process response
  • Subscribe events, include server, ledger, account and so on
  • Get other information from jingtum

INSTALL

$ npm install jingtum-lib

Documents

For more information see docs.md