TangoAlpha Node.js API
Notice: This module and API is in early development and may change in the future.
TangoAlpha Official Website
Getting Started
Install the tangoalpha NPM Package with:
npm i tangoalpha
Also, require the module in your Node.js application with:
var tango = require("tangoalpha")
Using the API
Blocktime
tango.blocktime().then(result => {
console.log(result)
})
Estimated ROI
tango.roi().then(result => {
console.log(result)
})
Blockdrift
tango.blockdrift().then(result => {
console.log(JSON.stringify(result))
})
Getdb - (Warning! Very resource intensive, please do not spam this!)
tango.getdb().then(result => {
console.log(JSON.stringify(result))
})
mnstcount
tango.mnstcount().then(result => {
console.log(JSON.stringify(result))
})
Getblock
var block = 1685805
tango.getblock(block).then(result => {
console.log(JSON.stringify(result))
})
Getaddress
var address = 1685805
tango.address(address).then(result => {
console.log(JSON.stringify(result))
})