Bitcoin Mining Fundamentals in Python | Python Bitcoin Tutorial

  Рет қаралды 1,109,699

codebasics

codebasics

Күн бұрын

Learn the fundamentals of Bitcoin mining in Python. We will write code to understand the mining concepts, this will not do the actual Bitcoin mining but give you an understanding of how crypto mining works.
Easy explanation of what is bitcoin: • What is Bitcoin | How ...
Video in Hindi: • Bitcoin Mining Fundame...
🤝 Support my youtube channel by buying a data science, coding 👕 T-shirt: kaaipo.com/collections/coding...
How does one redeem bitcoin reward after producing correct hash? : • How bitcoin miners col...
Code: github.com/codebasics/cool_py...
Cool python apps playlist: • Cool Python Apps
#bitcoin #cryptocurrencies
⭐️ Timestamps ⭐️
00:00 Introduction
00:19 Theory
09:21 Coding
Do you want to learn technology from me? Check codebasics.io/?... for my affordable video courses.
🌎 My Website For Video Courses: codebasics.io/?...
Need help building software or data analytics and AI solutions? My company www.atliq.com/ can help. Click on the Contact button on that website.
#️⃣ Social Media #️⃣
🔗 Discord: / discord
📸 Dhaval's Personal Instagram: / dhavalsays
📸 Instagram: / codebasicshub
🔊 Facebook: / codebasicshub
📱 Twitter: / codebasicshub
📝 Linkedin: / codebasics
❗❗ DISCLAIMER: All opinions expressed in this video are of my own and not that of my employers'.

