mirror of
https://github.com/lnbook/lnbook
synced 2024-11-06 21:20:29 +00:00
7c5d5699bf
Build network, create keys/addresses, fund wallets.
13 lines
431 B
Bash
13 lines
431 B
Bash
#!/bin/bash
|
|
|
|
bitcoind -datadir=/bitcoind -daemon
|
|
sleep 5
|
|
export address=`cat /bitcoind/keys/demo_address.txt`
|
|
export privkey=`cat /bitcoind/keys/demo_privkey.txt`
|
|
echo "================================================"
|
|
echo "Importing demo private key"
|
|
echo "Bitcoin address: " ${address}
|
|
echo "Private key: " ${privkey}
|
|
echo "================================================"
|
|
bitcoin-cli -datadir=/bitcoind importprivkey $privkey
|