raiden-js
v0.1.1
Published
js library to interact with raiden node
Readme
Raidenjs is a library written in javascript to interact with raiden node
Install
npm install raiden-js --saveUsage
Here we are some examples
const Raiden = require('raiden-js')
// You need first to start your raiden node
let raiden = new Raiden("http://localhost:5001")
// query every registred token in the network
let tokens = raiden.token.getRegisteredTokens()
console.log(tokens);Other Examples can be seen in the sample directory of this repository
If you are new to raiden you can check the documentation. if you are interested in the Raiden Project don't hesitate in asking questions in the raiden gitter.
If you want to include it in html, download the browserified version in the release page.
<html>
<head>
<script src="./raiden.js"></script>
</head>
<body>
<script type = "text/javascript">
var raiden = new Raiden("localhost:5001")
console.log(raiden.url)
</script>
</body>
</html>License
raidenjs is released under the MIT License.
Other Links
Note: I am currenty working on an async version of all the methods covered, every method is temporary syncronous
