2022-10-14 03:18:39 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
ACCOUNT_PASSWORD=${ACCOUNT_PASSWORD:-secret1212}
|
|
|
|
|
2022-10-14 21:58:46 +00:00
|
|
|
for line in `cat ../build/el/accounts.csv`; do
|
2022-10-14 03:18:39 +00:00
|
|
|
BIP44_PATH="`echo "$line" | cut -d',' -f1`"
|
|
|
|
ADDRESS="`echo "$line" | cut -d',' -f2`"
|
2022-10-14 21:58:46 +00:00
|
|
|
PRIVATE_KEY="`echo "$line" | cut -d',' -f3`"
|
2022-10-14 03:18:39 +00:00
|
|
|
|
|
|
|
echo "$ACCOUNT_PASSWORD" > .pw.$$
|
|
|
|
echo "$PRIVATE_KEY" | sed 's/0x//' > .key.$$
|
|
|
|
|
|
|
|
echo ""
|
|
|
|
echo "$ADDRESS"
|
|
|
|
geth account import --password .pw.$$ .key.$$
|
|
|
|
rm -f .pw.$$ .key.$$
|
|
|
|
done
|