Python Libraries: No More BEEM

image.png

I spent the last weekend re-writing my voting BOT. It’s a thankless task, and I have been putting it off for months. When I get my Python hat on, I roll, but it's tough finding that headwear sometimes.

There are more interesting things to do like playing Assassin's Creed Odyssey or re-playing it. Wasted time, it surely is and after a 4 hour session I feel so guilty for not having achieved anything.


image.png
...'hunting down Mercenaries and Cultists is surely more fun than this?'... - Source

Gaining TWO levels does not count, as this is strictly escapism in the finest sense, though entertaining.

So I wasted two days, re-writing my abortion of a legacy script that works very well but looks fucking awful. ‘BEEM the deprecated', it had to go and nearly has.

The idea of showing some deserving UK Hivers love, due to @c0ff33a's old @teamuksupport ceasing to be sounded great, but this was not my idea.

@livingktaiwan asked me if I could convert my old BOT, and suddenly that elusive Python hat appeared in front of my eyes as if by magic.


image.png
...'thanks @steevc, these lists of yours came in very handy'...

@steevc’s large list of UK people helped me out and I have to say a big thanks to @livingktaiwan for supplying me the data formatted in a list.

After a very productive Saturday and an equally unproductive Sunday, the BOT was ready for its first run-through and crashed spectacularly.

It’s my fault for naming it v1.0. It should have been at least v1.1 for as everyone knows v.1.0 of anything does not work.

Running scripts against lists always surprises me with the data it feeds out. It's one of the joys of being able to code; to see that 'thing' you are developing spring into life.

There are still some bugs in it, but it's kind of working though hardly draining my voting power.


image.png
...'a common sight, hardly anyone posts content on HIVE, at least from the UK'...

There's barely anyone posting and a single run-through didn't quite achieve what I was looking for.

My old BOT relied heavily on BEEM and Saturday was bliss, with not a BEEM Import on the horizon.

Then Sunday arrived, the BOT was 90% done and that last 10% was going to give me some shit. I wanted to use the Condenser API calls and had found functions for almost everything except a couple of pertinent ones.

- get_voting_power

I had used BEEM previously and try as I may, I could not get a condenser function to return the correct values. After fucking around for a couple of hours I caved in and added the BEEM library.

# -----------------------------------------------------------------------------
# Function to get the voting power of an account using fucking BEEM :(
def get_voting_power(voter):
    try:
        account = Account(voter, blockchain_instance=hive)
        vp = round(account.get_voting_power(), 2)  # Convert to percentage
        return vp
    except Exception as e:
        print(f"Error retrieving voting power for @{voter}: {e}")
        return None
# -----------------------------------------------------------------------------

As you can see, I was far from happy but I wanted the new toy to be finished by the end of the weekend. I knew once my coding head was off the rails, it would be tough for me to re-attach.

- vote

This was puzzling, there must be a way to vote using clear-text credential posting keys. Yet again, I could not find a way to do it, nothing was working and Sunday afternoon was turning into dusk.

# -------------------------------------------------------------------------------
def vote(post, author, ivoteweight, voter, lasestpost):

    print()
    if hasAuthorVoted(voter, author, lasestpost):
        print (bcolors.RED + f" Post has already been voted by @{voter}, skipping..." +     bcolors.END)
        return
    else:
        print(bcolors.YELLOW + f" Post has NOT previously been voted by @{voter}..." + bcolors.END)
        print(bcolors.YELLOW + f' Post will be voted at {ivoteweight:.2f}%' + bcolors.END)

        if not debugmode:
            post.upvote(weight=ivoteweight, voter=voter)

        print()
        print(bcolors.GREEN + " STATUS: Success!!!"+ bcolors.END)

    return
# -------------------------------------------------------------------------------

'lasestpost'- I was getting tired, but spelling mistake or not, it would work!

BEEM again to the rescue, and thanks @felixxx for helping me out converting a permalink string to a BEEM comment.

The documentation may seem extensive for this ageing library but as all my other functions DON'T use BEEM, the permalinks I had were not BEEM comments, and I needed them to be in that specific format for the vote function to work.

# ---------------------------------------------------------------------------
def permalink_to_beem_comment(permalink):

    hive = Hive(node = activenode)
    post = Comment(permalink, hive_instance=hive)
    return post
# ---------------------------------------------------------------------------

It's easy enough so long as you have a definition within activenode, otherwise, you get a 'String Indices’ error that tells you nothing. Luckily I have friends who know the idiosyncrasies of this library.

