bananojs

    0.0.4 • Public • Published

    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()

    Install

    npm i bananojs

    DownloadsWeekly Downloads

    8

    Version

    0.0.4

    License

    MIT

    Unpacked Size

    7.82 kB

    Total Files

    4

    Last publish

    Collaborators

    • felixwostal