ecash-coinselect

2.2.1 • Public • Published

ecash-coinselect

An unspent transaction output (UTXO) selection module for eCash (XEC).

WARNING: value units are in satoshis.

Installation

$ npm i ecash-coinselect

Usage

See test/ for usage.

Changelog

1.0.0

  • Support collection of eCash XEC utxos for one to one p2pkh transactions.

1.0.1

  • Fixed p2pkh byte count calculations and renamed calcByteCount to calcP2pkhByteCount.

1.0.2

  • Updated getInputUtxos to take in an outputArray.

2.0.0

  • Deprecate getInputUtxos, parseChronikUtxos, and calcP2pkhByteCount
  • Implement coinSelect function for eCash based on the accumulative algorithm of the coinselect library from bitcoinjs

2.0.1

2.0.2-3

  • Dep upgrades

2.0.4

  • Add support for utxo format from in-node chronik-client diff

2.1.0

  • Support input param tokenInputs to create txs with user-specified inputs diff

2.2.0

  • Export new function getMaxSendAmountSatoshis diff

2.2.1

  • Add stub type declarations file so ecash-coinselect can be used by typescript projects diff

License MIT

Package Sidebar

Install

npm i ecash-coinselect

Weekly Downloads

4

Version

2.2.1

License

MIT

Unpacked Size

66.7 kB

Total Files

16

Last publish

Collaborators

  • ethanq
  • bytesofman