Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
test
.gitignore
.npmignore
README.md
package-lock.json
package.json
tsconfig.json
wallaby.js

README.md

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()
You can’t perform that action at this time.