You are viewing a single comment's thread:

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

Ok, this one is definitely tougher and will require much more effort 😅 I'm not going to ask you some questions now because they would be too many... let's see if I can solve some of my doubts on my own first :)

!PIZZA

0.00444375 BEE
2 comments

I'm positive you will have no issues understanding it! It's littered with commented-out and non-commented debugging print statements, because I had some troubles with repeatedly calling it from another script. I eventually found a way to make it work. But it's not completely out of the woods quite yet, as I found some bugs I mentioned in that earlier comment.

Cheers!

!BEER

0E-8 BEE

It was tougher, but after getting what the fetch_token_details function was doing (at first I was like: "before there were 2 requests, now there are 3... why? Help!!" 🤣), I finally succeded in understading it!

Oc I didn't see any bugs - it's already enough if I understand how it works ahaha - but there's a question I'd like to ask you, if I can:

  • how did you built the call? For example, this one:
payload = {
            "jsonrpc": "2.0",
            "id": 1,
            "method": "find",
            "params": {
                "contract": "tokens",
                "table": "tokens",
                "query": {"symbol": symbol},
                "limit": 1
            }
        }

Is there some documentation in the Hive API I can read to find it out? Because untill now I thought one had always to use something like the block_api, or condenser_api, or something similar, but here I can't see them!

0.00431687 BEE

Hey @arc7icwolf, here is a little bit of BEER from @gamer00 for you. Enjoy it!

We love your support by voting @detlev.witness on HIVE .

0E-8 BEE