Would you like to clone this notebook?

When you clone a notebook you are able to make changes without affecting the original notebook.

Cancel

heat-sdk | API Access

node v6.17.1
version: 2.0.1
endpointsharetweet
var {HeatSDK} = require("heat-sdk") var sdk = new HeatSDK() sdk.api.get("/blockchain/status").then( function (data) { let date = sdk.utils.timestampToDate(data.lastBlockTimestamp) let height = data.lastBlockchainFeederHeight; console.log(`HEAT Blockchain HEIGHT = ${height}`) console.log(`HEAT Blockchain DATE = ${date}`) } )
Loading…

no comments

    sign in to comment