Skip to content

anothersoft/lotion-connect

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

72 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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' }))

About

browserifiable lotion light client

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%