You are viewing a single comment's thread:

RE: Fetching Hive-Engine Liquidity Pools Just Got Better!

(edited)

For quite a long time I wasn't able to find any good documentation on the Hive-Engine API calls, so I had to read the side-chain transactions via the HE-blockexplorer and then through trial and errors find out what works and what doesn't. But it all got a bit easier when I accidentally stumbled into the Hive Smart Contracts Wiki. It's frankly a treasure trove.

Hope it helps! :)

EDIT: I almost forgot, the call itself is a standard JSON call, you can learn about those in the Python documentation: json — JSON encoder and decoder.
EDIT #2: This is a bit embarrassing. I wasn't strictly correct when I called the JSON part "standard JSON", because it's actually not JSON yet. It's a Python object (a library), that will eventually be converted into a JSON string by either json.dumps(), or the requests module like I did here. A little brain fart on my part I guess, stands to show I'm not a pro-coder yet.

!WINE

0E-8 BEE
1 comments

Ahahah don't worry, I have no idea what's the right name for 99% of code related stuff 🤣 so I would have never noticed your mistake !LOL

It's impressive that before finding those docs you were basically reverse engineering Hive-Engine... wow! I bookmarked the site, many thanks :)

0.00424478 BEE