quantower-sdk
v1.1.0
Published
Quantower support libraries for use in Node.js and any (modern) browser
Downloads
95
Maintainers
Readme
Quantower Nodejs / Browser libraries
Quantower support libraries for Node.js and the browser
Links
GITHUB ychaim/quantower-sdk
Functionality
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.)
Samples
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.
Usage
Node
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()
Browser
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>