ScarletBlue / codechain-sdk-js

A JavaScript SDK for CodeChain

Home Page:https://api.codechain.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CodeChain SDK for JavaScript npm version Build Status Gitter

A JavaScript SDK for CodeChain

API Documentation

If you're looking for API documentation or quick start guide, click here

Features

  • Connect to a CodeChain JSON-RPC server from Node.js
  • Generate an account, create a transacton, sign a parcel.

Getting Started

Install

yarn install

Running unit tests

Run yarn test

Building and Running integration tests

  1. Run yarn build command.
  2. Run CodeChain RPC server.
  3. Set CODECHAIN_RPC_HTTP environment variable with JSON-RPC HTTP server. (e.g. http://localhost:8080)
  4. Run yarn test-int command.

    It is also possible to indicate specific testcase with -t option. (e.g. yarn test-int -t getBestBlockNumber)

About

A JavaScript SDK for CodeChain

https://api.codechain.io

License:ISC License


Languages

Language:TypeScript 99.7%Language:JavaScript 0.3%