Last active
August 1, 2019 06:45
-
-
Save ender503/1ec76667fe65bc3b48231307464dfe99 to your computer and use it in GitHub Desktop.
Tangle Accelerator Node.js Example
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
/** | |
* To execute sample code, use the RunKit: https://npm.runkit.com/axios | |
*/ | |
const axios = require('axios'); | |
const data = { | |
value: 0, | |
message: 'ZBCDKDTCFDTCSCEAQCMDEAHDPCBDVC9DTCRAPCRCRCTC9DTCFDPCHDCDFD', | |
tag: 'POWEREDBYTANGLEACCELERATOR9', | |
address: 'POWEREDBYTANGLEACCELERATOR9999999999999999999999999999999999999999999999999999999', | |
}; | |
axios.post('http://tangle.biilabs.io:5566/transaction/', data).then(response => { | |
console.log(response.data); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment