Skip to content

Instantly share code, notes, and snippets.

@ender503
Created July 18, 2019 15:00
Show Gist options
  • Save ender503/5b54c563476aa66fe78a198553a2a58c to your computer and use it in GitHub Desktop.
Save ender503/5b54c563476aa66fe78a198553a2a58c to your computer and use it in GitHub Desktop.
const { composeAPI } = require('@iota/core');
const iota = composeAPI({
provider: 'http://node.deviceproof.org:14265'
})
iota.getNodeInfo()
.then(info => console.log(info))
.catch(error => {
console.log(`Request error: ${error.message}`)
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment