Published: 15 Feb 2023 › Updated: 15 Feb 2023
Lighthive update: 0.4.2
A new version of Lighthive is pushed to the Python package index with the tag 0.4.2 . As usual, pip install lighthive --upgrade is enough to get the latest version.
Changelog
- Account history helper was not working well. Fixed the issues there and migrated account history helper to
account_history_apiinstead ofcondenser_api.
Example: GET the all deposits in HIVE to binance deposit account in the last week
import datetime
from lighthive.client import Client
from lighthive.helpers.amount import Amount
client = Client()
account = client.account('deepcrypto8')
one_week_ago = datetime.datetime.utcnow() - datetime.timedelta(days=7)
total_hive = 0
for op in account.history(
stop_at=one_week_ago,
filter=["transfer_operation"]):
if op["to"] != "deepcrypto8":
continue
total_hive += Amount.from_asset(op["amount"]).amount
print("Total HIVE transfers received", total_hive)
- Removed obsolete RC helper
- Updated node list and removed a couple of public nodes that are down, recently.
- Documentation is also updated to reflect the changes.
Shoutout
Thanks for the bug report. In general, if you have any issues and problems with the library, please file a ticket at Github repository or mention my name somwhere in HIVE blockchain.
Leave Lighthive update: 0.4.2 to:
Read more #python posts
Best Posts From Emre
We have not curated any of emrebeyler's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.
More Posts From Emre
- Introducing Hive Wrapped 2025
- Sneak Peek
- Race report: Amertsfoort Half Marathon
- Race Report: Den Haag CPC Loop Half Marathon - 2025
- Crownrend Gameplay Ideas Contest - 75k DENAR Prize Pool
- Automating Holozing reward claims
- NZ
- Sunsetting dPoll
- Nice Half Marathon, Race Report 🏃♂️
- First comment gets 50 HIVE
- Lighthive update v0.4.3
- Revitalizing Beem - Call for feedback
- Here we go again
- Maintenance at hived.emre.sh
- Lighthive update: 0.4.2
- How to help Turkiye to recover from the earthquake
- hived.emre.sh is updated to v1.27.3 with HAF based Hivemind
- Long Run Saturday - 20k
- 2022 Recap
- Witness update - v1.27.3