Пікірлер: 2 600
@codebasics
@codebasics 2 жыл бұрын
I want to clarify that this video was to show simple explanation of how core bitcoin mining algo works, to earn actual bitcoin in your wallet you need to integrate mining code with rest of the bitcoin ecosystem. Also you need to have specialized hardware and datacenter with GPUs and ASIC devices that can compute the hash very fast. People run C++ or even assembly code (that is equivalent of the python code shown in this video) to make it faster. Also pending transactions get buffered in a transaction mem pool and miners would get these transactions->mine the valid blocks to add them to a blockchain. I will be adding more videos covering these topics in future. To learn AI concepts in a simplified and practical manner check our course "AI for everyone": codebasics.io/courses/ai-for-everyone-your-first-step-towards-ai
@oogabooga2581
@oogabooga2581 3 жыл бұрын
when i heard the indian accent, i knew i would be learning something today
@австриец
@австриец 3 жыл бұрын
@@hamzaseif4992 If you look at his nickname you should probably think that he is black
@leeroyjenkins8723
@leeroyjenkins8723 3 жыл бұрын
@@австриец XDD
@codebasics
@codebasics 3 жыл бұрын
I am happy this was helpful to you.
@2hotflavored666
@2hotflavored666 3 жыл бұрын
@@hamzaseif4992 Ok racist boi.
@griffisme4833
@griffisme4833 3 жыл бұрын
@Note Salad He is talking about the guy named ooga booga I think
@codebasics
@codebasics 3 жыл бұрын
How does one redeem bitcoin reward after producing correct hash? Here is the video to answer that question: kzfaq.info/get/bejne/h6ejjcqrsbbFh4k.html Easy explanation of bitcoin that even a high school student can understand easily: kzfaq.info/get/bejne/p66co9l8z6eRnJ8.html
@lexplosifprogrammeur2484
@lexplosifprogrammeur2484 3 жыл бұрын
How i can publish the hash block?
@mt.erebus3370
@mt.erebus3370 3 жыл бұрын
Hi Dhaval, so how are the confirmed blocks published to the network, and how do they come to an agreement? really easy to understand explanation btw!
@violentgamer5910
@violentgamer5910 3 жыл бұрын
me as 13 year old guy trying to mine bitcoin with 2 gb ram and Duo core processor 🤣🤣
@user-hh1ys9hb9o
@user-hh1ys9hb9o 3 жыл бұрын
solid 25 cents a day if youre lucky
@lilblondeboy4142
@lilblondeboy4142 3 жыл бұрын
Lol
@EnlightenedSavage
@EnlightenedSavage 3 жыл бұрын
@@user-hh1ys9hb9o more like .000025 cents
@mike54276
@mike54276 3 жыл бұрын
So with 32gb ram i will earn 8$ per day with this code ???
@mike54276
@mike54276 3 жыл бұрын
@David Nekeman how much per day U earn ? and what pc do U have ?
@martinmalecki3302
@martinmalecki3302 3 жыл бұрын
god bless those indian tutorial guys.
@codebasics
@codebasics 3 жыл бұрын
😊👍
@richardnemeth4300
@richardnemeth4300 3 жыл бұрын
Pretty true
@nananana150
@nananana150 3 жыл бұрын
True heros🙏🏿
@koton_bads
@koton_bads 3 жыл бұрын
When you have a very specific problem, they're there and has a tutorial out which is super damn nice
@emrikdumas7145
@emrikdumas7145 3 жыл бұрын
🤣🤣🤣👌
@cristofersilva4010
@cristofersilva4010 3 жыл бұрын
Perfect video, omg I never have seen an video like it before in youtube, great work!!
@theofaure148
@theofaure148 2 жыл бұрын
Success is about focusing Your energy on what creates results and using what you already know
@jasonburke5628
@jasonburke5628 2 жыл бұрын
I pray whoever reads this should become successful. keep l for success. the rich stay rich by spending like the poor and investing why the poor stay poor and be spending like the rich yet not investing. Roar! Invest earn and be successful.
@stephenhughes7520
@stephenhughes7520 2 жыл бұрын
Assets that can make you rich!
@stephenhughes7520
@stephenhughes7520 2 жыл бұрын
I.Crypto
@stephenhughes7520
@stephenhughes7520 2 жыл бұрын
2.Stocks
@stephenhughes7520
@stephenhughes7520 2 жыл бұрын
3.Shores
@Taziamoma
@Taziamoma 3 жыл бұрын
This is the best way I've seen anyone explain what exactly bitcoin mining is. Great job!
@codebasics
@codebasics 3 жыл бұрын
Glad you found it useful
@najeebullahafridi8886
@najeebullahafridi8886 3 жыл бұрын
@@codebasics Can you bring a complete video of actual bitcoin mining ⛏️ and GPUs and ASIC ? Means full info and the cost and time that will taken in 1 bitcoin mining process with electricity cost ? Please 🥺
@456public
@456public 3 жыл бұрын
Me too
@anandclemens8066
@anandclemens8066 3 жыл бұрын
Agreed!
@srikrishnaravoorganapathy3878
@srikrishnaravoorganapathy3878 2 жыл бұрын
shrinke.me/BCHBitcoincash
@codebasics
@codebasics 3 жыл бұрын
Friends some fraud BOTS are posting in comments below that someone helped them earn bitcoins, guidance on telegram etc. Don't trust on them, they are all frauds. Someone created even youtube account with my logo and posting as well. If someone is telling you that you can earn money easily then that would be a FRAUD for sure.
@gaveinfillpo3337
@gaveinfillpo3337 3 жыл бұрын
And you not right ???? LOL
@hilsonkamil3685
@hilsonkamil3685 3 жыл бұрын
Poor man Hahaha
@hilsonkamil3685
@hilsonkamil3685 3 жыл бұрын
Lol
@hilsonkamil3685
@hilsonkamil3685 3 жыл бұрын
Poor man
@solvingthemoneyproblem9621
@solvingthemoneyproblem9621 3 жыл бұрын
THANKS FOR COMMENTING 💯WRITE MY BROKER FRED TAYLOR ON WHAT SAPP TO MAKE GREAT RIO IN BTC He's currently handling my crypto for me and he's making me huge profit turning 2 BTC into 4 BTC in 9 days and making me $400,000 weekly by putting $50,000 indeed am amazed His what Sapp + 1 3. 8. 5. 8. 8. 7. 0. 1. 6. 1💬 Do well to tell him that i reffered you to him, his strategies are top notch, he will help you
@sourdurian2839
@sourdurian2839 3 жыл бұрын
this is the best damn tutorial ever. When i heard that accent, I clicked like instantly and continued watching :)
@TheCarmacon
@TheCarmacon 2 жыл бұрын
Holy sh*t I never thought it is possible to explain mining in such a simple and concise way. Best explanation I've seen.
@valie2025
@valie2025 3 жыл бұрын
+1 for taking the time to explain the theory (blockchain). When I'm looking to learn something new I need to understand some concepts before diving straight into code, otherwise I don't remember well
@codebasics
@codebasics 3 жыл бұрын
Glad you liked the format of the video.
@austind1454
@austind1454 3 жыл бұрын
@@satish8437 its not fake, rlly man. He legit has the check
@getjob3662
@getjob3662 2 жыл бұрын
@@codebasics can u do tutoriel how to make blockchain from scratch in dynamic algorithme whith own her coin
@getjob3662
@getjob3662 2 жыл бұрын
@@codebasics replay on me
@pushkarkulkarni7790
@pushkarkulkarni7790 2 жыл бұрын
@@codebasics so how do i make bitcoin transact the reward to my account?
@razorback0z
@razorback0z 3 жыл бұрын
The lesson. Vegetables are more expensive than medicine.
@harshalbhanushali5562
@harshalbhanushali5562 3 жыл бұрын
Wtf man 😂
@nieczerwony
@nieczerwony 3 жыл бұрын
"Medicus curata, natura sanat"😉
@razorback0z
@razorback0z 3 жыл бұрын
@@nieczerwony very nice.
@TazerGames
@TazerGames 3 жыл бұрын
vegie tables*
@Lunarien1
@Lunarien1 3 жыл бұрын
@@TazerGames ?
@chalokim
@chalokim 3 жыл бұрын
Indian guys are like the Morgan Freeman of IT. Always there to explain things we don’t get.
@damiandamiano3651
@damiandamiano3651 3 жыл бұрын
I get everything what he is saying but i dont get a Point is there something he sells at the end of the vid
@thecryptooptimist3479
@thecryptooptimist3479 3 жыл бұрын
No he is not selling anything. Just telling about his video coming in some weeks
@rmlmax
@rmlmax 3 жыл бұрын
It takes WAY more than 15 lines of code to write successful mining software. You think parallelism, distributed code, network throughput/latency, cpu cycles, memory usage/latency and many more. 15 lines is good start though, agreed. Thanks for explaining the basics 💪
@mwahmed9519
@mwahmed9519 3 жыл бұрын
I saw the article published in one of the leading news paper in India. Never knew that you are such an amazing guy. Good on you. Stay blessed..
@codebasics
@codebasics 3 жыл бұрын
Thanks mirza for your kind words
@danielbusi
@danielbusi 3 жыл бұрын
in all my 20 years of education, no one could explain the subject as perfectly as this wonderful guy....simply stunning man
@codebasics
@codebasics 3 жыл бұрын
Thanks for your kind words daniel 👍
@oscartaylor340
@oscartaylor340 3 жыл бұрын
can I use this for dogecoin if I change the hash?
@ravigiri_67
@ravigiri_67 3 жыл бұрын
Great video. I read my blockchain blogg but this video is lit. Hatss Off.........
@MotherCoin
@MotherCoin 3 жыл бұрын
9:37 zen meditation mode 😂😂😂
@codebasics
@codebasics 3 жыл бұрын
ha ha :) I like zen meditation
@mendoza6294
@mendoza6294 3 жыл бұрын
I see you are a man of culture as well
@Nico-rl4bo
@Nico-rl4bo 3 жыл бұрын
it starts 9:48
@arpitgarg2567
@arpitgarg2567 3 жыл бұрын
Great explanation with the practical implementation of how actually mining works. Many thanks for providing this great video. Really appreciate your effort !!
@codebasics
@codebasics 3 жыл бұрын
😊👍
@philipfrancis1368
@philipfrancis1368 3 жыл бұрын
@@jordanwelch6728 I have been trying to get this for decades but I couldn't. I really appreciate your time explaining how this works. In between how do I get a hold on you?
@elbozo5723
@elbozo5723 2 жыл бұрын
trust me if you want to turn a profit this is not anywhere near practical
@demolitionkid2
@demolitionkid2 3 жыл бұрын
9/10 for the drain pipe effect burp lmao like it didn't even happen. great video man thank you for the in-depth explanation
@adarksoul2454
@adarksoul2454 3 жыл бұрын
know that meme with the lady holding one kid in the pool while the other one was drowning behind her? well that kid is x = - 4 at 2:45
@Slangs
@Slangs 3 жыл бұрын
ikr I got so mad because of it lol
@jay-rathod-01
@jay-rathod-01 3 жыл бұрын
Him: We will be writing a bitcoin mining code. Me: Yes this video will make me rich.
@100ciafacil7
@100ciafacil7 3 жыл бұрын
but illegally hahah
@XxluisinhoxX
@XxluisinhoxX 3 жыл бұрын
stonks
@azure4514
@azure4514 3 жыл бұрын
Really
@lukemartin4879
@lukemartin4879 3 жыл бұрын
@Michael Weis Because in some countries owning, mining and trading bitcoin is illegal
@MrEnder0001
@MrEnder0001 3 жыл бұрын
@@100ciafacil7 Bitcoin is not illegal
@hyqhyp
@hyqhyp 3 жыл бұрын
I have been looking for something re: Bitcoin for my very young Python students. Your video is the simplest and most accessible I have found, my 12 year old student can understand it. I think the magic is in its concreteness (and the smoothness of your presentation). As simple as it looks, the art of toning down abstraction for the sake of pedagogy is one of the hardest skills for a teacher to master, and it is rare (probably exacerbated by the curse of knowledge). My AI professor (also Indian) was a master of it, and as near as I could tell he was the only one in the department. Great work, and thanks!
@codebasics
@codebasics 3 жыл бұрын
Thanks for your kind words of appreciation :)
@pathikghugare9918
@pathikghugare9918 3 жыл бұрын
love the vid man ! especially the way you explained the bitcoin mining , just wow !
@britney_david
@britney_david 2 жыл бұрын
Hello, I'm new to Biticon trade and l've been making huge losses but recently i see a lot of people earning from it. Please can someone tell me what to do?
@Jeffrey_Ambrose
@Jeffrey_Ambrose 2 жыл бұрын
@Kelvin Well, you are saying the fact. I invested $4,000 with Mrs Annabelle Hartfield , and earned $12,000 in 7 working days.
@brucedylan8364
@brucedylan8364 2 жыл бұрын
In Bitcoin investment, determination to take risk is one of the major factor required because it takes a brave heart to make money this days.
@salmakenzie6870
@salmakenzie6870 2 жыл бұрын
Being a newbie in Bitcoin investment and trading is very discouraging but since I met Mrs Annabelle Hartfield , she has really been careful in handling my investment.
@progressj2715
@progressj2715 2 жыл бұрын
Many people are afraid to be invest because of the Scammers in the business
@progressj2715
@progressj2715 2 жыл бұрын
Yes there are scammers in the business just like it's in every other business but there are also legit brokers out there for investors and Mrs Annabelle Hartfield is one of the real and legit brokers out there.
@darak2
@darak2 3 жыл бұрын
When I learned programming decades ago, there was this recurring joke that in the future, all programming classes will be some form of 'if you want to do X, all you need to do is call function X'. It's now 2021, and the joke has become real.
@codebasics
@codebasics 3 жыл бұрын
2030 will be "hey computer read my mind and write code based on my thoughts"
@proh4718
@proh4718 3 жыл бұрын
@@codebasics that will help a noob like me ill wait till it just kdding
@harharmahadev4644
@harharmahadev4644 3 жыл бұрын
That's the best thumbnail I have ever seen in a tutorial video lol.
@Max-cs1dn
@Max-cs1dn 3 жыл бұрын
This dude explains Bitcoin mechanics better than any other channels I’ve seen. Kudos!
@codebasics
@codebasics 3 жыл бұрын
Glad it was helpful!
@johnakonzee2782
@johnakonzee2782 3 жыл бұрын
great job, for someone who has been following Bitcoin since it was created, you make it look like something new.
@dutta.alankar
@dutta.alankar 3 жыл бұрын
Awesome video! Waiting for your future videos on blockchain. 😀
@codebasics
@codebasics 3 жыл бұрын
Yup at some point I will have full fledge blockchain tutorials series on the channel
@taganrose6682
@taganrose6682 2 жыл бұрын
When it comes to the world of investing,most people don't know where to start. Fortunately, great investors of the present and investors of the past can provide us with guidance on how to invest 🙏🙏
@idudhepatrick4729
@idudhepatrick4729 2 жыл бұрын
Personally as a first time investor, I started trading with Mr George William With $1,000 now my portfolio is worth $5,400 within the space of few months trading with him
@gracepaulchristopher3095
@gracepaulchristopher3095 2 жыл бұрын
A friend that I referred to him from UK just received£9,055 profit after 14days of trading... just jealous asf...lol
@williamalex6633
@williamalex6633 2 жыл бұрын
My first investment with Mr George William gave me $24,300 and that has made me invest without the fear of losing, I got four of my friends that I referred to him and they are making profit just like me. May God bless Mr George William
@frederickscott2762
@frederickscott2762 2 жыл бұрын
I trade with him, The profit are secured and over a 100% return on investment directly sent to your wallet.
@frederickscott2762
@frederickscott2762 2 жыл бұрын
you don't make money on cryto by holding your coins rather you trade to make gain
@stefanleithner6922
@stefanleithner6922 3 жыл бұрын
even tho I didn't really get the coding part, this still gave me lots of knowledge. thanks! 😊😊
@codebasics
@codebasics 3 жыл бұрын
Glad I could help!
@seanv2710
@seanv2710 3 жыл бұрын
Great little refresher for python coding but with a mining twist! Subscribed and looking at your other vids! Thanks!
@codebasics
@codebasics 3 жыл бұрын
Glad it was helpful!
@theovanniekerk391
@theovanniekerk391 3 жыл бұрын
This was SO informative. Using Python, you explained bitcoin mining so well, it's now easy for me to understand. Good Video!!!
@codebasics
@codebasics 3 жыл бұрын
Glad you enjoyed it Theo!
@kihrerey3118
@kihrerey3118 3 жыл бұрын
I couldn't leave without liking this video 😲😲😲😲😲
@asepm7591
@asepm7591 3 жыл бұрын
god bless u. i finally understand how it works from it perspective.. guess all the big companies only try to add ledger to their transactions detail and called it sophisticatedly 'blockchain technology'
@emad_arganex
@emad_arganex 3 жыл бұрын
how you write the subtitle for your videos?
@edmel144
@edmel144 3 жыл бұрын
Kohli -> Dhoni, I know what sport this guy likes.
@MrYeune
@MrYeune 3 жыл бұрын
Okay, I run the program and return x20 0s, but how do I claim the btc?
@codebasics
@codebasics 3 жыл бұрын
check pinned comment at the top
@likiyadiig7822
@likiyadiig7822 3 жыл бұрын
@@codebasics nothing there...
@Potentiation
@Potentiation 3 жыл бұрын
@@likiyadiig7822 agreed, I would love an answer to this question
@xanderx8289
@xanderx8289 3 жыл бұрын
dude. you are really cool. most bitcoin videos are either for pure amateur or go into unnecessary details right away. thank you for your great video.
@cryptotechbeyond133
@cryptotechbeyond133 3 жыл бұрын
Very good, high quality with real education. I feel like I learned something after watching. Instead of having more questions.
@manjus3
@manjus3 3 жыл бұрын
Thanks so much for this video! One question: After mining the nonce, who uses that value, and for what purpose?
@mylittleparody2277
@mylittleparody2277 3 жыл бұрын
I wasn't really expecting a lot when I opened this video, and I am pleased to be surprised. The explanation is simple and -as far as I can tell- correct, so good job with this video! Thank you to spread knowledge on the internet.
@codebasics
@codebasics 3 жыл бұрын
Glad you liked it!
@beepbeepgamer1305
@beepbeepgamer1305 3 жыл бұрын
i will come back once i study python, very interested in cypto and mining stuff. In my school we have started doing python so good thing i can watch this later.
@chris_sndw
@chris_sndw 3 жыл бұрын
Cool thanks for the nice explanation! Will now create my botnet to start mining BTC :D
@vanni44
@vanni44 3 жыл бұрын
Great proof of concept. Looking forward to the next video!
@codebasics
@codebasics 3 жыл бұрын
😊👍
@stompertjegmail
@stompertjegmail 3 жыл бұрын
Great introduction to the concept, thanks!
@codebasics
@codebasics 3 жыл бұрын
Glad it was helpful!
@trenvert123
@trenvert123 3 жыл бұрын
Hey. Thank you for the very informative video, and for breaking down a complex problem into something that can be more easily understood. I have one question: Is there only one nonce value that can solve each blockchain, and any other nonce is incorrect, even if it gets the same amount of zeros?
@mandolinbala
@mandolinbala 3 жыл бұрын
Really enjoyed your tutorial ! Learnt something today 😀
@codebasics
@codebasics 3 жыл бұрын
Glad it was helpful!
@user-di4bt7qu2i
@user-di4bt7qu2i 3 жыл бұрын
Great video! It was informative and I learned a lot. The example was awesome and I was able to follow along using Python. I really appreciate your efforts.
@codebasics
@codebasics 3 жыл бұрын
Glad it was helpful!
@CrusadeVoyager
@CrusadeVoyager 3 жыл бұрын
Nice info on bitcoin mining, hope to see more
@guerrerogonzalezjuanjose1581
@guerrerogonzalezjuanjose1581 3 жыл бұрын
New suscriber from Mexico :D Very good video
@codebasics
@codebasics 3 жыл бұрын
Welcome aboard! I've been to Mexico, Cancun. I absolutely loved that trip :)
@johnnysmith7141
@johnnysmith7141 3 жыл бұрын
Golds is good but crypto are better, contact hackerlucas directly on telegram they are the best when it comes to bitcoin flipping 💯 reliable ‘ legit
@Meepox5
@Meepox5 2 жыл бұрын
Just found your videos but you are a very good teacher, thank you!
@beztyagamer6367
@beztyagamer6367 3 жыл бұрын
4:35 nice belch and sound like beer... XD
@Alexis-hofstetter
@Alexis-hofstetter 2 жыл бұрын
I’m just here to day to thank you the generosity you have showing we will be forever grateful In my hart thanks you so much sir
@maximinmaster7511
@maximinmaster7511 5 ай бұрын
hello, i'm looking for a program that can verify the real nonce and display the hash with all '0' (20), can you help me ?
@chadwickposey7806
@chadwickposey7806 3 жыл бұрын
This is the first explanation of blockchain that made sense.... you made it easily understood... THANK YOU!
@codebasics
@codebasics 3 жыл бұрын
Glad it was helpful!
@fabriziodutto7508
@fabriziodutto7508 3 жыл бұрын
@10:42 4bit groups are called nibbles (one hex digit) , just to not use "bit" which is a bit confusing. Thank you for the explanation.
@hasansolak23
@hasansolak23 3 жыл бұрын
The best explaination I have seen, thank you so much.
@codebasics
@codebasics 3 жыл бұрын
You're very welcome!
@Run4online
@Run4online 3 жыл бұрын
I am a programmer from last 7 years and I now know what exactly bitcoin is and how it is working behind the scene lol, very interesting.
@aarthi9747
@aarthi9747 3 жыл бұрын
Sir I am your big fan. I learnt a lot in your python and pandas tutorial. Will u put a video tutorial on neural cryptography or something that merges the field of both deep learning and cryptography? . It will help us a lot.
@speedxtreem
@speedxtreem 3 жыл бұрын
Thanks for simplifying the concept and at the same time teaching us the how to implement coding for a real life example. I however felt that you are using "bitcoin' and " blockchain" terms interchangeably while they are not the same thing.
@codebasics
@codebasics 3 жыл бұрын
bitcoin uses blockchain. That's what I meant in the video.
@zvut
@zvut 3 жыл бұрын
very interesting video, thanks. But if I, for example, could find a very fast way to verify a block and calculate a nounce that generates a string starting with 20 zeros how would I practically close a block of the blockchain manually? who should I give this string to? or rather ... how can I communicate this nounce to the blockchai that I have verified the block and therefore win the prize for having found the right nounce?
@DhruvPatel-xt4mk
@DhruvPatel-xt4mk 3 жыл бұрын
This guy is God for me. You made it really easy to understand. Thank you.
@ShafakTan
@ShafakTan 3 жыл бұрын
Finally, I get what blockchain is... finally... Thanks for getting the grasp of this subject down to earth for us "the mere mortals"... Kudos to you...
@codebasics
@codebasics 3 жыл бұрын
👍😊
@trym8642
@trym8642 3 жыл бұрын
Damn bro, that camera quality at start
@codebasics
@codebasics 3 жыл бұрын
ha ha... power of sony A6400 with extra sharp lense
@codelikeivan5355
@codelikeivan5355 3 жыл бұрын
wow im just amazed the quality of the video crispy clean
@roberthypax6275
@roberthypax6275 3 жыл бұрын
It's the first time I actually understand this. You're the best bro
@AidenEllis
@AidenEllis 3 жыл бұрын
Man i love these indian tutorial guys
@ricardogutierrezrocha1752
@ricardogutierrezrocha1752 3 жыл бұрын
I absolutely loved the tutorial. Excellent explanation at the beginning. I finally understand what bitcoin mining is. So how would you actually deploy in really life for doing the mining? Would be great to see a tutorial on that. Thank you again, greetings from Mexico.
@codebasics
@codebasics 3 жыл бұрын
This video has some (if not all) answers: kzfaq.info/get/bejne/h6ejjcqrsbbFh4k.html
@ViratKohli-jj3wj
@ViratKohli-jj3wj 3 жыл бұрын
The camera quality is really awesome bro.
@ViratKohli-jj3wj
@ViratKohli-jj3wj 3 жыл бұрын
Woohoo so many bots replied me lol
@muhammadyousuf9823
@muhammadyousuf9823 Жыл бұрын
how do u connect to mainnet, get block and send the verified block??? and what are the procedures ??
@jessicaharry89
@jessicaharry89 Жыл бұрын
Bithack419 work no scamming
@mandolinbala
@mandolinbala 3 жыл бұрын
Excellent tutorial ! Learnt something today 😀
@codebasics
@codebasics 3 жыл бұрын
Glad it was helpful!
@prashantjain983
@prashantjain983 3 жыл бұрын
Still didn't get the submission part. Where to check if the hash code was already predicted. Or where to submit the code in exchange of the cryptocurrency . Can you please suggest some pointers or references.
@codebasics
@codebasics 3 жыл бұрын
hey yes so that part is not covered. This video covers core mining computation. To actually participate in mining process integration of this code has to be done with actual bitcoin mining ecosystem. I also don't have much knowledge on that front, I will dig deeper and may be make another video for integration in future.
@samuelmontypython8381
@samuelmontypython8381 3 жыл бұрын
You still need computation power and access to a mining entry node. You can have a perfect program and it will only mine as much as your hardware’s processing power allows, which is very small in 2021. Even a $3,000 Antminer S19 will not get you 1BTC in 1 year, and it’s a proprietary machine made from ASIC’s that are programmed to do only 1 thing - mine BTC.
@WestCoastAce27
@WestCoastAce27 3 жыл бұрын
@@samuelmontypython8381 good post. You know what’s going on. My friend ordered 2 ant miners; there was an issue at Customs; by the time he received them they were useless. I’ve heard estimates that now that the complexity has really gone up a mining rig is only good for 8 to 9 months. Another item for new people - individuals may never ‘win’ - most people join a pool of miners. So the bottom line: as codebasics has pointed out - this is an academic exercise. Unless you have a time machine, it’s too late to make BTC mining.
@samuelmontypython8381
@samuelmontypython8381 3 жыл бұрын
@@WestCoastAce27 Yes, exactly. There are some situations where electricity cost is fixed (I live in Japan and electricity is more expensive per kWH than in America, but some special precincts have fixed cost options where you pay $XXX.XX/month with unlimited electricity). Those places are good for mining and I’ve seen people setup homemade GPU rigs. They don’t make much (because they’re inferior to ASICS), but their electricity bill stays the same.
@mm-zw1zc
@mm-zw1zc 3 жыл бұрын
Nice explanation. I was hoping you would show how to get the actual transactions from a bitcoin block into python. Is there a library function that allows you to get a bitcoin block from a node into a python string?
@rishimn2522
@rishimn2522 2 жыл бұрын
I would like to know what you are telling
@mm-zw1zc
@mm-zw1zc 2 жыл бұрын
@@rishimn2522 This would be for chain analysis. Some of this can be done by using bitcoin-cli, but it would be nice to automate so that as a block is mined, external UTXO databases can be updated where classification can occur similar to the way glass node or other services do on chain analysis.
@quietmike4791
@quietmike4791 3 жыл бұрын
Is it possibe to create a custom controller with custom firmware for older asic miners?
@sameerdubal
@sameerdubal 3 жыл бұрын
Super awesome @codebasics .. I was actually trying to understand the concept and your video is what i was looking. make a video on how to make it run on GPU.
@456public
@456public 3 жыл бұрын
Today I got it ,all these years I wasted my time to know what the exact thing is going on ,
@aximus22
@aximus22 3 жыл бұрын
Do you know how to combine the hash powers and create a private mining pool for increasing guessing chance?
@ExZeMIP
@ExZeMIP 3 жыл бұрын
maybe threads if I did understand you right?
@kevalrajpal4244
@kevalrajpal4244 3 жыл бұрын
Thank you so so much it helped alot to understand the concept along with code. I want to know more about such stuff
@codebasics
@codebasics 3 жыл бұрын
I am happy this was helpful to you.
@hamzabadii3575
@hamzabadii3575 9 ай бұрын
One question when you get that 20 zero so how is change from that terminal to your Wallet and be btc and this code you provided i can use or you just explain
@abdulrahmanelsisy8025
@abdulrahmanelsisy8025 3 жыл бұрын
Well, after the result appears, what should I do? and thank you so much.
@thecreativecorner2002
@thecreativecorner2002 3 жыл бұрын
I am also confused 🤔
@nerfzinet
@nerfzinet 3 жыл бұрын
If you don't have the ability to figure this out on your own just don't bother trying to write your own miner. There are programs you can download for free that will do this better than anything you're able to make. And if you want to do it for learning, then even more reason to do the research. That's what you learn from. Most things worth doing won't have a step by step guide from start to finish.
@abdulrahmanelsisy8025
@abdulrahmanelsisy8025 3 жыл бұрын
@@nerfzinet Thank you very much for encouraging the search to continue
@mariasmith7659
@mariasmith7659 2 жыл бұрын
Hello everyone i'm actually looking for a good expert trader that can help me trade and make good profit.....but it's very hard to see trusted one. Any idea?
@venerandeibase800
@venerandeibase800 2 жыл бұрын
speaking of forex trading.its the best business in the world right now,I know a couple of friends who make alot of money trading the financial market
@melaniegprivette91
@melaniegprivette91 2 жыл бұрын
you are right forex is profiting if you are using a good forex expert with unending zeal of making profit for his/her client
@stephenccosey3616
@stephenccosey3616 2 жыл бұрын
Trading forex is a good business one can look for trading
@alvinmassey3216
@alvinmassey3216 2 жыл бұрын
Then I will like to introduce you to my expert Mrs Stacy Bill Griffin, have been Investing with her for months now and it's been awesome
@soniraanne8559
@soniraanne8559 2 жыл бұрын
If you ask me I think forex has something big for the world but having a good expert to mentor you is the best
@2coins1wallet
@2coins1wallet 3 жыл бұрын
At work we use verification software that calculates a SHA-1 to check integrity of casino game software to make sure there are no “cheat codes” added to the game code. Does the number following SHA stand for the levels of complexity? 256 levels of complexity?
@animrankings6129
@animrankings6129 3 жыл бұрын
Very simple explanation. I wasn't aware about this algorithm before. Now it's more clear for me, thanks a lot for sharing !
@codebasics
@codebasics 3 жыл бұрын
😃👍
@bellpepper3235
@bellpepper3235 3 жыл бұрын
Please make a video on Data Mining with Python.🙏
@daifee9174
@daifee9174 3 жыл бұрын
Ive expected that half of those 15 lines would be just imports...
@mileshebestadt4067
@mileshebestadt4067 3 жыл бұрын
This has been the clearest explanation of how the Bitcoin Blockchain works thanks Dhaval! Great tutorial/guide
@codebasics
@codebasics 3 жыл бұрын
Glad to hear that Miles!
@harshsoni7450
@harshsoni7450 3 жыл бұрын
I have a question what should i change in this code to do real minning And what if i found one hash So whats next?
@karthiksunil5628
@karthiksunil5628 3 жыл бұрын
imagine that i have mined a bitcoin using my system,then how i can redeem or covert the bitcoin into dollars or any other currency Please answer if you know about this
@codebasics
@codebasics 3 жыл бұрын
this video was to show just the core algorithm. For winning the actual reward people use GPU/ASIC hardware along with C++ (Sometimes assembly code). It is like a game of who can compute the correct hash fast. You need specific hardware resources and may be a dedicated farm, it is difficult to do this on personal computer. I will add more videos for this in future.
@WestCoastAce27
@WestCoastAce27 3 жыл бұрын
To elaborate on Mr CodeBasic’s answer: when you set up your mining system you input your ‘wallet’ (think of it as your Bitcoin bank account). If you’re the winner, coming up with the answer the fastest, an entry is made in the ledger on the blockchain grant your account with the 6.25 BTC.
@ShinigamiAnger
@ShinigamiAnger 3 жыл бұрын
This video is an example, to explain and make you understand the concept of what mining bitcoins is, you won’t mine actual bitcoins. Yes, the title is clickbait.
@MySandClock
@MySandClock 3 жыл бұрын
and when you guess the code how do you communicate you guessed it to the blockchain?
@Troiler
@Troiler 3 жыл бұрын
yeah, exactly?
@karthik_krishna
@karthik_krishna 3 жыл бұрын
Am confused about this too...
@mikeh3774
@mikeh3774 2 жыл бұрын
Great video! Thanks and great job!
@ismailelgaabouri2016
@ismailelgaabouri2016 3 жыл бұрын
God bless you, such a great way of explaining 🙏🙏
@codebasics
@codebasics 3 жыл бұрын
glad you liked it ismail
@tonystarke5332
@tonystarke5332 3 жыл бұрын
Great Tutorial! How do you connect to the bitcoin network in python? How do you code for the result of the block being mined successfully and restart your code? How do you code in python where to send the block reward if you are able to guess the hash? More questions to come. Thanks in advance , Batoe
@cdecripto
@cdecripto 3 жыл бұрын
After I completed a hash with my difficulty set on 20, how do I transfer de rewards to my wallet?
@lucaitaly1975
@lucaitaly1975 3 жыл бұрын
you just add the new block discovered to the blockchain and the fixed reward is calculated in your bitcoin wallet address
@codebasics
@codebasics 3 жыл бұрын
this video was to show just the core algorithm. For winning the actual reward people use GPU/ASIC hardware along with C++ (Sometimes assembly code). It is like a game of who can compute the correct hash fast. You need specific hardware resources and may be a dedicated farm, it is difficult to do this on personal computer. I will add more videos for this in future.
@lucaitaly1975
@lucaitaly1975 3 жыл бұрын
@@codebasics thanks but before buying any Asic you should buy an electricity power plant !!!
@carlocarlo1635
@carlocarlo1635 3 жыл бұрын
@@codebasics thanks , excelent video. but how do you send the discovered hash to the chain?
@WestCoastAce27
@WestCoastAce27 3 жыл бұрын
@@lucaitaly1975 or connect to his neighbor’s outlet. 🤣
@ankitsrivastava5319
@ankitsrivastava5319 2 жыл бұрын
You rock man, i have learnt alot from your videos
@keyurborad8550
@keyurborad8550 3 жыл бұрын
Really thumps up 👍 for the video.. How unlucky me that i came across this so late!! PS: that epic BURP!! 4:36
@siilnr1250
@siilnr1250 3 жыл бұрын
chinese ppl doing this by heart lmao, they dont need computers to mine xd
@DizzypandA822
@DizzypandA822 3 жыл бұрын
It’s impossible.
5 Useful F-String Tricks In Python
10:02
Indently
Рет қаралды 281 М.
WHO LAUGHS LAST LAUGHS BEST 😎 #comedy
00:18
HaHaWhat
Рет қаралды 23 МЛН
Best KFC Homemade For My Son #cooking #shorts
00:58
BANKII
Рет қаралды 57 МЛН
Дарю Самокат Скейтеру !
00:42
Vlad Samokatchik
Рет қаралды 8 МЛН
How secure is 256 bit security?
5:06
3Blue1Brown
Рет қаралды 3,2 МЛН
6 Tips to write BETTER For Loops in Python
9:19
Patrick Loeber
Рет қаралды 247 М.
Top 18 Most Useful Python Modules
10:50
Tech With Tim
Рет қаралды 926 М.
The Truth About Learning Python in 2024
9:38
Internet Made Coder
Рет қаралды 156 М.
How I'd Learn AI (If I Had to Start Over)
15:04
Thu Vu data analytics
Рет қаралды 752 М.
How to mine BITCOIN with your Home PC or Laptop!
13:04
The Hobbyist Miner
Рет қаралды 364 М.
I gave 127 interviews. Top 5 Algorithms they asked me.
8:36
Sahil & Sarra
Рет қаралды 624 М.
But how does bitcoin actually work?
25:16
3Blue1Brown
Рет қаралды 15 МЛН
Fastest Way to Learn ANY Programming Language: 80-20 rule
8:24
Sahil & Sarra
Рет қаралды 792 М.
I learned to code from scratch in 1 year. Here's how.
41:55
Thomas Frank
Рет қаралды 379 М.
WHO LAUGHS LAST LAUGHS BEST 😎 #comedy
00:18
HaHaWhat
Рет қаралды 23 МЛН