So… for the moment:

activenode = "https://api.deathwing.me"

Thanks @deathwing, I find your node particularly reliable and you have a cool name, so I used you.

As for the BOT and who it’s going to vote that will remain a secret. If you are from the UK or are an ex-patriot I will know about you via @steevc's list, so maybe not so secret.

I want to thank several other Orca's (who will remain nameless) who have thrown in and, supported this BOT by following a specific account that triggers further votes.


image.png
...'Orca Support - don't expect $$, but it's better than nothing'... - Source

If it was just @livingktaiwan and me it would have been decent but having that handful of other voters makes it more significant.

Please don’t ask to be added to the list, if you are deserving and from the UK then I will seek you out and give you support.

Lastly, I will give big comment votes out to anyone who can replace these fucking BEEM functions with working Condenser ones!

RedLine.png

Do you like posting your Urbex content and photography for FREE on Facebook and YouTube? I like to get some form of reward for my work and every time I create I do just that. Take a look at The Urbex Community on HIVE.

If you want to keep creating for FREE then ignore what you are reading. If you want to be like me and gain something other than BUGGER ALL for your work then click here and learn about posting on the HIVE blockchain.


My Urban Exploration Tales can be found directly on the internet via my
Website: 'Tales of the Urban Explorer'.

RedLine.png

TalesLogo.JPG

RedLine.png


CurieCurator.jpg

RedLine.png

Drooling Maniac.JPG

If you found this article so invigorating that you are now a positively googly-eyed, drooling lunatic with dripping saliva or even if you liked it just a bit, then please upvote, comment, rehive, engage me or all of these things.



0
0
0.000
54 comments
avatar

Understood every single individual word above but not them stringed together 😵‍💫

Hopefully the support will make some difference to deserving Brits and encourage more to be active. Pay it forward is a great way to make Hive grow

0
0
0.000
avatar

LOL, there's other stuff in there, for non-geeks, I had to write it that way. Almost BEEM free, but it's not going to for away for the moment.

0
0
0.000
avatar

Nothing against python since I use mostly in, I am more fluent for sure. But since I stepped a bit in javascript I felt that the Hive client in JS is easier to get what you want... you look good in general logics , I recommend you try it out!

0
0
0.000
avatar

I will do at some point, I don't have an issue switching languages, other than getting used to the weird things (python and its annoying indentation insistence) and syntax.

0
0
0.000
avatar

weird things (python and its annoying indentation insistence)
hhehe the old debate of the pro and con indentation ahahha I was forced to give up on Perl because of that hehehe

0
0
0.000
avatar

I could never get to grips with Perl, a very cryptic looking language.

0
0
0.000
avatar

Thanks @deathwing, I find your node particularly reliable and you have a cool name, so I used you.

@deathwing's node seems to also be the only one that supports ipv6.
A witness worth supporting, I think.

Lastly, I will give big comment votes out to anyone who can replace these fucking BEEM functions with working Condenser ones!

Unless you want to build your own transaction signing, using a library like BEEM is ok.
I just avoid BEEM's higher level object stuff and stick to the underlying core functions.

0
0
0.000
avatar

I just hope the functions in that library don't suddenly stop working due to changes made by the developers. I know @sagarkothari88 uses Javascript for his routines, but how about the vote method?

0
0
0.000
avatar

Hello @slobberchops
Is that a question for me?
We are working on integrating Post Details, Vote, Comment within HiFind App.

0
0
0.000
avatar

Is that a question for me?

It was, care to share your vote function?

0
0
0.000
avatar

Here is the code snippet for upvote that I use.

async function doUpvote(client, account, key, author, permlink, weight, wv, curator) {
  const ops = [
    [
      "vote",
      {
        voter: account,
        author: author,
        permlink: permlink,
        weight: weight,
      },
    ],
  ];
  try {
    logger.info(`Waiting for 5 seconds beore upvoting`);
    await new Promise((resolve) => setTimeout(resolve, 1000 * 3));
    const result = await client.broadcast.sendOperations(ops, key);
    logger.info(`Broadcasted operation successfully ${JSON.stringify(result)}`);
    return `Upvoted & result is - ${JSON.stringify(result)}`;
  } catch (err) {
    logger.error(err);
    throw err;
  }
}

module.exports = {
  doUpvote,
};


via Inbox

0
0
0.000
avatar
(Edited)
from beem import Hive

hive = Hive(keys=['postingkey'])
hive.vote(weight=weight, account=account, identifier=authorperm)
0
0
0.000
avatar

