andelf / tronpy

TRON Python Client Library.
MIT License
212 stars 96 forks source link

GetDelegatedResourceAccountIndexV2 not included (important) #114

Closed clipcow closed 8 months ago

clipcow commented 1 year ago

https://developers.tron.network/reference/getdelegatedresourceaccountindexv2-1

GetDelegatedResourceAccountIndexV2 is not included as far as I can tell. Its important and provides easy info: all addresses that delegated TO the requested address AND all addresses that RECEIVED from requested address. Its important to have this for a resource focused application

MrNaif2018 commented 1 year ago

Hi! Indeed it can be added. PRs welcome if I not get to it soon. But before that: do you know that any request not "supported" by tronpy is actually supported? There's a generic request func to issue any request possible. That can serve as a base for the convenience method to be added

clipcow commented 1 year ago

Hi @MrNaif2018 Thank you for the info. Can you give me more info on how to do that with a generic request func?

MrNaif2018 commented 1 year ago

See an example here: https://github.com/andelf/tronpy/blob/c8ebc870ac64afc80dcf764f59668b065555f63f/tronpy/tron.py#L856-L866

clipcow commented 1 year ago

@MrNaif2018 thank you. Okay I think my python skills are not sufficient to figure out how to turn this into GetDelegatedResourceAccountIndexV2. I'll let the professionals handle this 😄

I also didnt intend to spam jfyi, I just thought Id be better for every request to have its own thread. Sorry if I did.

MrNaif2018 commented 1 year ago

Yeah, no problem. Just that issues were getting repetitive so it could be turned into a task list really

hightop0924 commented 1 year ago

Hi, I am Oleksandr on upwork

MrNaif2018 commented 1 year ago

Hi, I am Oleksandr on upwork

So what?