@anothersoftware/lotion-connect

0.1.24 • Public • Published

lotion-connect

The Lotion connect() API in a standalone, browser-friendly module.

Installation

$ npm install lotion-connect

Usage

Connecting by GCI isn't supported in this module just yet, so for now, connect to your app like this:

let connect = require('lotion-connect')

let { state, send } = await connect(null, { 
  genesis: require('./genesis.json'),
  nodes: [ 'ws://localhost:46657' ]
})

console.log(await state)
console.log(await send({ foo: 'bar' }))

Readme

Keywords

none

Package Sidebar

Install

npm i @anothersoftware/lotion-connect

Weekly Downloads

2

Version

0.1.24

License

ISC

Unpacked Size

93.8 kB

Total Files

14

Last publish

Collaborators

  • miceve