@samrock5000/xecjs
v0.0.1
Published
A JavaScript library for working with eCash and eTokens
Downloads
4
Readme
xec-js
xec-js is a JavaScript npm library for creating web and mobile apps that can interact with the eCash (XEC) blockchain.
Quick Links
- npm Library
- Documentation
- rest.kingbch.com - The eCash REST API this library talks to by default.
- FullStack.cash - cloud-based infrastructure for application developers.
- Permissionless Software Foundation - The organization that maintains the original library that this is forked from.
Quick Notes
Install library:
npm install xec-js
Instantiate the library in your code:
const XECJS = require("xec-js")
let xecjs = new XECJS() // Defaults to the XEC network.
This library is intended to be paired with the
the xec-api REST API. The restURL
property can be changed to work with different eCash XEC networks:
- Default eCash REST API server: https://rest.kingbch.com/v4/
- PSF's ABC Mainnet REST API server: https://abc.fullstack.cash/v5/
New eCash Features
- transaction-builder can now directly take in an eCash address as part of adding tx outputs without the need for cash address conversion beforehand
See buildXecTx.js example
- Address.toHash160() can now directly take in an eCash address for conversion to a hash160 public key hash
See addrToHash160.js example
- Address.toCashAddress() can now directly take in an eCash address for conversion to a cash address