aboutsummaryrefslogtreecommitdiffstats
path: root/doc/fund-server-bitcoin-cli.md
diff options
context:
space:
mode:
authorAdrien Hopkins <[email protected]>2021-07-29 15:11:19 -0400
committerGitHub <[email protected]>2021-07-29 15:11:19 -0400
commiteeecdd5fae55fc32a8582ce8b77ea097bfdb2b53 (patch)
tree24275c0eeae554fa2c85dfa93aa19306c3372dc2 /doc/fund-server-bitcoin-cli.md
parented68ee893ae7bb3540f0731c3ccf21a26bc6ac1f (diff)
downloadcoinos-server-eeecdd5fae55fc32a8582ce8b77ea097bfdb2b53.tar.gz
coinos-server-eeecdd5fae55fc32a8582ce8b77ea097bfdb2b53.zip
Added to the regtest instructions
Added commands to send bitcoin to your account, to use for testing.
Diffstat (limited to 'doc/fund-server-bitcoin-cli.md')
-rw-r--r--doc/fund-server-bitcoin-cli.md10
1 files changed, 9 insertions, 1 deletions
diff --git a/doc/fund-server-bitcoin-cli.md b/doc/fund-server-bitcoin-cli.md
index 3c5b6ef5..5b096f0f 100644
--- a/doc/fund-server-bitcoin-cli.md
+++ b/doc/fund-server-bitcoin-cli.md
@@ -14,11 +14,19 @@ docker exec -it bitcoin bash
bitcoin-cli -regtest -datadir=/config -rpcwallet=coinosdev getnewaddress
# mine a block to the new address
-bitcoin-cli -regtest -datadir=/config generatetoaddress 101 theaddressgneratedabove
+bitcoin-cli -regtest -datadir=/config generatetoaddress 101 theaddressgeneratedabove
# verify you got the reward:
bitcoin-cli -regtest -datadir=/config -conf=./bitcoin.conf -rpcwallet=coinosdev getbalance
> 50.00000000
+
+# send 10 bitcoin to your account on the server
+# get the address to send to from ./receive, select 'Bitcoin'
+bitcoin-cli -regtest -datadir=/config -rpcwallet=coinosdev sendtoaddress [account-address] 10
+
+# confirm the transaction
+# (do the mining command again)
+bitcoin-cli -regtest -datadir=/config generatetoaddress 101 theaddressgeneratedabove
```
![](./img/50-bitcoin-server-balance.gif)