0.0.35 • Published 5 years ago
tendermint.js v0.0.35
Tendermint.js
The simple and minimalistic javascript lib to get Tendermint blockchain data from node rpc and websocket
Install
npm i tendermint.js
or yarn add tendermint.js
Test
npm run test
Usage
You can use this library on your node and browser too. See examples folder for getting more information.
Import library
ES6 imports
import TendermintJS from 'tendermint.js'
Require
var TendermintJS = require('tendermint.js')
Browser
<script src="YOUR_PATH/tendermint.umd.js"></script>
Create a reference to the instance
const tm = new TendermintJS({
node_rpc: 'http://localhost:26657',
node_ws: 'ws://localhost:26657',
logs: true
});
tm.test() // return ok