Skip to content

Instantly share code, notes, and snippets.

@ender503
Last active August 1, 2019 06:45
Show Gist options
  • Save ender503/1ec76667fe65bc3b48231307464dfe99 to your computer and use it in GitHub Desktop.
Save ender503/1ec76667fe65bc3b48231307464dfe99 to your computer and use it in GitHub Desktop.
Tangle Accelerator Node.js Example
/**
* 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