bitcoinjs / regtest-server

A regtest server for bitcoinjs-lib testing
BSD 3-Clause "New" or "Revised" License
26 stars 24 forks source link

Add support for specifying an address when generating blocks #16

Closed knorrium closed 12 months ago

knorrium commented 12 months ago

Allow an optional address parameter to the /r/generate endpoint, so we don't always generate a new one:

curl -X POST "http://localhost:8081/1/r/generate?count=10&key=satoshi&address=bcrt1qcn9c23mwchxvy3hz2fss7slecsc0gmj30g9zpx"