Script for Audits stat by satellites

Thank you. I was a little bit scared because the reset… :wink: Now i have checked with the other method and have seen that my audits are over 100 for all satellites. :+1:

Now the test-traffic should increase?

Well, your share of the traffic has increased. But keep in mind traffic is not constant to begin with. The amount you’ll see will still fluctuate.

3 Likes

A post was split to a new topic: Instead of query the database directly is there a way to use the api to retrieve payout info?

and as the new version has changed the format of the JSON (but there is no documentation) I rewrote the satellite audit for powershell:

((curl http://127.0.0.1:14002/api/sno/).Content | ConvertFrom-Json).satellites.id | %{"$_"; ((curl http://127.0.0.1:14002/api/sno/satellite/$_).Content | ConvertFrom-Json).audit}

It’s already updated in the topic :slight_smile:

1 Like

In my case I had to add -UseBasicParsing flag to the curl request of the PowerShell script for it to work.

((curl http://127.0.0.1:14002/api/sno -UseBasicParsing).Content | ConvertFrom-Json).satellites.id | %{"$_"; ((curl http://127.0.0.1:14002/api/sno/satellite/$_ -UseBasicParsing).Content | ConvertFrom-Json).audit}
1 Like

After changing the node api, the script does not show the value :frowning:
@Alexey

Thank you for heads-up! I updated the first post.

1 Like

On windows GUI
I tried the powershell command but it just returns with every single satilite only having 1 audit pr satilite - why? what did i do wrong?

There is no more audits count in the storagenode API. The 1 is a ratio, it’s 100% on the dashboard. There’s almost no point to use this script anymore - all this info is available on the dashboard.

If you want to know the vetting status, you can use this script instead: Earnings calculator (Update 2021-04-15: v10.1.2 - Detailed payout information: Now includes comparison to actual payout, postponed payouts due to threshold and transaction links!)