Lighthive update: 0.4.2

in HiveDevslast year (edited)


Lighthive documentation


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_api instead of condenser_api.

Screenshot 2023-02-15 at 19.56.16.png

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 @gamer00 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.

Sort:  

I had no idea about your 'BEEM replacement' until today, awesome! You have my support.

This comment was made by a hive-archeology bot running under the control of @pibara
image.png
The goal of this comment is to act as reward proxy for up-voting valuable timeless content on HIVE for what the one-week upvote window has closed.
The bot script is currently pre-beta.

Man I am such a low level hive user 🤦‍♂️ I should make some time to figure out some of the tools available. This looks quite useful.

nice :) is lighthive the most updated python client?

I remember there already were some, but they arent updated anymore?

I maintain it and do regular releases. However, it's a thin client; meaning you need to know what you're doing :)

Beem is not updated for a while.

Thank you for your witness vote!
Have a !BEER on me!
To Opt-Out of my witness beer program just comment STOP below

STOP

Thank you for your witness vote!
Have a !BEER on me!
To Opt-Out of my witness beer program just comment STOP below

Thank you for your witness vote!
Have a !BEER on me!
To Opt-Out of my witness beer program just comment STOP below

Thank you for your witness vote!
Have a !BEER on me!
To Opt-Out of my witness beer program just comment STOP below

Thank you for your witness vote!
Have a !BEER on me!
To Opt-Out of my witness beer program just comment STOP below

Thank you for your witness vote!
Have a !BEER on me!
To Opt-Out of my witness beer program just comment STOP below

Thank you for your witness vote!
Have a !BEER on me!
To Opt-Out of my witness beer program just comment STOP below

Thank you for your witness vote!
Have a !BEER on me!
To Opt-Out of my witness beer program just comment STOP below

Thank you for your witness vote!
Have a !BEER on me!
To Opt-Out of my witness beer program just comment STOP below

Thank you for your witness vote!
Have a !BEER on me!
To Opt-Out of my witness beer program just comment STOP below

Thank you for your witness vote!
Have a !BEER on me!
To Opt-Out of my witness beer program just comment STOP below

Thank you for your witness vote!
Have a !BEER on me!
To Opt-Out of my witness beer program just comment STOP below

Thank you for your witness vote!
Have a !BEER on me!
To Opt-Out of my witness beer program just comment STOP below

Thank you for your witness vote!
Have a !BEER on me!
To Opt-Out of my witness beer program just comment STOP below

Thank you for your witness vote!
Have a !BEER on me!
To Opt-Out of my witness beer program just comment STOP below

Thank you for your witness vote!
Have a !BEER on me!
To Opt-Out of my witness beer program just comment STOP below

Thank you for your witness vote!
Have a !BEER on me!
To Opt-Out of my witness beer program just comment STOP below

Thank you for your witness vote!
Have a !BEER on me!
To Opt-Out of my witness beer program just comment STOP below

Thank you for your witness vote!
Have a !BEER on me!
To Opt-Out of my witness beer program just comment STOP below

Thank you for your witness vote!
Have a !BEER on me!
To Opt-Out of my witness beer program just comment STOP below

Thank you for your witness vote!
Have a !BEER on me!
To Opt-Out of my witness beer program just comment STOP below

Thank you for your witness vote!
Have a !BEER on me!
To Opt-Out of my witness beer program just comment STOP below

Thank you for your witness vote!
Have a !BEER on me!
To Opt-Out of my witness beer program just comment STOP below

Thank you for your witness vote!
Have a !BEER on me!
To Opt-Out of my witness beer program just comment STOP below

Thank you for a SIMPLE and CLEARLY STATED way to do this. 😊❤️
I really appreciate the help 👍

https://leofinance.io/threads/@rmsadkri/re-emrebeyler-wtmjtnp9uq
The rewards earned on this comment will go directly to the people ( @rmsadkri ) sharing the post on LeoThreads.