Skip to content

leapwallet/lumina-node-react-native

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lumina-node-react-native

Installation

npm install lumina-node-react-native
# or
yarn add lumina-node-react-native

Usage

Start lumina node and listen to node events.

import * as LuminClient from 'lumina-node-react-native';

const network = 'mainnet'
const syncingWindowSeconds = 2 * 24 * 3600 // 2 days
await LuminaClient.start(network, syncingWindowSeconds)


const eventListener = (event) => {
  // Handle node events 
}

LuminaClient.eventEmitter.addListener('LuminaNodeEvent', eventListener)

// Stop Node
await LuminaClient.stop()


// Check if node is running
const running = await LuminaClient.isRunning()

License

MIT


Made with create-react-native-library

About

No description, website, or topics provided.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published