0.0.1 • Published 2 years ago

@samrock5000/xecjs v0.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

xec-js

Version Downloads/week License js-standard-style

xec-js is a JavaScript npm library for creating web and mobile apps that can interact with the eCash (XEC) blockchain.

Quick Links

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:

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

License

MIT