JSPM

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

swtc-lib@next

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 COMMUNITY SWTC JavaScript Library for DEVELOPERS

Swtc-lib heavily based on jingtum-lib and jcc_jingtum_lib and ripple-*-libs

modularized/decoupled for later enhancement

native node.js supporting all major LTS version including Boron-6, Carbon-8 and Dubnium-10

web applications with zero webpack support

nativescript mobile app support (use swtc-lib@nativescript)

Getting swtc-lib

Via npm for Node.js

  $ npm install swtc-lib  // node.js and web app
  $ npm install swtc-lib@jcc   // if you need to use jcc interfaces, just note that Wallet is added to exports 
  $ npm install swtc-lib@nativescript   // mobile nativescript app, simplified one line configuration

Using swtc-lib

const Wallet = require('swtc-lib').Wallet // cjs import
const Remote = require('swtc-lib').Remote // cjs import

or

import { Wallet, Remote } from 'swtc-lib' // esm import

Involving swtc-lib

Build from the source and test

  $ git clone https://github.com/swtcca/swtc-lib.git
  $ cd swtc-lib; npm install
  $ npm run build or npm run build:production (optional for static browser)
  $ npm run test

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

Documents