node package manager
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »


Qtumcore Library

A pure and powerful JavaScript QTUM library.

OP_CALL support was added:

You can transfer qrc20 tokens and call smart contracts.


var data = "a9059cbb000000000000000000000000077bb35d818c0c26bdf37f90ccc87735201d52b40000000000000000000000000000000000000000000000000000000002faf080";
var tokenScript = qtumcore.Script.fromASM("04 9490435 40 " + data + " fe59cbc1704e89a698571413a81f0de9d8f00c69 OP_CALL");
var transaction = new qtumcore.Transaction()
    .to("QMHZ2Wim7VoYBY1oUqfCL7vzJBJYi7e4Fv", 0)

Get Started

npm install qtumcore-lib
bower install qtumcore-lib


We're using qtumcore-lib in production, but please use common sense when doing anything related to finances! We take no responsibility for your implementation decisions.


Please send pull requests for bug fixes, code optimization, and ideas for improvement.

Building the Browser Bundle

To build a qtumcore-lib full bundle for the browser:

gulp browser

This will generate files named qtumcore-lib.js and qtumcore-lib.min.js.

Development & Tests

git clone
cd qtumcore-lib
npm install

Run all the tests:

gulp test

You can also run just the Node.js tests with gulp test:node, just the browser tests with gulp test:browser or create a test coverage report (you can open coverage/lcov-report/index.html to visualize it) with gulp coverage.