Giter VIP home page Giter VIP logo

swtc-lib's Introduction

The COMMUNITY SWTC JavaScript Library for DEVELOPERS

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

keep the same interface as jingtum-lib or jcc_jingtum_lib, passing all related tests

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@next  // try to keep up with [email protected] which introduces more dependancies
  $ 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

swtc-lib's People

Contributors

lospringliu avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.