Had an interesting little side job this morning helping a Hive user out. They needed to claim their pending HIVE/HBD rewards across a whole bunch of different accounts they manage, and it got me thinking about the hassle involved. Logging in and out of multiple accounts, even if it's just via Keychain clicks, solely to click 'Claim Rewards' can be a real headache, especially if you manage several accounts. So, that little task inspired me to put together a more generic tool to streamline this process: introducing **`claim-rewards`**, a Python script designed to let you claim pending rewards for multiple Hive accounts using the posting authority of just _one_ main account. ## How Does It Work? (Leveraging Posting Authority) The magic behind this script relies on Hive's flexible account authority system. Let's say you manage several accounts: `alt-account1`, `alt-account2`, `alt-account3`, etc., but you primarily use `your-main-account`. You need to grant _posting authority_ from each of those alt accounts (`alt-account1`, `alt-account2`, etc.) _to_ `your-main-account`. A straightforward way to manage these account authorities is by using our **Hive Account Authority tool**, which you can find right here: [**https://thecrazygm.com/hivetools/account/authority**](https://thecrazygm.com/hivetools/account/authority) Once you've used the tool to grant the necessary posting authorities on the Hive blockchain, `your-main-account` gains the ability to perform posting-level actions β including claiming rewards! β on behalf of those other accounts. This script leverages that. You provide the posting key for `your-main-account`, and a list of all the accounts (`your-main-account`, `alt-account1`, `alt-account2`, etc.), and it iterates through, claiming rewards for each using `your-main-account`'s granted authority. ## Setup and Usage The setup is pretty straightforward: 1. **Grant Authorities:** Before running the script, you _must_ grant posting authority from your alt accounts to your main account on the Hive blockchain. The script relies on these permissions being set correctly. 2. **Create `accounts.yaml`:** Create a YAML file (by default, the script looks for `accounts.yaml` in the same directory, but you can specify a path using `--accounts`). This file lists all the accounts you want to process. **Important:** List your main account (the one whose posting key you'll use) _first_. ```yaml # Example accounts.yaml # The first account is the authority account whose WIF will be used. # Ensure this account has been granted posting authority by the other accounts below. accounts: - your-main-account # WIF for this account is needed - alt-account1 - alt-account2 - some-other-account-you-manage # Optional: You can put the WIF here instead of using --wif or ENV var # wif: 5JYourPostingPrivateKeyHere ``` 3. **Provide Posting Key:** The script needs the posting WIF (private key) for your main account. You can provide it in one of three ways: - Add it directly to the `accounts.yaml` file (under the `wif:` key, see example above). - Pass it using the `--wif` command-line argument when running the script. - Set it as an environment variable named `POSTING_WIF`. 4. **Run the Script:** Execute the script. Since it uses the `uv run --script` shebang, if you have `uv` installed, it should handle the dependencies (`hive-nectar`, `pyyaml`) automatically. Otherwise, you might need to install them manually first. ## Seeing it in Action Here's a quick look at the script running normally:  And here's an example with the `--debug` flag enabled for more verbose output, showing which accounts are being processed and what rewards are found:  ## Technical bit For those curious about the code using `hive-nectar`, the core action happens with something like `main_account.claim_reward_balance(account=target_account_name)`, where `main_account` is the `Account` object instantiated with your main account's WIF. Now I can put this bad boy in a cron job and never have to worry about the other accounts again! ## Get the Tool! The complete code, along with more detailed setup instructions and usage examples (including the handy `--dry-run` option to see what it _would_ do without actually broadcasting anything), is available on GitHub: [**https://github.com/TheCrazyGM/claim-rewards**](https://github.com/TheCrazyGM/claim-rewards) Hopefully, this little utility saves some fellow Hive users the repetitive strain of clicking "Claim Rewards" across many accounts! Let me know if you find it useful! As always, Michael Garcia a.k.a. TheCrazyGM
author | thecrazygm | ||||||
---|---|---|---|---|---|---|---|
permlink | new-tool-claim-hive-rewards-for-multiple-accounts-easily | ||||||
category | hive-186392 | ||||||
json_metadata | {"app":"peakd/2025.4.6","format":"markdown","image":["https://files.peakd.com/file/peakd-hive/thecrazygm/Eo44H4KmHixkf2n147vSNcRd8TvVkoSEbVCVztFSNnfmFRDT1xZeRk4ZhYuzksWp3rf.png","https://files.peakd.com/file/peakd-hive/thecrazygm/23tRrM22rd2dEnCJ6ExGHjZ61MnMv21QaxzMraBSPhq2mK2Hzoc3FYKSQrZJwgZjZ2vkQ.png"],"tags":["dev","nectar","income","tribes","archon","proofofbrain"],"users":[]} | ||||||
created | 2025-04-24 16:57:36 | ||||||
last_update | 2025-05-04 14:12:45 | ||||||
depth | 0 | ||||||
children | 5 | ||||||
last_payout | 2025-05-01 16:57:36 | ||||||
cashout_time | 1969-12-31 23:59:59 | ||||||
total_payout_value | 4.019 HBD | ||||||
curator_payout_value | 4.713 HBD | ||||||
pending_payout_value | 0.000 HBD | ||||||
promoted | 0.000 HBD | ||||||
body_length | 5,035 | ||||||
author_reputation | 94,082,504,161,142 | ||||||
root_title | "New Tool: Claim Hive Rewards for Multiple Accounts Easily!" | ||||||
beneficiaries |
| ||||||
max_accepted_payout | 1,000,000.000 HBD | ||||||
percent_hbd | 10,000 | ||||||
post_id | 142,296,835 | ||||||
net_rshares | 27,047,631,543,150 | ||||||
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
good-karma | 0 | 10,956,438,570 | 1% | ||
roelandp | 0 | 7,065,203,458 | 0.37% | ||
seckorama | 0 | 159,220,040,821 | 40% | ||
eforucom | 0 | 20,246,683,518 | 100% | ||
gamer00 | 0 | 19,480,110,776 | 5% | ||
discovereurovelo | 0 | 1,149,470,859 | 0.75% | ||
esteemapp | 0 | 2,861,681,995 | 1% | ||
fronttowardenemy | 0 | 4,191,641,523 | 1.5% | ||
borislavzlatanov | 0 | 15,660,731,109 | 100% | ||
fernwehninja | 0 | 21,682,428,861 | 100% | ||
lizanomadsoul | 0 | 3,319,343,084 | 1.5% | ||
mes | 0 | 372,471,156,935 | 24% | ||
ecoinstant | 0 | 152,031,211,742 | 100% | ||
cryptoknight12 | 0 | 42,290,913,244 | 100% | ||
princessmewmew | 0 | 2,069,050,640 | 0.75% | ||
joeyarnoldvn | 0 | 453,188,753 | 1.47% | ||
eturnerx | 0 | 26,560,800,356 | 2% | ||
pixelfan | 0 | 52,587,448,715 | 5.8% | ||
likedeeler | 0 | 255,484,280,735 | 100% | ||
aaronleang | 0 | 10,516,673,028 | 20% | ||
noloafing | 0 | 3,004,713,578 | 49.76% | ||
kimzwarch | 0 | 16,186,867,893 | 4% | ||
artlover | 0 | 1,492,079,869 | 100% | ||
fatman | 0 | 9,226,637,340 | 2% | ||
votehero | 0 | 27,151,673,288 | 5.5% | ||
omra-sky | 0 | 164,495,672,299 | 100% | ||
meno | 0 | 949,120,396,626 | 40% | ||
sayee | 0 | 595,307,245 | 0.9% | ||
esteem.app | 0 | 347,900,083 | 1% | ||
phoenixwren | 0 | 51,099,348,386 | 50% | ||
xsasj | 0 | 2,167,473,605 | 1.5% | ||
jozefkrichards | 0 | 4,885,983,112 | 50% | ||
itchyfeetdonica | 0 | 5,897,405,645 | 0.75% | ||
sneakyninja | 0 | 17,415,692,861 | 24.88% | ||
steembasicincome | 0 | 5,504,010,365,105 | 100% | ||
deepresearch | 0 | 1,495,647,870,889 | 33% | ||
gabrielatravels | 0 | 1,057,527,776 | 0.52% | ||
manncpt | 0 | 3,218,103,262 | 1.5% | ||
jnmarteau | 0 | 633,837,386 | 1.5% | ||
anikys3reasure | 0 | 2,581,237,210 | 50% | ||
bhattg | 0 | 6,129,361,799 | 1% | ||
sbi2 | 0 | 3,802,027,515,225 | 100% | ||
dera123 | 0 | 38,415,315,095 | 100% | ||
rambutan.art | 0 | 38,965,632,405 | 100% | ||
greddyforce | 0 | 1,592,934,865 | 0.75% | ||
awesomegames007 | 0 | 1,342,905,136 | 50% | ||
gadrian | 0 | 431,782,265,150 | 30% | ||
sbi3 | 0 | 1,824,878,303,223 | 100% | ||
sbi4 | 0 | 1,167,667,967,066 | 100% | ||
fw206 | 0 | 2,512,111,220,333 | 30% | ||
netzisde | 0 | 3,790,582,408 | 100% | ||
crypticat | 0 | 2,910,569,433 | 0.75% | ||
sketch17 | 0 | 2,570,466,896 | 100% | ||
bububoomt | 0 | 5,886,152,754 | 100% | ||
sbi5 | 0 | 926,377,880,123 | 100% | ||
sbi6 | 0 | 725,000,579,117 | 100% | ||
thedailysneak | 0 | 23,487,292,481 | 24.88% | ||
digi-me | 0 | 2,093,637,816 | 0.5% | ||
teamvn | 0 | 18,107,516,939 | 14.23% | ||
sbi7 | 0 | 546,347,353,713 | 100% | ||
tdas0 | 0 | 2,000,165,104 | 50% | ||
voter003 | 0 | 27,390,049,797 | 11.1% | ||
ecoinstats | 0 | 1,279,113,931,870 | 100% | ||
sbi8 | 0 | 400,398,632,450 | 100% | ||
piestrikesback | 0 | 702,736,882 | 100% | ||
sbi9 | 0 | 285,693,817,678 | 100% | ||
buildingpies | 0 | 51,280,182,473 | 100% | ||
sbi10 | 0 | 220,189,391,793 | 100% | ||
itsfall173 | 0 | 3,398,929,988 | 100% | ||
cpl-17 | 0 | 2,130,396,772 | 100% | ||
unicornslayer | 0 | 1,558,793,026 | 100% | ||
shauner | 0 | 523,485,026 | 50% | ||
imbartley | 0 | 454,999,573 | 15% | ||
lrekt01 | 0 | 5,330,411,357 | 80% | ||
ezun1 | 0 | 4,014,991,875 | 100% | ||
sbi-tokens | 0 | 42,275,295,567 | 49.76% | ||
elianaicgomes | 0 | 9,386,210,312 | 5% | ||
qwertm | 0 | 4,851,278,382 | 50% | ||
ecobanker | 0 | 90,643,598,619 | 100% | ||
treasure.hoard | 0 | 103,467,609,197 | 100% | ||
dpend.active | 0 | 3,838,086,114 | 10% | ||
mordorgrinders | 0 | 1,557,809,941 | 100% | ||
hivebuzz | 0 | 11,984,599,709 | 3% | ||
pinmapple | 0 | 780,334,765 | 1.5% | ||
ykretz | 0 | 1,355,287,861 | 15% | ||
sketching | 0 | 6,782,290,653 | 50% | ||
kiemis | 0 | 9,021,475,691 | 2.5% | ||
ecency | 0 | 419,859,763,586 | 1% | ||
quantumg | 0 | 178,591,177,443 | 100% | ||
woelfchen | 0 | 122,534,677,092 | 30% | ||
archon-gov | 0 | 31,768,451,140 | 20% | ||
ecency.stats | 0 | 371,223,012 | 1% | ||
friendlymoose | 0 | 1,056,283,836,051 | 100% | ||
fotobrina | 0 | 2,819,490,664 | 50% | ||
tehox | 0 | 108,986,704,355 | 100% | ||
he-index | 0 | 17,336,473,767 | 10% | ||
szukamnemo | 0 | 56,302,731,330 | 16.5% | ||
trostparadox | 0 | 753,843,502,277 | 100% | ||
emsenn0 | 0 | 1,976,052,630 | 9.95% | ||
xyba | 0 | 47,312,453,366 | 100% | ||
neshk | 0 | 18,116,238,389 | 100% | ||
ichheilee | 0 | 118,641,044 | 100% | ||
anzuelillo | 0 | 1,156,859,733 | 100% | ||
photolovers1 | 0 | 750,837,428 | 1% | ||
davidbright | 0 | 19,199,195,353 | 50% | ||
magic.leo | 0 | 0 | 100% | ||
menzo | 0 | 5,610,524,917 | 10% | ||
tub3r0 | 0 | 767,178,288 | 10% | ||
mxm0unite | 0 | 1,555,077,856 | 50% | ||
dstampede | 0 | 1,502,956,288 | 100% | ||
ingi1976 | 0 | 11,176,818,516 | 50% | ||
eolianpariah2 | 0 | 1,218,833,265 | 0.55% | ||
techguard | 0 | 1,138,101,220 | 16.5% | ||
txracer | 0 | 2,355,834,301 | 100% | ||
tydynrain | 0 | 16,076,219,347 | 10% | ||
herman-german | 0 | 6,929,177,602 | 50% | ||
itsaboutbleu | 0 | 1,517,224,754 | 100% | ||
everhive | 0 | 1,524,206,297 | 100% | ||
quantumgee | 0 | 7,670,870,274 | 100% | ||
itsmikyhere | 0 | 453,378,615 | 0.75% | ||
hivedy | 0 | 1,524,423,893 | 100% | ||
bee.voter | 0 | 325,269,850 | 50% | ||
nabbas0786 | 0 | 448,188,017 | 90% | ||
briefmarken | 0 | 45,467,071,757 | 100% | ||
ecency.waves | 0 | 0 | 1% | ||
monzo | 0 | 5,643,751,809 | 100% | ||
blablableu | 0 | 1,657,135,203 | 100% | ||
lolz.byte | 0 | 0 | 100% | ||
michael561 | 0 | 2,679,329,771 | 9.95% | ||
honeyjean24 | 0 | 916,826,018 | 50% | ||
magic.byte | 0 | 0 | 100% |
Would be great if the script would also claim the SCOT rewards on hive-engine once a day π
author | herman-german |
---|---|
permlink | re-thecrazygm-svpizy |
category | hive-186392 |
json_metadata | {"tags":["hive-186392"],"app":"peakd/2025.4.6","image":[],"users":[]} |
created | 2025-05-03 22:40:48 |
last_update | 2025-05-03 22:40:48 |
depth | 1 |
children | 2 |
last_payout | 2025-05-10 22:40:48 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.096 HBD |
curator_payout_value | 0.096 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 90 |
author_reputation | 17,413,738,323,227 |
root_title | "New Tool: Claim Hive Rewards for Multiple Accounts Easily!" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 142,493,392 |
net_rshares | 553,998,533,491 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
thecrazygm | 0 | 43,962,902,696 | 100% | ||
ecoinstant | 0 | 144,320,633,895 | 100% | ||
fatman | 0 | 9,229,165,336 | 2% | ||
votehero | 0 | 274,422,433,150 | 54.5% | ||
investegg | 0 | 27,300,376,939 | 14.4% | ||
voter002 | 0 | 27,469,280,085 | 63.2% | ||
voter000 | 0 | 27,293,741,390 | 55.3% |
Nothing to see here. ;)  I'll release it in a day or two when I'm done working the bugs out.
author | thecrazygm |
---|---|
permlink | re-herman-german-svqq3e |
category | hive-186392 |
json_metadata | {"tags":["hive-186392"],"app":"peakd/2025.4.6"} |
created | 2025-05-04 14:11:39 |
last_update | 2025-05-04 14:11:39 |
depth | 2 |
children | 1 |
last_payout | 2025-05-11 14:11:39 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.304 HBD |
curator_payout_value | 0.303 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 227 |
author_reputation | 94,082,504,161,142 |
root_title | "New Tool: Claim Hive Rewards for Multiple Accounts Easily!" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 142,504,056 |
net_rshares | 1,670,843,569,757 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
ecoinstant | 0 | 150,228,355,241 | 100% | ||
eturnerx | 0 | 26,520,183,613 | 2% | ||
fatman | 0 | 9,235,431,749 | 2% | ||
abrockman | 0 | 1,272,247,479,211 | 100% | ||
voter001 | 0 | 27,145,091,035 | 27.6% | ||
voter000 | 0 | 27,041,614,552 | 54.2% | ||
herman-german | 0 | 7,462,739,642 | 50% | ||
mithrildestiny | 0 | 150,962,674,714 | 100% |
Thatβs awesome. πͺ
author | herman-german |
---|---|
permlink | re-thecrazygm-svqxxx |
category | hive-186392 |
json_metadata | {"tags":["hive-186392"],"app":"peakd/2025.4.6","image":[],"users":[]} |
created | 2025-05-04 17:01:09 |
last_update | 2025-05-04 17:01:09 |
depth | 3 |
children | 0 |
last_payout | 2025-05-11 17:01:09 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.098 HBD |
curator_payout_value | 0.098 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 17 |
author_reputation | 17,413,738,323,227 |
root_title | "New Tool: Claim Hive Rewards for Multiple Accounts Easily!" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 142,508,070 |
net_rshares | 550,590,532,529 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
thecrazygm | 0 | 36,083,497,510 | 100% | ||
ecoinstant | 0 | 147,246,358,171 | 100% | ||
eturnerx | 0 | 276,186,695,389 | 20.8% | ||
fatman | 0 | 9,232,297,916 | 2% | ||
votehero | 0 | 27,173,509,797 | 5.4% | ||
investegg | 0 | 27,378,797,438 | 14.4% | ||
voter001 | 0 | 27,289,376,308 | 27.9% |
very cool bud... very cool.
author | meno |
---|---|
permlink | re-thecrazygm-sv8nx1 |
category | hive-186392 |
json_metadata | {"tags":["hive-186392"],"app":"peakd/2025.4.6","image":[],"users":[]} |
created | 2025-04-24 20:07:48 |
last_update | 2025-04-24 20:07:48 |
depth | 1 |
children | 0 |
last_payout | 2025-05-01 20:07:48 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.040 HBD |
curator_payout_value | 0.039 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 29 |
author_reputation | 521,450,717,635,018 |
root_title | "New Tool: Claim Hive Rewards for Multiple Accounts Easily!" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 142,299,662 |
net_rshares | 232,117,735,732 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
thecrazygm | 0 | 30,433,588,913 | 100% | ||
ecoinstant | 0 | 86,127,455,211 | 100% | ||
eturnerx | 0 | 25,771,043,658 | 2% | ||
fatman | 0 | 9,229,993,311 | 2% | ||
votehero | 0 | 26,842,747,583 | 5.4% | ||
voter003 | 0 | 26,608,332,862 | 10.8% | ||
eturnerx-dbuzz | 0 | 27,104,574,194 | 73.5% |
More excellent tools! I didn't even know that posting authority could be granted to another account, super cool, and you even made a too for that too! I'm really glad that I started following you, as I find and learn so much great stuff! π π π β¨ π€
author | tydynrain |
---|---|
permlink | re-thecrazygm-2025424t214410659z |
category | hive-186392 |
json_metadata | {"tags":["dev","nectar","income","tribes","archon","proofofbrain"],"app":"ecency/3.2.0-vision","format":"markdown+html"} |
created | 2025-04-25 07:44:15 |
last_update | 2025-04-25 07:44:15 |
depth | 1 |
children | 0 |
last_payout | 2025-05-02 07:44:15 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.091 HBD |
curator_payout_value | 0.090 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 248 |
author_reputation | 203,179,022,448,406 |
root_title | "New Tool: Claim Hive Rewards for Multiple Accounts Easily!" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 142,307,938 |
net_rshares | 529,590,869,452 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
thecrazygm | 0 | 29,824,610,260 | 100% | ||
ecoinstant | 0 | 112,018,530,156 | 100% | ||
eturnerx | 0 | 26,562,765,682 | 2% | ||
tomiscurious | 0 | 269,451,696,290 | 45.9% | ||
fatman | 0 | 9,229,993,311 | 2% | ||
votehero | 0 | 26,424,338,712 | 5.3% | ||
msp-makeaminnow | 0 | 26,677,883,448 | 29.1% | ||
voter003 | 0 | 26,555,539,849 | 10.2% | ||
projectdignity | 0 | 2,465,862,277 | 100% | ||
we-are-palcoin | 0 | 379,649,467 | 100% |