Skip to content

Latest commit

 

History

History
38 lines (28 loc) · 759 Bytes

README.md

File metadata and controls

38 lines (28 loc) · 759 Bytes

Official Blockmove.io Node.js SDK

Documentation is available at website https://docs.blockmove.io.

Examples are available in this package.

To install, just use npm:

npm install blockmove-api

Example

let BlockmoveApi = require('blockmove-api-node');

// Generated API Key from your Blockmove.io Wallet
const API_KEY = 'YOUR_API_KEY';

// Generated API Secret Key from your Blockmove.io Wallet
const API_SECRET = 'YOUR_API_SECRET';

// Wallet ID
const WALLET_ID = 'WALLET_ID';

let Api = new BlockmoveApi(API_KEY, API_SECRET);

// Get wallet balance
Api.getWalletBalance(WALLET_ID, function(error, data) {
    if (error !== null) {
        console.log(error);
    }
    else {
        console.log(data);
    }
});