Skip to content

Instantly share code, notes, and snippets.

@orrybaram
Created January 12, 2018 15:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save orrybaram/b1c4b724b134c8b7fb0cafe52cb5f6c6 to your computer and use it in GitHub Desktop.
Save orrybaram/b1c4b724b134c8b7fb0cafe52cb5f6c6 to your computer and use it in GitHub Desktop.
RaiblocksJs boilerplate
<html>
<head></head>
<body>
<script src="bundle.js"></script>
</body>
</html>
const Rai = require('raiblocks-js').default;
const rai = new Rai();
console.log(rai);
rai.account.weight({ account: 'xrb_1313648f73x5jkwxa5bzmysf73bw35ajuygniubeqa96qatbpo4uqj9kohhu' }).then((res) => {
console.log(res);
});
{
"name": "test",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"start": "node .",
"build:client": "browserify index.js -o bundle.js"
},
"author": "",
"license": "ISC",
"dependencies": {
"raiblocks-js": "^0.4.2"
},
"devDependencies": {
"browserify": "^15.1.0"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment