
Company News
Socket Joins the OpenJS Foundation
Socket is proud to join the OpenJS Foundation as a Silver Member, deepening our commitment to the long-term health and security of the JavaScript ecosystem.
bitcoind-regtest
Advanced tools
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: <Script: OP_DUP OP_HASH160 20 0x5d1ecf7e16de5ff76368d709cde74bb52dc7f3c4 OP_EQUALVERIFY OP_CHECKSIG>,
// privKey: <PrivateKey: 294d6127bdc8b6cac4137f13cae854030ef544e595e41b8519d8f6d4966d3764, network: regtest>
// }
await bitcoind.terminate()
})
Code released under the MIT license.
FAQs
Run bitcoind in regtest mode for your own blockchain
The npm package bitcoind-regtest receives a total of 5 weekly downloads. As such, bitcoind-regtest popularity was classified as not popular.
We found that bitcoind-regtest demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket is proud to join the OpenJS Foundation as a Silver Member, deepening our commitment to the long-term health and security of the JavaScript ecosystem.

Security News
npm now links to Socket's security analysis on every package page. Here's what you'll find when you click through.

Security News
A compromised npm publish token was used to push a malicious postinstall script in cline@2.3.0, affecting the popular AI coding agent CLI with 90k weekly downloads.