npm stats
  • Search
  • About
  • Repo
  • Sponsor
  • more
    • Search
    • About
    • Repo
    • Sponsor

Made by Antonio Ramirez

hypercore-nanoeth

1.0.0

@mafintosh

npmHomeRepoSnykSocket
Downloads:3
$ npm install hypercore-nanoeth
DailyWeeklyMonthlyYearly

hypercore-nanoeth

Hypercore extension for Nanoeth

npm install hypercore-nanoeth

Usage

const HyperNanoETH = require('hypercore-nanoeth')

const client = new HyperNanoETH(hypercoreReplicationStream)
const server = new HyperNanoETH(hypercoreReplicationStream, async onrequest (message) {
  // forward this json rpc message to your eth provider
})

// client is a normal hypereth instance
console.log(await client.blockNumber())

License

MIT