Server SDK (Node.js)
This library allows you to quickly integrate Slyk with your Node.js application.
Install
$ yarn add @slyk/slyk-sdk-nodeThe slyk-sdk-node requires node v4 or higher.
Usage
Example
const slykSDK = require('@slyk/slyk-sdk-node');
(function() {
const slyk = slykSDK({ apikey: 'api-key' });
slyk.wallet.get('8399340e-8c1f-4c4f-94e0-81a5ee0378e1')
.then(function(wallet) {
wallet.getBalance({ filter: { assetCode: 'in:btc,usd' } })
.then(function(balance) {
console.log(balance);
});
});
})();ES8 Example
Result
Last updated
Was this helpful?