Git Product home page Git Product logo

Comments (7)

MrNaif2018 avatar MrNaif2018 commented on July 30, 2024

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

from tronpy.

clipcow avatar clipcow commented on July 30, 2024

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

from tronpy.

MrNaif2018 avatar MrNaif2018 commented on July 30, 2024

See an example here:

tronpy/tronpy/tron.py

Lines 856 to 866 in c8ebc87

def get_transaction(self, txn_id: str) -> dict:
"""Get transaction from a transaction id."""
if len(txn_id) != 64:
raise BadHash("wrong transaction hash length")
ret = self.provider.make_request("wallet/gettransactionbyid", {"value": txn_id, "visible": True})
self._handle_api_error(ret)
if ret:
return ret
raise TransactionNotFound

from tronpy.

clipcow avatar clipcow commented on July 30, 2024

@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.

from tronpy.

MrNaif2018 avatar MrNaif2018 commented on July 30, 2024

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

from tronpy.

hightop0924 avatar hightop0924 commented on July 30, 2024

Hi, I am Oleksandr on upwork

from tronpy.

MrNaif2018 avatar MrNaif2018 commented on July 30, 2024

Hi, I am Oleksandr on upwork

So what?

from tronpy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.