Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fanatid/bitcoind-regtest
Run bitcoind in regtest mode for your own blockchain
https://github.com/fanatid/bitcoind-regtest
Last synced: 28 days 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 (about 9 years ago)
- Default Branch: master
- Last Pushed: 2015-11-24T06:50:09.000Z (almost 9 years ago)
- Last Synced: 2024-09-18T18:52:51.956Z (about 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
[![NPM Package](https://img.shields.io/npm/v/bitcoind-regtest.svg?style=flat-square)](https://www.npmjs.org/package/bitcoind-regtest)
[![build status](https://img.shields.io/travis/fanatid/bitcoind-regtest.svg?branch=master&style=flat-square)](http://travis-ci.org/fanatid/bitcoind-regtest)
[![Coverage Status](https://img.shields.io/coveralls/fanatid/bitcoind-regtest.svg?style=flat-square)](https://coveralls.io/r/fanatid/bitcoind-regtest)
[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/feross/standard)
[![Dependency status](https://img.shields.io/david/fanatid/bitcoind-regtest.svg?style=flat-square)](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.