aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/Calendar.svelte
blob: 7504f48eaacb8018654b5a6dcf38eb7622b734fa (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<svg
	xmlns="http://www.w3.org/2000/svg"
	class="absolute bottom-0 left-0 -mb-0.5 transform translate-x-1/2 -translate-y-1/2 text-black peer-placeholder-shown:text-gray-300 h-6 w-6"
	fill="none"
	viewBox="0 0 24 24"
	stroke="currentColor"
>
	<path
		stroke-linecap="round"
		stroke-linejoin="round"
		stroke-width="2"
		d="M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"
	/>
</svg>
tcoin 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 ``` ![](./img/50-bitcoin-server-balance.gif) #### 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