MultiversX Tracker is Live!

Get Contracts and transaction hashes between two timestamps in etherscan

Etherum Reddit

More / Etherum Reddit 50 Views

I am trying to understand Etherscan python package, and I want to get the transaction that happened between 2 timestamps. I have found this example that is getting transactions by address.

eth = etherscan.Etherscan(api_key='API-KEY') target_address = '0xa57Bd00134B2850B2a1c55860c9e9ea100fDd6CF' eth.get_normal_txs_by_address(address=target_address, startblock=start_block, endblock=end_block, sort="asc") 
  1. What is the address? Is it the ethereum contract ID?
  2. One contract can have several transaction hashes. A Transaction hash represent one transaction?
  3. How to get ethereum transactions that happened between the two timestamps?
  4. Is it possible to list ethereum contracts that happened between two timestamps?
  5. `start_block` is the same things as a timestamp? If not, what is `start_block`?

Solution: Like u/atrizzle said, I just need to get the blocks where transactions happened. I my case, ` get_block` from Etherscan helped me.

submitted by /u/SuchLab2
[link] [comments]
Get BONUS $200 for FREE!

You can get bonuses upto $100 FREE BONUS when you:
πŸ’° Install these recommended apps:
πŸ’² SocialGood - 100% Crypto Back on Everyday Shopping
πŸ’² xPortal - The DeFi For The Next Billion
πŸ’² CryptoTab Browser - Lightweight, fast, and ready to mine!
πŸ’° Register on these recommended exchanges:
🟑 Binance🟑 Bitfinex🟑 Bitmart🟑 Bittrex🟑 Bitget
🟑 CoinEx🟑 Crypto.com🟑 Gate.io🟑 Huobi🟑 Kucoin.



Comments