Quantower support libraries for Node.js and the browser
GITHUB ychaim/quantower-sdk
With Quantower-SDK you get full client-side/offline functionality of everything involving OTC cryptocurrency. This includes but is not limited to:
- Full Quantower API wrapper
- Support for real-time updates through Quantower websocket API
- Complete client side support for both constructing and parsing binary transaction data
- Full client side encryption/decryption support for transaction attachments
- Support for all other low-level Quantower functionality. But all client side, no server needed! (publickeys, accountids, transaction signatures etc.)
All samples open in https://runkit.com/ which gives you a live Nodejs environment, feel free to play around change the code samples, click RUN and see the output.
Install quantower-sdk
npm install quantower-sdk --save
When using TypeScript install @typings with
npm install @types/quantower-sdk --save
Require quantower-sdk and use it in your project
var {QuantSDK} = require('quantower-sdk')
var sdk = new QuantSDK()
sdk.payment("[email protected]","99.95")
.publicMessage("Happy birthday!")
.sign("my secret phrase")
.broadcast()
quantower-sdk comes as an UMD module which means you could either require
or import {quantsdk} from 'quantower-sdk'
or simply load as <script src="">
and access it through window.quantsdk
<html>
<head>
<script src="quantower-sdk.js"></script>
<script>
var sdk = new quantsdk.QuantSDK()
sdk.payment("[email protected]","99.95")
.publicMessage("Happy birthday!")
.sign("my secret phrase")
.broadcast()
</script>
</head>
</html>