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

View File

@@ -0,0 +1 @@
[16,127,98,55,226,95,109,181,255,69,102,198,17,65,171,14,178,204,142,121,140,91,196,107,168,49,238,29,105,191,44,227,207,30,197,47,81,188,184,124,128,134,94,164,96,39,158,126,107,151,214,187,205,89,233,109,153,186,169,5,80,188,211,114]

View File

@@ -0,0 +1 @@
[180,255,103,69,154,126,166,37,141,37,86,102,215,19,27,178,201,145,70,218,198,12,201,127,56,93,199,159,56,69,209,89,44,203,194,142,206,125,3,22,71,102,236,219,15,91,67,225,136,64,89,157,143,21,38,181,52,69,185,55,30,167,241,203]

View File

@@ -0,0 +1 @@
[182,152,70,215,38,6,95,113,66,150,165,51,227,225,164,234,206,38,68,133,126,155,0,65,251,159,73,133,2,161,242,238,7,236,125,79,52,75,104,193,78,177,132,34,133,11,142,16,234,25,146,87,22,105,220,206,187,58,178,202,42,248,101,63]

View File

@@ -0,0 +1 @@
[0,147,143,86,231,104,58,130,121,98,50,202,102,183,7,113,201,115,28,218,19,133,81,202,72,49,25,242,96,73,33,88,0,249,202,61,18,76,93,46,54,50,129,184,201,33,183,219,36,110,146,202,93,87,211,116,138,66,87,224,219,73,181,8]

View File

@@ -0,0 +1 @@
[185,58,228,238,5,125,86,249,219,1,152,28,78,57,48,134,166,58,112,188,70,34,199,166,94,29,245,91,164,136,243,231,123,180,180,240,181,145,69,247,8,56,68,145,240,129,161,163,205,139,163,207,205,76,92,81,243,88,46,68,207,127,19,251]

View File

@@ -0,0 +1 @@
[136,219,227,158,170,30,134,23,242,160,195,87,171,164,83,59,137,130,95,7,124,163,166,74,13,172,97,56,35,72,5,50,199,55,83,137,209,212,158,49,85,188,195,130,147,192,192,247,53,78,142,196,254,103,211,146,143,232,218,168,135,190,150,238]

View File

@@ -0,0 +1 @@
[99,124,151,125,76,182,86,59,6,19,155,52,212,185,5,162,6,9,85,29,12,254,132,200,61,157,30,37,164,47,51,96,155,146,220,249,249,82,251,244,33,35,152,219,161,191,196,59,211,49,203,99,158,1,201,54,13,246,48,26,92,184,123,212]

View File

@@ -0,0 +1 @@
[106,21,166,154,70,214,82,131,75,15,227,5,118,110,71,248,14,39,114,143,213,228,197,45,151,141,83,220,10,195,16,122,211,56,121,148,11,43,62,244,1,204,44,217,213,92,130,235,136,5,57,68,196,198,58,245,39,52,252,47,211,80,191,208]

View File

@@ -0,0 +1 @@
[193,100,1,38,74,179,62,98,35,139,201,81,153,26,250,119,135,24,85,170,62,162,52,137,143,166,155,175,150,24,246,135,153,254,130,152,251,215,5,244,41,117,159,151,205,30,115,154,53,234,232,117,10,70,254,42,229,3,178,156,225,227,78,116]

View File

@@ -0,0 +1 @@
[86,205,254,181,138,14,228,54,174,78,250,80,238,136,106,93,145,132,96,231,122,35,221,96,98,150,23,126,58,16,186,162,241,67,203,250,26,254,61,126,45,133,10,209,241,129,47,164,5,50,210,198,111,79,125,223,135,254,54,182,114,163,47,123]

View File

@@ -0,0 +1 @@
[51,99,40,253,32,90,255,110,253,164,32,25,89,100,54,102,114,17,3,125,189,123,160,18,7,63,177,168,234,126,108,204,155,248,190,105,171,75,212,23,41,83,64,184,215,78,131,140,78,116,51,147,15,127,154,60,16,110,168,223,136,219,233,226]

View File

@@ -0,0 +1 @@
[79,92,91,212,93,142,64,189,12,109,27,48,249,59,25,87,76,41,202,72,9,75,48,66,152,197,225,145,49,184,79,120,158,10,151,177,150,120,25,157,64,25,212,221,80,234,223,147,151,15,48,241,126,251,230,30,66,100,90,101,218,187,251,180]

View File

@@ -0,0 +1 @@
[18,139,58,196,155,61,220,121,212,12,169,54,28,79,59,193,23,96,255,151,91,130,72,30,152,151,198,62,93,66,138,176,114,254,84,153,74,67,244,1,229,80,224,241,44,91,250,17,232,84,38,19,89,159,234,61,161,204,118,85,101,13,200,65]

