0.0.2 • Published 1 year ago

@ecosis/eco v0.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

@ecosis/eco

ecosis Client Package to interact with Nomics and Lisk

import Eco from '@ecosis/eco'

// Creating a Session instance. functions always update data within the instance and return data
const eco = await new Eco('https://nomics.ecosis.network')

// return new wallet data within the eco instance and as an object
await eco.createWallet()
// or
await eco.importWallet('enter your passphrase here from alreadz created wallet')

// fetch your balance
await eco.fetchBalance()

// fetch others balance
await eco.fetchBalance('enter the address here')

// make a transaction with the amount of 25 Nomics
await eco.transfer('enter wallet address here', 25)

// you can add a message as well (optional)
await eco.transfer('enter wallet address here', 25, 'Hi there!')