That looks very simple, will give it a try... thanks.

0
0
0.000
avatar

I just hope the functions in that library don't suddenly stop working due to changes made by the developers.

I think you misunderstand.
BEEM is abandoned. There will be no changes.
Even if there were any - it's on github and you can always clone into an older version - the one that was working for you.

As long as there are no significant changes to how Hive nodes work, it will keep working, especially if you stick to the core functions, like I showed above.
Problematic with BEEM are the more abstract, higher level functions - some of them broke, when Hive changed.

The core features still work all the same and never changed since block 0.

0
0
0.000
avatar

I mean the HIVE developers, not @holger80. His API is reliant on the base infrastructure code being as it was (3 years ago). Am I getting this wrong...?

0
0
0.000
avatar
(Edited)

Hive's core features still work all the same and never changed since the first block, 8 years ago.

Likewise, BEEM's core functions (inherited from Piston) also never changed for those 8 years.

If you stay away from the higher level, abstract classes of BEEM, or at least use them consciously, you can probably use it forever.

0
0
0.000
avatar

OK,... I was under the impression some BEEM functions might stop working due to HIVE tinkering.., good to know.

0
0
0.000
avatar

Let's delve into the Builda whale farm on the Hive, Gogreenbuddy, who is also colloquially known as the Marky mark USAINVOTE UPMYVOTE IPROMOTE PUNKTEAM and 100's more if not thousands this individual has asserted that his intentions behind this initiative are driven by a desire to contribute positively to the community. Now, let's explore what he is earning on a monthly basis from this venture. income is said to be generated through the use of multiple alternative accounts, which he utilizes to cast votes in favor of his own shit content. The community seems to have mixed feelings about this practice many are scared to speak up.

Are you ready to delve deeper into this topic and uncover more insights? If so, let's proceed. It's time to wake up and gain a clearer understanding of the situation at hand.

Buildawhale

Curation Rewards

Total rewards according to loaded activities and filters
Time loaded: 25 days ago
Total HP: 15,283.568
Total HBD: 0.000
Total HIVE: 0.000
https://peakd.com/@buildawhale/activities

The Marky mark

Curation Rewards

Total rewards according to loaded activities and filters
Time loaded: a month ago
Total HP: 13,913.812
Total HBD: 0.000
Total HIVE: 0.000

https://peakd.com/@themarkymark/activities

Usainvote

Curation Rewards

Total rewards according to loaded activities and filters
Time loaded: Jul 20, 2024
Total HP: 7,026.082
Total HBD: 0.000
Total HIVE: 0.000

https://peakd.com/@usainvote/activities

Apeminingclub

Curation Rewards

Total rewards according to loaded activities and filters
Time loaded: Jul 22, 2024
Total HP: 28.306
Total HBD: 0.000
Total HIVE: 0.000

https://peakd.com/@apeminingclub/activities

Gogreenbuddy

Curation Rewards

Total rewards according to loaded activities and filters
Time loaded: Jul 15, 2024
Total HP: 1,960.063
Total HBD: 0.000
Total HIVE: 0.000

https://peakd.com/@gogreenbuddy/activities

On Hive a significant issue exists with automatic upvotes consistently rewarding the same individuals day in and day out

We want to address the issue of downvoting. It has caused pain to many people, and we want to make sure it doesn't happen again reply to @jacobtothe

On Hive a significant issue exists with automatic upvotes consistently rewarding the same individuals day in and day out

We hope that those who genuinely care about Hive will reconsider their actions, as continuing down this path could inadvertently harm innocent users who are unaware of these issues

lol the Marky mark keeps dreaming

There's been a notable increase in frustration and concern among many users

Reply 2 @crimsonclad You may consider yourself clever

Reply to @crimsonclad

Consider revising the value plan, as it's not providing significant benefits to HIVE

The Value Plan, as it stands, seems to be a one-sided relationship with the HIVE platform, where the benefits are one-way

Actions indeed speak louder than words, a fact we've all observed individuals may talk a good game, a whole lot of shit, but their actions often expose their genuine nature LOL

We consider it unwise to engage in harmful actions, even if you think you can escape the repercussions

https://hive.blog/politics/@jacobtothe/re-bpcvoter1-shjdc8

The Hive Police aka Hivewatchers, are the real heroes of Hive LOL, aren't they?

Feast your eyes on Hive's trending page, what a load of trash

