@parity/shapeshift
v2.1.2
Published
The Parity Promise-based library for interfacing with ShapeShift over HTTP
Downloads
425
Readme
@parity/shapeshift
A thin ES6 promise wrapper around the shapeshift.io APIs as documented at https://shapeshift.io/api
https://github.com/paritytech/parity/tree/master/js/packages/shapeshift
usage
installation -
npm install --save @parity/shapeshift
Usage -
const APIKEY = 'private affiliate key or undefined';
const shapeshift = require('@parity/shapeshift')(APIKEY);
// api calls goes here
api
queries -
getCoins()
https://shapeshift.io/api#api-104getMarketInfo(pair)
https://shapeshift.io/api#api-103getStatus(depositAddress)
https://shapeshift.io/api#api-5
transactions -
shift(toAddress, returnAddress, pair)
https://shapeshift.io/api#api-7