diff options
| author | Adam Soltys <[email protected]> | 2023-01-08 21:05:34 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2023-01-08 21:05:34 -0800 |
| commit | dce07aa93b3c2f47aca0c24cea6adde9ec37f1a7 (patch) | |
| tree | 6c6b8930ebe9c2cc5b8d1f759e61260f509fdd7a /doc/fund-server-bitcoin-cli.md | |
| parent | f7b844883506a8072213245b9b8a2b988694e4f5 (diff) | |
| download | coinos-server-dce07aa93b3c2f47aca0c24cea6adde9ec37f1a7.tar.gz coinos-server-dce07aa93b3c2f47aca0c24cea6adde9ec37f1a7.zip | |
tech debt jubilee
Diffstat (limited to 'doc/fund-server-bitcoin-cli.md')
| -rw-r--r-- | doc/fund-server-bitcoin-cli.md | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/doc/fund-server-bitcoin-cli.md b/doc/fund-server-bitcoin-cli.md deleted file mode 100644 index e0a2c5e3..00000000 --- a/doc/fund-server-bitcoin-cli.md +++ /dev/null @@ -1,44 +0,0 @@ -## Fund Coinos server (via bitcoin-cli) - -Bitcoin Regtest Mode allows us to create our own Bitcoin sandbox blockchain for use in testing & development. - - -From the coinos-server dir on your localfilesystem (ie- after following the 'Getting Started' section of our [root README]) - -```bash - -docker exec -it bitcoin bash - -# get an address -bitcoin-cli -regtest -rpcuser=admin1 -rpcpassword=123 getnewaddress -> bcrt1qzneawwyxe0fts5p8a6tsp4gu2mfnqzs92235hm # (example) - -# mine a block to the new address -bitcoin-cli -regtest -datadir=/home/bitcoin/.bitcoin generatetoaddress 101 theaddressgeneratedabove - -# verify you got the reward by doing: -bitcoin-cli -regtest -rpcuser=admin1 -rpcpassword=123 getbalance -> 50.00000000 - -# send 10 bitcoin to a coinos wallet account you created -# (get the address to send to from ./receive, select 'Bitcoin') -bitcoin-cli -regtest -rpcuser=admin1 -rpcpassword=123 sendtoaddress [account-address] 10 - -# confirm the transaction -# (do the mining command again) -bitcoin-cli -regtest -rpcuser=admin1 -rpcpassword=123 generatetoaddress 101 theoriginaladdressgeneratedabove -``` - - - - - -#### further reading - -On why to generate 101 blocks and some general info on Regtest Mode: - -https://developer.bitcoin.org/examples/testing.html - - -[root README]:https://github.com/coinos/coinos-server - |
