Skip to content

mathipalm/blocktrail_node_sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

blocktrail_node_sdk

This is a super-slim version of the original Node.js sdk provided by Blocktrail. This by no means a replacment for their sdk, I just found their sdk to includ to much and have so many dependcies. And it did not wanna play well with Docker. And I did not need all of the functionallity they offerd.

To install, just use npm:

npm install blocktrail_node_sdk

This sdk is using Promise

Examples

const Blocktrail = require('blocktrail_node_sdk');

var key = 'your_api_key';
var secret = 'your_secret_key';

// tBTC for testnet
var blocktrail = new Blocktrail('BTC', key, secret);

var createAddress = blocktrail.createAddress('wallet_name')
createAddress.then((result) => {
    console.log(result);
}, function(err) {
    console.log(err);
})

About

Super-slim version of blocktrails node sdk

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published