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")
- What is the address? Is it the ethereum contract ID?
- One contract can have several transaction hashes. A Transaction hash represent one transaction?
- How to get ethereum transactions that happened between the two timestamps?
- Is it possible to list ethereum contracts that happened between two timestamps?
- `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.
[link] [comments]
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