LoL it's the Hivewatchers Hive Police, dishing out orders like a bakery LOL! Folks, do what you want with your Hive power, just as you please. And you, Hivewatchers, downvote away, but remember, judgment day's coming

Harry fam We're just here, laughing at the shenanigans on Hive! Sure, our content's getting downvoted, but hey, it's all part of the game LOL

https://hive.blog/hive-158694/@hivewatchers/shhnhs

adm [-]
meesterboom [-]
steemcleaners [-]
jacobtothe [-]
logic [-]
chekohler [-]
b00m [-]
celestegray [-]
citizensmith [-]
sazbird [-]
technicalside [-]
bagpuss [-]
vxn666 [-]
spaminator [-]
meestemboom [-]
ihal0001 [-]
tillmea [-]
meesterleo [-]
meesterbrain [-]
unclefunker [-]
and 1 more

https://hive.blog/hivewatchers/@bpcvoter/shqkqc

On Hive, there's a user who frequently burns a significant amount of Hive LOL with his own accounts

How To Fool An Entire Population

it's so, so concerning to see Blocktrades delegating 2+ million Hive power to Buildawhale, and Buildawhale is downvoting legitimate content

We began sharing factual information following unwarranted downvotes on Hive it's all in the transactions

Upon examining our posts, you will notice they have been downvoted, and we've been labeled as scammers and spammers, which we find amusing. We consistently share new content

Once again, we ask why is our legit content being downvoted on Hive and what is the reason behind it. Hivewatchers ADM spaminator steemcleaners guiltyparties logic

We have Hive witnesses farming Hive, self-voting, operating comment farms, and self-funding projects with community resources

https://peakd.com/@themarkymark/activities

https://peakd.com/@buildawhale/activities

https://peakd.com/@blockheadgames/activities

https://peakd.com/@hiveauctions/activities

https://peakd.com/@gogreenbuddy/activities

https://peakd.com/@meritocracy/activities

https://peakd.com/@gogreenbuddy/activities

https://peakd.com/@jacobtothe/activities

https://peakd.com/@usainvote/activities

https://peakd.com/@leovoter/activities

https://peakd.com/@usainvote/activities

https://peakd.com/@upmyvote/activities

https://peakd.com/@apeminingclub/activities

https://peakd.com/@punkteam/activities

Posted using Bilpcoin

!INDEED !WEED !PGM LUV !PIZZA !PIMP !ALIVE !CTP !BBH !VSC !INDEED !HOPE

0
0
0.000
avatar

Let's delve into the Builda whale farm on the Hive, Gogreenbuddy, who is also colloquially known as the Marky mark USAINVOTE UPMYVOTE IPROMOTE PUNKTEAM and 100's more if not thousands this individual has asserted that his intentions behind this initiative are driven by a desire to contribute positively to the community. Now, let's explore what he is earning on a monthly basis from this venture. income is said to be generated through the use of multiple alternative accounts, which he utilizes to cast votes in favor of his own shit content. The community seems to have mixed feelings about this practice many are scared to speak up.

Are you ready to delve deeper into this topic and uncover more insights? If so, let's proceed. It's time to wake up and gain a clearer understanding of the situation at hand.

Buildawhale

Curation Rewards

Total rewards according to loaded activities and filters
Time loaded: 25 days ago
Total HP: 15,283.568
Total HBD: 0.000
Total HIVE: 0.000
https://peakd.com/@buildawhale/activities

The Marky mark

Curation Rewards

Total rewards according to loaded activities and filters
Time loaded: a month ago
Total HP: 13,913.812
Total HBD: 0.000
Total HIVE: 0.000

https://peakd.com/@themarkymark/activities

Usainvote

Curation Rewards

Total rewards according to loaded activities and filters
Time loaded: Jul 20, 2024
Total HP: 7,026.082
Total HBD: 0.000
Total HIVE: 0.000

https://peakd.com/@usainvote/activities

Apeminingclub

Curation Rewards

Total rewards according to loaded activities and filters
Time loaded: Jul 22, 2024
Total HP: 28.306
Total HBD: 0.000
Total HIVE: 0.000

https://peakd.com/@apeminingclub/activities

Gogreenbuddy

Curation Rewards

Total rewards according to loaded activities and filters
Time loaded: Jul 15, 2024
Total HP: 1,960.063
Total HBD: 0.000
Total HIVE: 0.000

https://peakd.com/@gogreenbuddy/activities

On Hive a significant issue exists with automatic upvotes consistently rewarding the same individuals day in and day out

We want to address the issue of downvoting. It has caused pain to many people, and we want to make sure it doesn't happen again reply to @jacobtothe

