1.0.0 • Published 3 years ago
hypercore-nanoeth v1.0.0
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
1.0.0
3 years ago