create account

Analyzing Hive Account Authorities with a New Script by thecrazygm

View this thread on: hive.blogpeakd.comecency.com
· @thecrazygm ·
$8.78
Analyzing Hive Account Authorities with a New Script
Hey everyone,

After my recent post about the follower cleanup script, **@holoz0r** mentioned that it would be neat to aggregate the account authorities of the people you follow/following to see who has given authority to other accounts. I thought that was a fantastic idea, and I couldn't resist writing a script to do exactly that.

The result is a new tool that scans your social graph (followers and following) and builds a local database of all the `posting` and `active` authorities granted between those accounts. It helps you map out the "web of trust" in your corner of the Hive ecosystem.

### How it Works: Scan and Report

The script operates in two modes. First, you **scan** to collect the data, and then you **report** on what you've found.

#### 1. Scanning Your Social Graph

When you first run the script with the `scan` command, it fetches your follower and following lists. It then iterates through each unique account to record who they have granted authority to, saving it all locally in an SQLite database file (`authy.db`).

![Chunking along...](https://files.peakd.com/file/peakd-hive/thecrazygm/23t79QiJmgMbeEfBqtgLn5HAPMDiASmUZVnRtFTaN5yWWkbF1J2VJwzDVPaq9TYs7fYed.png)

After the scan is complete, it gives you a summary of the data it collected.

![Took about 15 minutes to scan them all.](https://files.peakd.com/file/peakd-hive/thecrazygm/23tRvZuKzc7wRM7BgouPoM5cDQ3ptvmMyPnZys6zNa7EVbMfYjFCPmfSjQciPUvcwKFic.png)

#### 2. Reporting on the "Web of Trust"

Once the scan is complete, you can run various reports to analyze the data. You can see who is most trusted with **posting authority** among the accounts in your social graph:

![Not too surprised. But it is a lot...](https://files.peakd.com/file/peakd-hive/thecrazygm/23tRvZr3Q7dasBz75uYZfYsqKzaX2mWQCrZgMcAXMtYpk4nVmR37BU3VwjwX6bZj1DfHT.png)

And you can do the same for **active authority**:

![There were more than I thought...](https://files.peakd.com/file/peakd-hive/thecrazygm/Eo8KedmJ15zsebLgYyhtKFbVE2T3QBxgJnMuMV4nPoYgJRiEF5QVCM7yYkW1uf4XjDd.png)

You can also drill down to see who a specific user, like `@ecoinstant`, grants authority to :

![not trying to throw you under the bus 🤣](https://files.peakd.com/file/peakd-hive/thecrazygm/Eo8KXYAF8bdDDq23XLd8iASosw6sonch4ZvZf3CpuwWRE3akjvjPNLK6ipmkQMjknu1.png)

You can also run one to see who has granted authority to a user. (I would show you the result of:
`bin/python/authy.py report --grants-to steemauto` but let's just say it would be longer than this post.)

![I'm guilty here too though, so...](https://files.peakd.com/file/peakd-hive/thecrazygm/23tRvSfCXWacGxZvi7f1snWz6L4ghyJ8CzLHq6h1QawYVuAbB2JS5L71LdpS8htuuP3qZ.png)


### Get the Script

This tool offers a fascinating glimpse into the social trust layer of Hive. You can find the script in the Gist below. As I've mentioned before, you can run it directly from the URL using `uv`.

- **GitHub Gist:** [https://gist.github.com/TheCrazyGM/1aaed40ca7d45104d982cc4fe77786b6](https://gist.github.com/TheCrazyGM/1aaed40ca7d45104d982cc4fe77786b6)
- **Example Command:** `uv run https://gist.github.com/TheCrazyGM/1aaed40ca7d45104d982cc4fe77786b6`

Just make sure to set your `POSTING_WIF` environment variable before running it, it gathers the account information from that.

As always,
Michael Garcia a.k.a. TheCrazyGM
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 153 others
properties (23)
authorthecrazygm
permlinkanalyzing-hive-account-authorities-with-a-new-script
categoryhive-186392
json_metadata{"app":"peakd/2025.8.3","format":"markdown","tags":["dev","python","uv","archon","tribes","pimp","proofofbrain"],"users":["holoz0r","ecoinstant"],"image":["https://files.peakd.com/file/peakd-hive/thecrazygm/23tRvZuKzc7wRM7BgouPoM5cDQ3ptvmMyPnZys6zNa7EVbMfYjFCPmfSjQciPUvcwKFic.png","https://files.peakd.com/file/peakd-hive/thecrazygm/23t79QiJmgMbeEfBqtgLn5HAPMDiASmUZVnRtFTaN5yWWkbF1J2VJwzDVPaq9TYs7fYed.png","https://files.peakd.com/file/peakd-hive/thecrazygm/23tRvZr3Q7dasBz75uYZfYsqKzaX2mWQCrZgMcAXMtYpk4nVmR37BU3VwjwX6bZj1DfHT.png","https://files.peakd.com/file/peakd-hive/thecrazygm/Eo8KedmJ15zsebLgYyhtKFbVE2T3QBxgJnMuMV4nPoYgJRiEF5QVCM7yYkW1uf4XjDd.png","https://files.peakd.com/file/peakd-hive/thecrazygm/Eo8KXYAF8bdDDq23XLd8iASosw6sonch4ZvZf3CpuwWRE3akjvjPNLK6ipmkQMjknu1.png","https://files.peakd.com/file/peakd-hive/thecrazygm/23tRvSfCXWacGxZvi7f1snWz6L4ghyJ8CzLHq6h1QawYVuAbB2JS5L71LdpS8htuuP3qZ.png"]}
created2025-08-12 09:22:30
last_update2025-08-12 09:22:30
depth0
children9
last_payout2025-08-19 09:22:30
cashout_time1969-12-31 23:59:59
total_payout_value4.042 HBD
curator_payout_value4.736 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length3,323
author_reputation126,664,346,631,055
root_title"Analyzing Hive Account Authorities with a New Script"
beneficiaries
0.
accountthecrazygm.bank
weight1,500
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id144,921,739
net_rshares31,621,352,592,655
author_curate_reward""
vote details (217)
@ervin-lemark ·
$0.02
Hey, very interesting, thanks. I will try it out later ...

@tipu curate
👍  
properties (23)
authorervin-lemark
permlinkre-thecrazygm-2025812t113433228z
categoryhive-186392
json_metadata{"tags":["dev","python","uv","archon","tribes","pimp","proofofbrain"],"app":"ecency/4.2.2-vision","format":"markdown+html"}
created2025-08-12 09:34:42
last_update2025-08-12 09:34:42
depth1
children1
last_payout2025-08-19 09:34:42
cashout_time1969-12-31 23:59:59
total_payout_value0.010 HBD
curator_payout_value0.011 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length72
author_reputation479,111,693,892,382
root_title"Analyzing Hive Account Authorities with a New Script"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id144,922,131
net_rshares75,064,942,621
author_curate_reward""
vote details (1)
@tipu ·
$0.02
<a href="https://tipu.online/hive_curator?ervin-lemark" target="_blank">Upvoted  &#128076;</a> (Mana: 50/70) <a href="https://peakd.com/hive/@reward.app/reward-app-quick-guide-updated" target="_blank">Liquid rewards</a>.
👍  
properties (23)
authortipu
permlinkre-re-thecrazygm-2025812t113433228z-20250812t093447z
categoryhive-186392
json_metadata"{"app": "beem/0.24.26"}"
created2025-08-12 09:34:48
last_update2025-08-12 09:34:48
depth2
children0
last_payout2025-08-19 09:34:48
cashout_time1969-12-31 23:59:59
total_payout_value0.010 HBD
curator_payout_value0.011 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length220
author_reputation55,964,952,090,146
root_title"Analyzing Hive Account Authorities with a New Script"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id144,922,134
net_rshares73,564,757,810
author_curate_reward""
vote details (1)
@hive-lu ·
#### Hello thecrazygm!
**It's nice to let you know that your article won 🥈 place.**
Your post is among the best articles voted 7 days ago by the @hive-lu | King Lucoin Curator by **keithtaylor**
 
You and your curator receive **0.0086 Lu** (Lucoin) investment token and a **8.47%** share of the reward from [Daily Report 754](/lucoin/@hive-lu/daily-report-day-754). Additionally, you can also receive a unique **LUSILVER** token for taking 2nd place. All you need to do is reblog [this](/lucoin/@hive-lu/daily-report-day-754) report of the day with your winnings.
 
<center>[![2.png](https://files.peakd.com/file/peakd-hive/now.calendars/23uEwt7Djmb4N3dE96ecCUemJez6vLU3fmoTrdjEJn1ws4d8iPw2QrrsB22nyhbb178sx.png)](/@hive-lu)</center>
 
---
<center><sub>Invest in the **Lu token** (Lucoin) and get paid. With 50 Lu in your wallet, you also become the curator of the @hive-lu which follows your upvote.
Buy Lu on the [Hive-Engine](https://hive-engine.com/trade/LU) exchange | World of Lu created by @szejq </sub></center>
<center><sub>_If you no longer want to receive notifications, reply to this comment with the word_ `STOP` _or to resume write a word_ `START`</sub> </center>
properties (22)
authorhive-lu
permlinklucoin-prize-08s2dg
categoryhive-186392
json_metadata""
created2025-08-20 02:30:18
last_update2025-08-20 02:30:18
depth1
children0
last_payout2025-08-27 02:30:18
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length1,190
author_reputation34,216,872,067,079
root_title"Analyzing Hive Account Authorities with a New Script"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id145,204,304
net_rshares0
@holoz0r ·
$0.19
Fantastic work, mate :) I will be looking into this (at some point) to try and get a grip on what % of people have auths in steem auto, and see if their voting behaviour is influenced by that, or other auths they have. 

I think this will lead to some very interesting analytical opportunities :) 
👍  , , , , , , , , ,
properties (23)
authorholoz0r
permlinkre-thecrazygm-t0vjja
categoryhive-186392
json_metadata{"tags":["hive-186392"],"app":"peakd/2025.8.3","image":[],"users":[]}
created2025-08-12 09:25:57
last_update2025-08-12 09:25:57
depth1
children4
last_payout2025-08-19 09:25:57
cashout_time1969-12-31 23:59:59
total_payout_value0.096 HBD
curator_payout_value0.096 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length297
author_reputation595,156,360,238,859
root_title"Analyzing Hive Account Authorities with a New Script"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id144,921,848
net_rshares647,785,581,010
author_curate_reward""
vote details (10)
@thecrazygm ·
$0.06
I also have written one that does a combination of both, for every user on hive, I haven't run it yet as I know it will take some time, but the skeleton is there to get a complete census of last "posting" activity, last activity in general, and authorities given.
👍  , , , ,
properties (23)
authorthecrazygm
permlinkre-holoz0r-t0vjn1
categoryhive-186392
json_metadata{"tags":["hive-186392"],"app":"peakd/2025.8.3","image":[],"users":[]}
created2025-08-12 09:28:15
last_update2025-08-12 09:28:15
depth2
children3
last_payout2025-08-19 09:28:15
cashout_time1969-12-31 23:59:59
total_payout_value0.030 HBD
curator_payout_value0.031 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length263
author_reputation126,664,346,631,055
root_title"Analyzing Hive Account Authorities with a New Script"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id144,921,922
net_rshares211,635,665,736
author_curate_reward""
vote details (5)
@holoz0r ·
$0.19
Awesome. We have so much information on the dusty corners of our chain that a lot of people don't really look at. My mind is too analytical to not look in those places. :D 

Once we know the scope of a group / audience / behaviour, we can then extrapolate to what percentage of staked HP is on auto pilot, and what percentage of staked HP appears to not be. 

Although, as I mentioned last time, there's a gap where the authority is not granted, but the voting is still automated by a locally running script, or something hosted on other infrastructure - so it won't be a complete definition of the sizes, but - a rudimentary, (albeit unreliable) baseline of the manual curation % on chain - both by users and HP :) 
👍  , , , , , , , , ,
properties (23)
authorholoz0r
permlinkre-thecrazygm-t0vjrg
categoryhive-186392
json_metadata{"tags":["hive-186392"],"app":"peakd/2025.8.3","image":[],"users":[]}
created2025-08-12 09:30:54
last_update2025-08-12 09:30:54
depth3
children2
last_payout2025-08-19 09:30:54
cashout_time1969-12-31 23:59:59
total_payout_value0.096 HBD
curator_payout_value0.096 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length716
author_reputation595,156,360,238,859
root_title"Analyzing Hive Account Authorities with a New Script"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id144,922,004
net_rshares646,785,630,686
author_curate_reward""
vote details (10)
@tydynrain ·
$0.02
This looks like it would be a fascinating analysis. Thank you again for another very useful tool, my friend! There are so many different parameters that could be used to analyze blockchain data, and I find it all super interesting. 😁 🙏 💚 ✨ 🤙 
👍  
properties (23)
authortydynrain
permlinkre-thecrazygm-2025812t21020904z
categoryhive-186392
json_metadata{"links":[],"type":"comment","tags":["hive-186392","dev","python","uv","archon","tribes","pimp","proofofbrain"],"app":"ecency/3.3.3-mobile","format":"markdown+html"}
created2025-08-13 07:00:21
last_update2025-08-13 07:00:21
depth1
children0
last_payout2025-08-20 07:00:21
cashout_time1969-12-31 23:59:59
total_payout_value0.012 HBD
curator_payout_value0.012 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length242
author_reputation212,952,047,286,407
root_title"Analyzing Hive Account Authorities with a New Script"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id144,950,986
net_rshares88,361,828,256
author_curate_reward""
vote details (1)