add some account
This commit is contained in:
15
createAccount.sh
Normal file
15
createAccount.sh
Normal file
@@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ -f wallet.csv ]; then
|
||||
echo "wallet.csv exists, backup"
|
||||
mv wallet.csv wallet.csv.bak
|
||||
fi
|
||||
|
||||
for i in $(seq 1 10)
|
||||
do
|
||||
echo "生成第 $i 个钱包"
|
||||
solana-keygen new --no-bip39-passphrase -o tmp$i.json
|
||||
addr=$(solana --keypair tmp$i.json address | tr -d '\n')
|
||||
mv tmp$i.json $i.$addr.json
|
||||
echo $addr >> wallet.csv
|
||||
done
|
||||
Reference in New Issue
Block a user