On Hive a significant issue exists with automatic upvotes consistently rewarding the same individuals day in and day out

We hope that those who genuinely care about Hive will reconsider their actions, as continuing down this path could inadvertently harm innocent users who are unaware of these issues

lol the Marky mark keeps dreaming

There's been a notable increase in frustration and concern among many users

Reply 2 @crimsonclad You may consider yourself clever

Reply to @crimsonclad

Consider revising the value plan, as it's not providing significant benefits to HIVE

The Value Plan, as it stands, seems to be a one-sided relationship with the HIVE platform, where the benefits are one-way

Actions indeed speak louder than words, a fact we've all observed individuals may talk a good game, a whole lot of shit, but their actions often expose their genuine nature LOL

We consider it unwise to engage in harmful actions, even if you think you can escape the repercussions

https://hive.blog/politics/@jacobtothe/re-bpcvoter1-shjdc8

The Hive Police aka Hivewatchers, are the real heroes of Hive LOL, aren't they?

Feast your eyes on Hive's trending page, what a load of trash

LoL it's the Hivewatchers Hive Police, dishing out orders like a bakery LOL! Folks, do what you want with your Hive power, just as you please. And you, Hivewatchers, downvote away, but remember, judgment day's coming

Harry fam We're just here, laughing at the shenanigans on Hive! Sure, our content's getting downvoted, but hey, it's all part of the game LOL

https://hive.blog/hive-158694/@hivewatchers/shhnhs

adm [-]
meesterboom [-]
steemcleaners [-]
jacobtothe [-]
logic [-]
chekohler [-]
b00m [-]
celestegray [-]
citizensmith [-]
sazbird [-]
technicalside [-]
bagpuss [-]
vxn666 [-]
spaminator [-]
meestemboom [-]
ihal0001 [-]
tillmea [-]
meesterleo [-]
meesterbrain [-]
unclefunker [-]
and 1 more

https://hive.blog/hivewatchers/@bpcvoter/shqkqc

On Hive, there's a user who frequently burns a significant amount of Hive LOL with his own accounts

How To Fool An Entire Population

it's so, so concerning to see Blocktrades delegating 2+ million Hive power to Buildawhale, and Buildawhale is downvoting legitimate content

We began sharing factual information following unwarranted downvotes on Hive it's all in the transactions

Upon examining our posts, you will notice they have been downvoted, and we've been labeled as scammers and spammers, which we find amusing. We consistently share new content

Once again, we ask why is our legit content being downvoted on Hive and what is the reason behind it. Hivewatchers ADM spaminator steemcleaners guiltyparties logic

We have Hive witnesses farming Hive, self-voting, operating comment farms, and self-funding projects with community resources

https://peakd.com/@themarkymark/activities

https://peakd.com/@buildawhale/activities

https://peakd.com/@blockheadgames/activities

https://peakd.com/@hiveauctions/activities

https://peakd.com/@gogreenbuddy/activities

https://peakd.com/@meritocracy/activities

https://peakd.com/@gogreenbuddy/activities

https://peakd.com/@jacobtothe/activities

https://peakd.com/@usainvote/activities

https://peakd.com/@leovoter/activities

https://peakd.com/@usainvote/activities

https://peakd.com/@upmyvote/activities

https://peakd.com/@apeminingclub/activities

https://peakd.com/@punkteam/activities

Posted using Bilpcoin

!INDEED !WEED !PGM LUV !PIZZA !PIMP !ALIVE !CTP !BBH !VSC !INDEED !HOPE

0
0
0.000
avatar

I think it's a wknd well spent! Something constructive came out of it! Can you extend it to other countries...? Just not THOSE two!

0
0
0.000
avatar

I do plan to have it fall through the the other BOT code that includes the rest of the world, it's not tough to do and ensure I use all that spare VP.

0
0
0.000
avatar

playing Assassin's Creed Odyssey

Doing everything on that game required me an indecent amount of hours, back when I had a lot of spare time to waste 😅 but as an old AC player I felt for years the need to 100% complete every one of them.

with not a BEEM Import on the horizon.

I'm trying to use the condenser API for my latest script (as you suggested me), but I feel that it's going to be a long journey before I can remove BEEM from my imports 😂

Tonight I'm going to see if I can make some progress and, if I have time, I'd also like to give a second look at your snippets: having some working scripts without (or almost without) BEEM is gold for me!

0
0
0.000
avatar

but as an old AC player I felt for years the need to 100% complete every one of them.

