This library aims to providing javascript utilities for Semux client-side applications, such as web wallet.
Visit issues page to see planned features or propose a feature request.
npm install --save semux-js
Node.js
// import semux module
const {SemuxApi, SemuxApiConfiguration} = require("semux-js");
// create an API client
const api = new SemuxApi(new SemuxApiConfiguration({
username: "user",
password: "pass",
basePath: "http://localhost:5171/v2.1.0"
}));
// call GET /info API
api
.getInfo({ mode: 'cors', credentials: 'include' })
.then(response => console.log(response))
.catch(err => console.error(err));
- Hash
- Key & Signature
- Transaction Signing, Encoding or Decoding
- Byte Encoder / Byte Decoder
- API Client
- Web Wallets
- Chrome >= 65
- Firefox >= 59
- IE >= 11
- Edge >= 16
- Safari >= 6
npm install
npm test
Browser testing requires Chrome and Firefox installed.
npm run-script test:browser
npm run format
npm run format:check