This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import json | |
from decimal import Decimal | |
from datetime import datetime,timedelta,date | |
telegram_token = '' | |
telegram_chat_id = '' | |
ScannerAddress=[ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo "Enter your key password:" | |
read -s password | |
while true | |
do | |
echo "About to withdraw commission and reward" | |
echo "${password}" | defundd tx distribution withdraw-all-rewards --from w1 --gas auto -y | |
sleep 20 | |
amount=$(defundd q bank balances defund1sq70esujl9swtjrk9hxts990uwgxgavk2lyfpv | |
if [[ $amount > 0 && $amount != "null" ]]; then |