RE: RE: Part 6: Coding on Hive with Python - Interacting with the Hive-Engine Side Chain
You are viewing a single comment's thread from:

RE: Part 6: Coding on Hive with Python - Interacting with the Hive-Engine Side Chain

Words
79
Reading
1 min
Listen
Play
4y

Hello,

I have not found a simple way to get a list of incoming delegations for a token.

This snippet of code will tell the total amount of incoming or outgoing delegation.

from hiveengine.wallet import Wallet
Wallet('learncode').get_token('SWAP.HIVE')

{'_id': 254860, 'account': 'learncode', 'symbol': 'SWAP.HIVE', 'balance': '0.00000000', 'stake': '0', 'pendingUnstake': '0', 'delegationsIn': '0', 'delegationsOut': '0', 'pendingUndelegations': '0'}

It may be possible to query the data you want my making a JSON RPC request. A good reference is the documentation here: https://github.com/hive-engine/steemsmartcontracts-wiki.

@learncode: Hello, I have | Ecency