https://github.com/fanatid/bitcoind-regtest
Run bitcoind in regtest mode for your own blockchain
https://github.com/fanatid/bitcoind-regtest
Last synced: about 2 months ago
JSON representation
Run bitcoind in regtest mode for your own blockchain
- Host: GitHub
- URL: https://github.com/fanatid/bitcoind-regtest
- Owner: fanatid
- License: mit
- Created: 2015-09-12T10:57:59.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-11-24T06:50:09.000Z (over 9 years ago)
- Last Synced: 2025-03-05T13:31:13.578Z (2 months ago)
- Language: JavaScript
- Size: 4.34 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-cryptocoinjs - bitcoin
README
# bitcoind-regtest
[](https://www.npmjs.org/package/bitcoind-regtest)
[](http://travis-ci.org/fanatid/bitcoind-regtest)
[](https://coveralls.io/r/fanatid/bitcoind-regtest)
[](https://github.com/feross/standard)
[](https://david-dm.org/fanatid/bitcoind-regtest#info=dependencies)## Example
```js
import RegtestBitcoind from 'bitcoind-regtest'setImmediate(async () => {
let bitcoind = new RegtestBitcoind()
await bitcoind.ready
await bitcoind.generateBlocks(105)
let preload = await bitcoind.getPreload()
console.log(preload)
// {
// txId: '757f53cee55b38e564b37b7a06bc8f0758338621015b7ff02001317af0fa3b14',
// outIndex: 0,
// value: 1000000000,
// script: ,
// privKey:
// }await bitcoind.terminate()
})
```## API
[here](https://github.com/fanatid/bitcoind-regtest/blob/master/API.md)
## License
This software is licensed under the MIT License.