Created
July 18, 2019 15:00
-
-
Save ender503/5b54c563476aa66fe78a198553a2a58c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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