add some account

This commit is contained in:
wisfern
2024-04-06 12:30:48 +08:00
parent f9981851bd
commit 962f727030
21 changed files with 110 additions and 0 deletions

15
createAccount.sh Normal file
View 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