1st off, absolutely love the python and API programming super awesome guide. Second, if that wallet sells we all better dip out quickly.. how to program an API whale wallet sell alarm! aruga aruga aruga.
Hi there! very cool video! do you think you could make a tutorial video about DearPyGui? i think it's going to be the most powerful GUI library for python when it's development is done.
Same thing happen to me, and I am still confused about this. I think it is because not all the transactions are valid. For example, many smart contract cannot afford the gas fee when sending transactions, but etherscan still collects and stores them. Another thing is that when I use the address 0x73bceb1cd57c711feac4224d062b0f6ff338501e, which is the second one in the video, I find that the last few digits of the balance is not equal with that on etherscan. It seems there exists some other issues that we should conclude in doing this calculation. But again, currently I don't know the approach either.
Hello Tim, I started with programming 2 months ago and I started with Python. Do you think, that this language is good way these days? Or times changed and there is something new and more powerful?
It is and will continue to be for the foreseeable future, its the best for beginners. There are better languages for specific use cases but its just about getting started and then you'll be ble to understand code in the future.
Same. Go with Python, learn basics, master that, go on to the advance topics, build projects, continue to learn about other topics, and you'll be fine. Godspeed to you my friend🙏
IMPORTANT FOR EVERYONE! IF YOU ARE NOT GETTING THE CORRECT BALANCE READ THIS. Before checking if it’s money in or money out you must check if the transaction did not have an error. You will also want to write out a money_out variable instead of using else. Your code should look like this If tx[“isError”] == “0”: If moneyin… If moneyout…
Also you cant divide 1e18 before multiplication, because you are losing values in decimal precision. The dividing part should be done at the end of the calculation
Hi Tim, appreciate your video. Would you be able to throw out some hints how I could get historical data of transactions? This is for a school project, any feedback would be appreciated. :)
Hi Tim. Thank you for the video (Beneficial). I started my own research on a specific wallet address. The sum of the transaction continues after the current balance. I think that you had the same problem, which you solved by taking another address. Do you have any idea how to solve it?
Wonderful videos, very helpful! Many thanks. I have one question here. Sometimes the transactions may failed due to many reasons, such as lack of ether to pay gas, etc, but the etherscan still collects them and give them to us. I am trying to eliminate transactions by identifying "isError": 1, since this key pair is involved in both normal transaction lists and internal transaction list. But I am not sure that I can delete all the abnormal transactions by doing this because when I tried this, the result does not match with the balance on etherscan. Do you know how to judge whether the transaction is valid or not?
I have two errors in this code. Any idea ? "line 71, in get_transactions(address) line 39, in get_transactions data.extend(data2) AttributeError: 'str' object has no attribute 'extend'"
old comment but you can't use .extend() on a string and only on a list (obviously). Sounds like some how you assigned data to a value inside the dictionary as everything is a string. **Should create the normal transaction url then:** response = get(normal_transaction) data = response.json()['result'] **Do the same for internal transactions then:** data.extend(data2) sorted_data= sorted(data, key=lambda x: int(x['timeStamp'])) if the wallet does have internal transactions for some reason it always says gasUsed = 0 so you'll need an if else statements to account for it to actually make this work.
if from_addr.lower() == address.lower() and to.lower() == address.lower(): current_balance += value - gas elif from_addr.lower() != address.lower() and to.lower() == address.lower(): current_balance += value elif from_addr.lower() == address.lower() and to.lower() != address.lower(): current_balance -= value + gas Is this logic more in line with
I found some bug here >> because fromtimestamp . I think because I should put in the code first before run it. But, after I get the code and then I run it..I still get a bug :((. Is anyone here can help me?
i am a bit of skeptic, but know a lot of aspects about BTC. So, let's make few things straight - BTC is an investment asset - like gold, it's scarce, but it's easier to acquire it and big players like pay-pal and grayscale are holding it, same with a lot of banking institutions, hedge funds and masses of people. ytSelf-host wallet btc owner whales have a hard time selling it without doing KYC and in some cases, this can wreck them financially. People lose access to their btc wallets which makes that btc frozen for all time. The Hype and FOMO is on the rise and most people only buy and hodl with btc. I mean you have to understand that normal stock market fundamentals don't apply here. It's not a 2017 - 2018 scenario. The regulation added to BTC can actually even make it more desirable(although have a minus). Basically, anything that could stop the mooning of btc imo would be extreme regulation restrictions and also better investment opportunities discovered by btc owners. However , it’s is best advice you find a working strategy/daily signals that works well in other to accumulate and grow a very strong portfolio ahead. I have been trading with Mr Mike Lubin daily signals and strategy, him guidance makes trading less stressful and more profit despite the recent fluctuations. I was able to easily increase my portfolio in just 4weeks of trading with Mike Lubin daily signals growing 0.5 BTC to 1.2 BTC. His daily signals are very accurate and yields a great positive return on investment and is available to give assistance to anyone who love crypto trading, you can contact him on Telegram @ LUBfx011 (no added numbers or letters) for inquires and profitable training
I make huge profits on my investment since I started trading with Mrs Carolyn kay, her trading strategies are top notch coupled with the little commission she charges on her trade.
English is very important, I must studding english first ;))
Me Tarzan, you Jane
Hello from Puerto Rico.
Great video!
Can see how powerful doing stuff like this is. Keep it up!
Superb content! You even make it easy for beginners!
1st off, absolutely love the python and API programming super awesome guide. Second, if that wallet sells we all better dip out quickly.. how to program an API whale wallet sell alarm! aruga aruga aruga.
Congratulations for 900k subscribers Tim! 👌
Great video Tim! for anyone following along at home here is the second address used: address = '0x73bceb1cd57c711feac4224d062b0f6ff338501e'
Good stuff. Very well explained. 🤓
Glad to hear about etherium library in python
Hey!, It would be really good if you could show us how to use the *Ursina Engine* python for 3d games just like you pygame series!
Hi there! very cool video! do you think you could make a tutorial video about DearPyGui? i think it's going to be the most powerful GUI library for python when it's development is done.
AttributeError: 'str' object has no attribute 'extend'
I get the same graph for the adress you used but when i use this adress for example 0xae4d837caa0c53579f8a156633355df5058b02f3 it goes negative
Same thing happen to me, and I am still confused about this. I think it is because not all the transactions are valid. For example, many smart contract cannot afford the gas fee when sending transactions, but etherscan still collects and stores them. Another thing is that when I use the address 0x73bceb1cd57c711feac4224d062b0f6ff338501e, which is the second one in the video, I find that the last few digits of the balance is not equal with that on etherscan. It seems there exists some other issues that we should conclude in doing this calculation. But again, currently I don't know the approach either.
Hello Tim, I started with programming 2 months ago and I started with Python. Do you think, that this language is good way these days? Or times changed and there is something new and more powerful?
It is and will continue to be for the foreseeable future, its the best for beginners. There are better languages for specific use cases but its just about getting started and then you'll be ble to understand code in the future.
Same. Go with Python, learn basics, master that, go on to the advance topics, build projects, continue to learn about other topics, and you'll be fine. Godspeed to you my friend🙏
Congrats on 900k!
Thank u!!
Same process for snowtracer and ftm scanner?
Awesome! I'm adding something like this to my Discord bot
Great work, Tim!
IMPORTANT FOR EVERYONE! IF YOU ARE NOT GETTING THE CORRECT BALANCE READ THIS. Before checking if it’s money in or money out you must check if the transaction did not have an error. You will also want to write out a money_out variable instead of using else. Your code should look like this
If tx[“isError”] == “0”:
If moneyin…
If moneyout…
Also you cant divide 1e18 before multiplication, because you are losing values in decimal precision. The dividing part should be done at the end of the calculation
Thank you very much, sir. This saved me a lot of time!
Awesome video Tim! Do you think you can make one covering Contracts API?
Man you are the greatest! Awesome!
Great job, very useful. Thanks for sharing!!!
How to do this for erc-20 token balances and transactions?
Hi Tim, appreciate your video. Would you be able to throw out some hints how I could get historical data of transactions? This is for a school project, any feedback would be appreciated. :)
can anyone tell what language ,plug in , or library to make a website that adds text to images ?
I am the first Comment!!!!
Yes you are!
@@TechWithTim wow I am a big fan and you actually responded! Love the work you do and I hope there are many videos to come out in the future!
What an awesome tutorial, thank you!
Hi Tim. Thank you for the video (Beneficial). I started my own research on a specific wallet address. The sum of the transaction continues after the current balance. I think that you had the same problem, which you solved by taking another address. Do you have any idea how to solve it?
First comment 🥳🥳🥳🥳🥳🥳🥳
tim i have a doubt why do you add x ="2" in function call while getting the balance of single wallet
Wonderful videos, very helpful! Many thanks. I have one question here. Sometimes the transactions may failed due to many reasons, such as lack of ether to pay gas, etc, but the etherscan still collects them and give them to us. I am trying to eliminate transactions by identifying "isError": 1, since this key pair is involved in both normal transaction lists and internal transaction list. But I am not sure that I can delete all the abnormal transactions by doing this because when I tried this, the result does not match with the balance on etherscan. Do you know how to judge whether the transaction is valid or not?
Great video ! Thx!
I hope that make some sense.. 😀
Is there a way to do this without relying on the Etherscan abstracition API? e.g. get the data from the raw ledger?
Can you use etherscan with open bullet?
can you get royalty information through etherscan
Thanks, if i need to check address from txt list?
It would be cool to pipe in the cost of Ethereum at each timestamp to calculate proper cost basis in USD for each tx
Looks like it is not included in the free api, only pro, I'm sure you can pipe it in from another source though but wonky
Is this only for wallets on main net? or also for addresses in test nets?
Only for main net
I have two errors in this code. Any idea ?
"line 71, in get_transactions(address)
line 39, in get_transactions data.extend(data2) AttributeError: 'str' object has no attribute 'extend'"
u solve ?
old comment but you can't use .extend() on a string and only on a list (obviously).
Sounds like some how you assigned data to a value inside the dictionary as everything is a string.
**Should create the normal transaction url then:**
response = get(normal_transaction)
data = response.json()['result']
**Do the same for internal transactions then:**
data.extend(data2)
sorted_data= sorted(data, key=lambda x: int(x['timeStamp']))
if the wallet does have internal transactions for some reason it always says gasUsed = 0 so you'll need an if else statements to account for it to actually make this work.
Hi there
How can I convert it into an Android app
Dear Tim, Can I create a Discord bot that can publish these charts on a discord server using this API ?
How would you go about putting the data into a pandas dataframe?
I actually show that In the next video!
@@TechWithTim thank you! I just subbed to your channel, you make really awesome videos! I will check that out right now lol
@@TechWithTim Do you have the link? I am not finding it on the playlists lol
@@anthonyanalytics Crap! I thought u were commenting on a different video.... I don't actually show that :/
@@TechWithTim no worries! I’m trying to figure out how to do that haha i think I’m getting close haha
Ok
you replied to me right?
if from_addr.lower() == address.lower() and to.lower() == address.lower():
current_balance += value - gas
elif from_addr.lower() != address.lower() and to.lower() == address.lower():
current_balance += value
elif from_addr.lower() == address.lower() and to.lower() != address.lower():
current_balance -= value + gas Is this logic more in line with
Hello
How to track crypto whales using the Etherscan API
to bad the code is bugged
Hope you got payed well to sell your "soul"
? ???????
I bet you won't pin me
very weird that with over 1 million subs and you still using windows for coding, you can easily buy a mac computer for crying out loud
I found some bug here >> because fromtimestamp . I think because I should put in the code first before run it. But, after I get the code and then I run it..I still get a bug :((.
Is anyone here can help me?
i am a bit of skeptic, but know a lot of aspects about BTC. So, let's make few things straight - BTC is an investment asset - like gold, it's scarce, but it's easier to acquire it and big players like pay-pal and grayscale are holding it, same with a lot of banking institutions, hedge funds and masses of people. ytSelf-host wallet btc owner whales have a hard time selling it without doing KYC and in some cases, this can wreck them financially. People lose access to their btc wallets which makes that btc frozen for all time. The Hype and FOMO is on the rise and most people only buy and hodl with btc. I mean you have to understand that normal stock market fundamentals don't apply here. It's not a 2017 - 2018 scenario. The regulation added to BTC can actually even make it more desirable(although have a minus). Basically, anything that could stop the mooning of btc imo would be extreme regulation restrictions and also better investment opportunities discovered by btc owners. However , it’s is best advice you find a working strategy/daily signals that works well in other to accumulate and grow a very strong portfolio ahead. I have been trading with Mr Mike Lubin daily signals and strategy, him guidance makes trading less stressful and more profit despite the recent fluctuations. I was able to easily increase my portfolio in just 4weeks of trading with Mike Lubin daily signals growing 0.5 BTC to 1.2 BTC. His daily signals are very accurate and yields a great positive return on investment and is available to give assistance to anyone who love crypto trading, you can contact him on Telegram @ LUBfx011 (no added numbers or letters) for inquires and profitable training
I make huge profits on my investment since I started trading with Mrs Carolyn kay, her trading strategies are top notch coupled with the little commission she charges on her trade.
lame