clean inavalid
This commit is contained in:
@@ -8,11 +8,8 @@ total_sol=0
|
||||
files=$(find . -maxdepth 2 -type f -name "*.json")
|
||||
for keyfile in $files;
|
||||
do
|
||||
if [ -f ./rpc_config ]; then
|
||||
source ./rpc_config
|
||||
fi
|
||||
# 获取源账户余额(以lamports为单位)
|
||||
balance_lamports=$(solana balance $from_keypair --url $RPC_URL --output json | jq -r '.lamports')
|
||||
balance_lamports=$(solana balance $keyfile --url $rpc --output json | jq -r '.lamports')
|
||||
balance_SOL=$(echo "scale=9; $balance_lamports / 1000000000" | bc)
|
||||
total_sol=$(echo "$total_sol + $balance_SOL" | bc)
|
||||
echo $keyfile $balance_SOL SOL
|
||||
|
||||
Reference in New Issue
Block a user