bananojs
v0.0.4
Published
Node.js client for the banano RPC methods
Downloads
7
Readme
Bananojs
The node.js client for the banano blockchain
Install
To install the library:
npm install bananojs
# or yarn add bananojs
Usage
const bananojs = require('bananojs')('banano node url here')
Methods
Get block
const block = await bananojs.getBlock(hash)
Get blocks
const blocks = await bananojs.getBlocks([hash, hash2])
Get account balance
const balance = await bananojs.getAccountBalance(account)
Get available suppy
const availableSupply = await bananojs.getAvailableSupply()
Create Account
const account = await bananojs.createAccount(wallet)
Create Seed
const seed = bananojs.createSeed()
Create Wallet
const { wallet, seed } = await bananojs.createWallet()
Get uptime
const uptimeInSeconds = await bananojs.getUptime()