webcoin-regtest
v0.0.1
Published
Create a Webcoin SPV client that connects to a local Bitcoin regtest node.
Downloads
5
Readme
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()