Super simple way to get your hands dirty and program on “bitcoind” – everyone can be a developer series

Super simple way to get your hands dirty and program on “bitcoind”.  Here is a step by step guide (for Windows, other OS coming soon)

Everyone can be a developer . . .

  1. Download the bitcoin core executable from – https://bitcoin.org/en/download
  2. Run the executable.  Install bitcoin in standard location (c:\program files\bitcoin) and files in custom location (c:\users\username\appdata\roaming\bitcoin)
  3. Open command prompt – navigate to c:\program files\bitcoin\daemon (feel free to add windows path to remove this extra step!)
    1. Run the bitcoind daemon with -regtest option (Start bitcoind in regtest mode to create a private block chain)
      1. bitcoind -regtest -daemon
    2. Leave it running
  4. Open another command prompt – navigate to c:\program files\bitcoin\daemon (feel free to add windows path to remove this extra step!)
    1. Run the bitcoin-cli with -regtest option (Generate 101 blocks using a special RPC which is only available in regtest mode. This takes about 30 seconds on a generic PC. Because this is a new block chainusing Bitcoin’s default rules, the first blocks pay a block reward of 50 bitcoins)
      1. bitcoin-cli -regtest generate 101
    2. Test your skills with cli commands . . .
      1.  bitcoin-cli -regtest getbalance
      2. bitcoin-cli -regtest listunspent
  5. Have hours of fun and learn bitcoin programming the easy way – https://bitcoin.org/en/developer-examples#transaction-tutorial

Want to make it easier?  You can remove steps 1 through 3 by using this docker – https://hub.docker.com/r/alexlun/bitcoin-regtest/

Have  a question?  Just ask . . . . !

%d bloggers like this:
Skip to toolbar