I don't have much time for details at the moment, so here are just my brief thoughts:
- Yes, you can do it that way. There are better approaches, but that's just AI.
- The
account_history_api
unfortunately only returns limited data. As you can see, it does not return all your PowerUps within the year. - I would recommend
transfers_api.getTransfersByTypeTime
. This allows you to get PowerUps and PowerDowns with one query: https://sds0.steemworld.org/describeMethod/transfers_api.getTransfers - You can also query the
dynamic_global_properties
of SDS: https://sds0.steemworld.org/steem_requests_api/condenser_api.get_dynamic_global_properties
Your input is very helpful!
The ways you suggest to change it will optimize it and make the script dependable on one service instead of two, ergo faster and better. I'll have it modified in the next days and I'll share the result.
Do you recommend I use sds0. over just sds.? Any difference you aware of?
Thanks so much!
0.00 SBD,
0.86 STEEM,
0.86 SP
There are no differences at the moment.
sds and sds1 are the stable versions. I think sds is primarily used for steemworld.
Changes are installed on sds0 first. If everything goes well, it goes live on sds and sds1. As there are currently no new changes, all instances have the same status.
0.00 SBD,
0.09 STEEM,
0.09 SP