LOL, it's a great game with such atmosphere. I like most of them, but was disappointed with Mirage which I felt was small and compromised.

Tonight I'm going to see if I can make some progress and, if I have time, I'd also like to give a second look at your snippets: having some working scripts without (or almost without) BEEM is gold for me!

BEEM is handy, but I am afraid of it breaking without notice.

0
0
0.000
avatar

I still have to play both Mirage and the previous one, Valhalla: I've read mostly negative review about Mirage, but still I'd like to play again an AC similar to the original ones, just for the vides ahhaah

About BEEM, may I ask you a (surely stupid) question? Python tutorials on developers.hive.io use BEEM, so they are outdated, right? Because I was going through all of them, but looking at your first snippet I finally grasped (a little) how I should use the condenser API and realized that those tutorials must have been written before the deprecation of BEEM.

0
0
0.000
avatar

It seems we are stuck with BEEM for certain transactions unless you want to build a transaction signing function. I'm happy to be 90% BEEM free, it cuts down on the errors.

What we need is someone to either update BEEM or build a new API that is just as good as that was. Some have been attempted but I haven't seen any updates lately.

@emrebeyler did one, have a look here.

0
0
0.000
avatar

It seems we are stuck with BEEM for certain transactions unless you want to build a transaction signing function.

Ok, that's exactly what I couldn't find anywhere in the condenser API: I was looking everywhere for a way to sign a transaction, but I couldn't find it 😅

@emrebeyler did one, have a look here.

Going to check it now :)

0
0
0.000
avatar
avatar

Can I use that also with Python? I mean, by "translating" it into Python?

I'm not a real coder, so I ask sorry in advance in case I said a blasphemy 😂

0
0
0.000
avatar

The tutorial linked above, also contains a link to a Python example from 8(!) years ago.

You can translate it to any language, of course.
But the whole signing procedure is a bit complicated and if you just want to build something, I would recommend you just use an existing library for signing.
Posted the link, so you can see how much trouble it is.

0
0
0.000
avatar

Oh wow... that's beyond complicated for me 🤣

ok, I'm going to follow your advice and use one of the existing library we already have to sign transaction: after giving a look at that I have no more doubts ahahaha

For a Python user you would recommend using BEEM for signing? Or are there other libraries which are better and/or more updated?

0
0
0.000
avatar

It doesn't matter which lib you use.
I use beem, but by accessing its underlying functions like demonstrated somwehere else in this comment section here. The more abstract, the more errors can occur. But then again: more abstraction can make the code more readable.
It's up to you and what suits your needs best...

Follow my blog for more 😎

0
0
0.000
avatar

Awesome work mate, yer a champ for seeing it through!

I do love your snarky code comments 🤣

0
0
0.000
avatar

do love your snarky code comments

They are absolutely unnecessary, it's just me being silly.

0
0
0.000
avatar

I think you can use the ‘requests’ library to make HTTP requests to the Hive API.

Suppose you have a function that publishes a publication using BEEM:



from beem import Hive

def publicar_mensaje(usuario, clave_privada, mensaje):
Hive = Hive(keys=[clave_privada])
hive.post(mensaje, author=usuario)


You can replace it using the Hive API directly with requests:



import requests

def publicar_mensaje(usuario, clave_privada, mensaje):
url = "https://api.hive.blog/rpc"
payload = {
"jsonrpc": "2.0",
"method": "condenser_api.post",
"params": [usuario, clave_privada, "", mensaje, "", False],
"id": 1,
}
response = requests.post(url, json=payload)
print(response.json())



Or something like that. It's a matter of investing another weekend and doing the relevant tests.

0
0
0.000
avatar
(Edited)

Or something like that. It's a matter of investing another weekend and doing the relevant tests.

This is tested:

import requests

def get_properties(node_url):
    data = '{"jsonrpc":"2.0", "method":"database_api.get_dynamic_global_properties", "id":1}'
    response = requests.post(node_url, data=data)
    return response

Save as api.py and import your own custom calls 🙂

response is json, I handle that like this:

import api

def get_last_irreversible_block_num(node_url):
    response = api.get_properties(node_url)
    num = int(response.json()["result"]['last_irreversible_block_num'])
    return num

I think this is clean enough.
Use https://developers.hive.io/ api refenrence for other calls.

Please don't ask me why I called a function get_last_irreversible_block_num 🤣
I just copy pasted this from older code and thought it was a neat example for @slobberchops 😜

