Client-side Fabcoin JavaScript library

Usage no npm install needed!

<script type="module">
  import fabcoinjs from 'https://cdn.skypack.dev/fabcoinjs';


FabcoinJS (fabcoinjs-lib)

This is a Javascript library for node.js and browsers to develop applications on top of FAB Blockchain. This library is based on bitcoinjs library combined with other helper libraries.

Released under the terms of the MIT LICENSE.


npm install fabcoinjs

Can I trust this code?

Don't trust. Verify.

We recommend every user of this library and the fabcoinjs ecosystem audit and verify any underlying code for its validity and suitability.

Mistakes and bugs happen, but with your help in resolving and reporting issues, together we can produce open source software that is:

  • Easy to audit and verify,
  • Tested, with test coverage >95%,
  • Advanced and feature rich,
  • Standardized, using standard and Node Buffer's throughout, and
  • Friendly, with a strong and helpful community, ready to answer questions.


Presently, we do not have any formal documentation other than our examples, please ask for help if our examples aren't enough to guide you.

WARNING: We presently don't provide any tooling to verify that the release on npm matches GitHub. As such, you should verify anything downloaded by npm against your own verified copy.


The below examples are implemented as integration tests, they should be very easy to understand. Otherwise, pull requests are appreciated. Some examples interact (via HTTPS) with a 3rd Party Blockchain Provider (3PBP).

If you have a use case that you feel could be listed here, please ask for it!

Running the test suite

npm test
npm run-script coverage