View File

@@ -0,0 +1 @@
[224,201,177,123,144,124,47,55,173,128,209,114,203,182,141,155,196,44,86,76,124,69,0,76,37,125,122,3,205,42,82,71,65,51,62,93,24,171,14,119,247,158,165,101,215,183,100,44,222,14,82,115,171,139,129,185,158,190,43,199,215,96,155,220]

View File

@@ -0,0 +1 @@
[114,192,105,189,140,59,52,229,251,84,251,65,129,248,20,250,246,225,107,132,80,142,216,206,65,12,119,129,58,24,31,234,6,244,180,23,67,145,82,74,200,169,172,179,216,142,238,147,246,194,45,111,136,221,87,80,167,211,156,207,227,199,176,169]

39
claim.sh Normal file
View File

@@ -0,0 +1,39 @@
#!/bin/bash
# 检查参数数量是否正确
if [ "$#" -ne 1 ]; then
echo "Usage: $0 <monitor_value>"
exit 1
fi
# 从参数中获取密钥文件和监控数值
monitor_value=${1:-0.1}
#export http_proxy="http://10.3.255.132:51837"
#export https_proxy="http://10.3.255.132:51837"
#rpc=https://api.mainnet-beta.solana.com
#rpc=https://crimson-nameless-season.solana-mainnet.quiknode.pro/05858e8f2f620b3705dc985711ee7681a3d00bbd/
rpc=https://mainnet.helius-rpc.com/?api-key=fa8414c7-043e-4888-922a-344a2d413ec8
files=$(find . -maxdepth 1 -type f -name "*.json")
for keyfile in $files; do
rewards=$(ore --rpc $rpc --keypair "$keyfile" rewards | sed 's/ ORE//')
if [ -z "$rewards" ]; then
echo "Failed to get rewards. Exiting..."
exit 1
fi
#echo "$keyfile Current rewards: $rewards ORE"
if (( $(echo "$rewards > $monitor_value" | bc -l) )); then
echo "claim reward $keyfile"
echo "================================================"
echo "Rewards ($rewards) is greater than monitor value ($monitor_value). Claiming rewards..."
ore --rpc $rpc --keypair $keyfile --priority-fee 10000 claim
else
echo "Rewards ($rewards) is less than or equal to monitor value ($monitor_value). No action needed."
fi
done
# 脚本结束
#echo "claim.sh script execution completed."

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

12
rewards.sh Normal file
View File

@@ -0,0 +1,12 @@
#!/bin/bash
rpc=https://api.mainnet-beta.solana.com
total_rewards=0
for keyfile in *.json;
do
source ./rpc_config
rewards=$(ore --rpc $rpc --keypair $keyfile rewards 2>/dev/null | sed 's/ ORE//')
total_rewards=$(echo "$total_rewards + $rewards" | bc)
echo $keyfile $rewards ORE
done
printf "Total rewards: %.9f ORE\n" "$total_rewards"
#echo "Total rewards: $total_rewards ORE"

0
rpc_config Normal file
View File

28
run.sh Normal file
View File

@@ -0,0 +1,28 @@
#!/bin/bash
#rpc=https://go.getblock.io/61bed5f600ab47ff903baacab0e37c36
#rpc=https://api.mainnet-beta.solana.com
rpc=https://crimson-nameless-season.solana-mainnet.quiknode.pro/05858e8f2f620b3705dc985711ee7681a3d00bbd/
# 定义RPC URL数组
rpcurls=($rpc)
for keypair in *.json;
do
# 随机选择一个RPC URL
index=$((RANDOM % ${#rpcurls[@]}))
rpcurl=${rpcurls[$index]}
echo "选中rpc=$rpcurl"
screen -dmS mining_$keypair bash -c "
while true; do
echo \"Starting indefinite ore mining iteration with $keypair....\"
nice -n 20 ore --rpc $rpc --keypair ./$keypair --priority-fee 1000 mine --threads 2
#ore --rpc $rpc --keypair ./$keypair --priority-fee 1000000 mine --threads 16 &
#sleep 5
#ore --rpc $rpc --keypair ./$keypair --priority-fee 1000000 mine --threads 16 &
#wait
done
"
# exit
done

View File

@@ -0,0 +1 @@
[141,135,126,178,83,68,52,209,43,113,151,15,220,200,252,33,113,8,44,113,86,219,19,110,121,124,125,166,17,149,231,42,13,103,194,5,108,122,224,139,9,196,174,169,97,127,66,101,22,159,4,5,252,154,159,226,119,82,90,50,111,72,58,247]