However: transaction signing isn't trivial, I'd recommend a library like BEEM.


Sorry for the edits.

Hope this saves someone some time.
Follow my blog 😁 for more.

0
0
0.000
avatar

Appreciate your time and effort mate, I see it as a good way to support brits wherever they are. count me in.

0
0
0.000
avatar

"Looks like a weekend well spent! Honestly, a lot of this feels like gibberish to me, but I’m thinking I should probably learn some programming myself. That way I can help my kids down the road, if they’re interested, of course!

0
0
0.000
avatar

That way I can help my kids down the road, if they’re interested

Sadly mine was not, and opted out of Computer Studies at school. Now she's grown up and at University.

0
0
0.000
avatar

I think those are time well spent, even the gaming ones. I don't know how to code in python, but I remember the pain of fixing code bugs and errors. I think it's great that you guys decided to continue supporting the UK hivers.

0
0
0.000
avatar

I think it's great that you guys decided to continue supporting the UK hivers.

If peeps in the other countries did the same, it would be an incentive to write better stuff.

0
0
0.000
avatar

Cool stuff. We need a supported library of essential functions. Maybe someone can fork beem and improve it.

0
0
0.000
avatar

Yeah, that would be nice. It was probably a thankless task for @holger80 and that's why he abandoned it.

0
0
0.000
avatar

Let's delve into the Builda whale farm on the Hive, Gogreenbuddy, who is also colloquially known as the Marky mark USAINVOTE UPMYVOTE IPROMOTE PUNKTEAM and 100's more if not thousands this individual has asserted that his intentions behind this initiative are driven by a desire to contribute positively to the community. Now, let's explore what he is earning on a monthly basis from this venture. income is said to be generated through the use of multiple alternative accounts, which he utilizes to cast votes in favor of his own shit content. The community seems to have mixed feelings about this practice many are scared to speak up.

Are you ready to delve deeper into this topic and uncover more insights? If so, let's proceed. It's time to wake up and gain a clearer understanding of the situation at hand.

Buildawhale

Curation Rewards

Total rewards according to loaded activities and filters
Time loaded: 25 days ago
Total HP: 15,283.568
Total HBD: 0.000
Total HIVE: 0.000
https://peakd.com/@buildawhale/activities

The Marky mark

Curation Rewards

Total rewards according to loaded activities and filters
Time loaded: a month ago
Total HP: 13,913.812
Total HBD: 0.000
Total HIVE: 0.000

https://peakd.com/@themarkymark/activities

Usainvote

Curation Rewards

Total rewards according to loaded activities and filters
Time loaded: Jul 20, 2024
Total HP: 7,026.082
Total HBD: 0.000
Total HIVE: 0.000

https://peakd.com/@usainvote/activities

Apeminingclub

Curation Rewards

Total rewards according to loaded activities and filters
Time loaded: Jul 22, 2024
Total HP: 28.306
Total HBD: 0.000
Total HIVE: 0.000

https://peakd.com/@apeminingclub/activities

Gogreenbuddy

Curation Rewards

Total rewards according to loaded activities and filters
Time loaded: Jul 15, 2024
Total HP: 1,960.063
Total HBD: 0.000
Total HIVE: 0.000

https://peakd.com/@gogreenbuddy/activities

On Hive a significant issue exists with automatic upvotes consistently rewarding the same individuals day in and day out

We want to address the issue of downvoting. It has caused pain to many people, and we want to make sure it doesn't happen again reply to @jacobtothe

On Hive a significant issue exists with automatic upvotes consistently rewarding the same individuals day in and day out

We hope that those who genuinely care about Hive will reconsider their actions, as continuing down this path could inadvertently harm innocent users who are unaware of these issues

lol the Marky mark keeps dreaming

There's been a notable increase in frustration and concern among many users

Reply 2 @crimsonclad You may consider yourself clever

Reply to @crimsonclad

Consider revising the value plan, as it's not providing significant benefits to HIVE

The Value Plan, as it stands, seems to be a one-sided relationship with the HIVE platform, where the benefits are one-way

Actions indeed speak louder than words, a fact we've all observed individuals may talk a good game, a whole lot of shit, but their actions often expose their genuine nature LOL

We consider it unwise to engage in harmful actions, even if you think you can escape the repercussions

https://hive.blog/politics/@jacobtothe/re-bpcvoter1-shjdc8

The Hive Police aka Hivewatchers, are the real heroes of Hive LOL, aren't they?

Feast your eyes on Hive's trending page, what a load of trash

