Comments (5)
I think you can scan all tx in a block and check for the contract of every one of them!?
from tronpy.
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.
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.
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.
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)
- How to calculate "parameter" for "trigger_constant_contract" method? HOT 1
- How can I send usdt with tronpy please help HOT 4
- 403 Client Error HOT 14
- how i send trx with float HOT 2
- network is the test network. Why is the query still about the main network HOT 1
- 'Tron' object has no attribute 'generate_address_with_mnemonic' HOT 1
- LOCK_PERIOD is not included for delegate_resource HOT 6
- getDelegatedResourcev2 not included
- GetDelegatedResourceAccountIndexV2 not included (important) HOT 7
- GetCanDelegatedMaxSize not included HOT 2
- How to perform Estimated energy HOT 1
- Function get_function_by_selector returning None HOT 1
- delegate_resource cannot be used HOT 1
- Error while trying to query how much usdt is in a wallet HOT 1
- ABI error when using HTTPProviver over just nile network HOT 2
- delete issue
- Got 403 Forbidden when use AsyncTron HOT 1
- TypeError: provider is not a HTTPProvider when using AsyncHTTPProvider HOT 1
- calculate the bandwidth HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tronpy.