Git Product home page Git Product logo

Comments (5)

danielqba avatar danielqba commented on July 30, 2024 2

I think you can scan all tx in a block and check for the contract of every one of them!?

from tronpy.

DINGYIOK avatar DINGYIOK commented on July 30, 2024 1

Yes bro, I'm already doing this, getting the latest block and traversing the details of the txID to get it, but it's a waste of resources

from tronpy.

danielqba avatar danielqba commented on July 30, 2024

I don't think there's another way around that!
In theory, you could monitor the balance of the account every minute, and if it changed, go backward a few blocks and scan them one by one!??? I guess that could work?

from tronpy.

danielqba avatar danielqba commented on July 30, 2024

I don't think there's another way around that! In theory, you could monitor the balance of the account every minute, and if it changed, go backward a few blocks and scan them one by one!??? I guess that could work?

I guess this could work if you don't have to watch too many addresses, or too many contracts.

from tronpy.

MrNaif2018 avatar MrNaif2018 commented on July 30, 2024

Yes bro, I'm already doing this, getting the latest block and traversing the details of the txID to get it, but it's a waste of resources

It is not a waste of resources. One block contains at the absolute maximum like 400 transactions. This is not hard to parse. In general you should just use Bitcart to process payments in tron with ease, it's already implemented

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.