LoL it's the Hivewatchers Hive Police, dishing out orders like a bakery LOL! Folks, do what you want with your Hive power, just as you please. And you, Hivewatchers, downvote away, but remember, judgment day's coming

Harry fam We're just here, laughing at the shenanigans on Hive! Sure, our content's getting downvoted, but hey, it's all part of the game LOL

https://hive.blog/hive-158694/@hivewatchers/shhnhs

adm [-]
meesterboom [-]
steemcleaners [-]
jacobtothe [-]
logic [-]
chekohler [-]
b00m [-]
celestegray [-]
citizensmith [-]
sazbird [-]
technicalside [-]
bagpuss [-]
vxn666 [-]
spaminator [-]
meestemboom [-]
ihal0001 [-]
tillmea [-]
meesterleo [-]
meesterbrain [-]
unclefunker [-]
and 1 more

https://hive.blog/hivewatchers/@bpcvoter/shqkqc

On Hive, there's a user who frequently burns a significant amount of Hive LOL with his own accounts

How To Fool An Entire Population

it's so, so concerning to see Blocktrades delegating 2+ million Hive power to Buildawhale, and Buildawhale is downvoting legitimate content

We began sharing factual information following unwarranted downvotes on Hive it's all in the transactions

Upon examining our posts, you will notice they have been downvoted, and we've been labeled as scammers and spammers, which we find amusing. We consistently share new content

Once again, we ask why is our legit content being downvoted on Hive and what is the reason behind it. Hivewatchers ADM spaminator steemcleaners guiltyparties logic

We have Hive witnesses farming Hive, self-voting, operating comment farms, and self-funding projects with community resources

https://peakd.com/@themarkymark/activities

https://peakd.com/@buildawhale/activities

https://peakd.com/@blockheadgames/activities

https://peakd.com/@hiveauctions/activities

https://peakd.com/@gogreenbuddy/activities

https://peakd.com/@meritocracy/activities

https://peakd.com/@gogreenbuddy/activities

https://peakd.com/@jacobtothe/activities

https://peakd.com/@usainvote/activities

https://peakd.com/@leovoter/activities

https://peakd.com/@usainvote/activities

https://peakd.com/@upmyvote/activities

https://peakd.com/@apeminingclub/activities

https://peakd.com/@punkteam/activities

Posted using Bilpcoin

!INDEED !WEED !PGM LUV !PIZZA !PIMP !ALIVE !CTP !BBH !VSC !INDEED !HOPE

0
0
0.000
avatar

Genius!

I find AC quite repetitive these days, I can't find anything worthy of my time, we need a new fallout

0
0
0.000
avatar

A new Fallout would be awesome, but it's not going to end up on Sony's platform. Bethesda was bought out by Microsoft.

0
0
0.000
avatar

fuck me is there anything you don't know!!!!!

0
0
0.000
avatar

everyone knows v.1.0 of anything does not work

But that is where you start :), I never could start even. May be I should look at the APIs again.

0
0
0.000
avatar

Updating BEEM had been on my list of things to do a few years ago when I was working with Python more frequently, but these days I'm more closely working with C# and JS so the 'extra practice' of getting into the weeds of understanding BEEM hasn't been high on my to-do list as a result. Maybe one day I'll cycle back to that but a few folks have forked the library already and haven't made much progress it seems so we may see this library slowly move more and more to only working on core functions and nothing else.

0
0
0.000
avatar

Delegated: 4,046,288 HP
Search
@buildawhale 2,308,692 HP Sep 29, 2017
@ocdb 1,171,244 HP May 25, 2018
@usainvote 566,245 HP Aug 16, 2020
@blocktrades.spk 106 HP Aug 8, 2022
Received: 54,605 HP
@kriborin 18,559 HP Aug 9, 2017
@kevtorin 18,559 HP Aug 9, 2017
@lessys 17,093 HP Aug 9, 2017
@aprendizinfinito 129 HP Mar 11, 2022
@klinckify 111 HP Apr 19, 2021
@rt-international 109 HP Dec 14, 2023
@augusto2021 11 HP Dec 22, 2021
@spearhead1976 11 HP Nov 20, 2022
@titovieira 10 HP 5 days ago
@realazazel 4 HP Jun 15, 2020
@stunod 4 HP Feb 8, 2022
@pumpkinmimi 2 HP Oct 15, 2021
@logiczombie 1 HP Dec 24, 2021
@africka 1 HP May 12, 2020

https://peakd.com/@blocktrades/wallet

0
0
0.000