webcoin-regtest

0.0.1 • Public • Published

webcoin-regtest

Create a Webcoin SPV client that connects to a local bitcoind node running in regtest mode.

Usage

$ npm install webcoin-regtest
let SPVNode = require('webcoin-regtest')
let bitcoind = require('bitcoind')

let btcd = bitcoind({
  regtest: true
})

async function main() {
  let node = await SPVNode(btcd)
  console.log(node.chain.height())
}
main()

Readme

Keywords

none

Package Sidebar

Install

npm i webcoin-regtest

Weekly Downloads

2

Version

0.0.1

License

ISC

Unpacked Size

7.42 kB

Total Files

4

Last publish

Collaborators

  • kep