Update ore.sh

This commit is contained in:
smeb y 2024-04-07 00:04:42 +08:00 committed by GitHub
parent 0d827c610f
commit 93b9e5a2d1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

35
ore.sh
View File

@ -367,7 +367,29 @@ done
}
function cliam_multiple() {
# 提示用户同时输入起始和结束编号,用空格分隔
#!/bin/bash
# 提示用户输入RPC地址
echo -n "请输入RPC地址例如https://api.mainnet-beta.solana.com: "
read rpc_address
# 确认用户输入的是有效RPC地址
if [[ -z "$rpc_address" ]]; then
echo "RPC地址不能为空。"
exit 1
fi
# 提示用户输入优先费用
echo -n "请输入优先费用单位lamports例如500000: "
read priority_fee
# 确认用户输入的是有效的数字
if ! [[ "$priority_fee" =~ ^[0-9]+$ ]]; then
echo "优先费用必须是一个整数。"
exit 1
fi
# 提示用户同时输入起始和结束编号
echo -n "请输入起始和结束编号中间用空格分隔比如跑了10个钱包地址输入1 10即可: "
read -a range
@ -375,10 +397,17 @@ read -a range
start=${range[0]}
end=${range[1]}
# 无限循环
while true; do
# 执行循环
for i in $(seq $start $end); do
ore --rpc https://api.mainnet-beta.solana.com --keypair ~/.config/solana/id$i.json --priority-fee 1 claim
echo "执行钱包 $i 并且RPC $rpc_address and 以及 $priority_fee"
ore --rpc $rpc_address --keypair ~/.config/solana/id$i.json --priority-fee $priority_fee claim
done
echo "成功领取 $start to $end."
done
}
@ -401,7 +430,7 @@ function main_menu() {
echo "7. 适合首次安装单机多开钱包带安装环境需要自行准备json私钥"
echo "8. 单机多开钱包不检查环境需要自行准备json私钥"
echo "9. 单机多开钱包,查看奖励"
echo "10. 单机多开钱包,领取奖励"
echo "10. 单机多开钱包,领取奖励(自动轮询)"
read -p "请输入选项1-10: " OPTION
case $OPTION in