Bitcoin Mining Fundamentals in Python | Python Bitcoin Tutorial

Поділитися
Вставка
  • Опубліковано 9 лют 2025

КОМЕНТАРІ • 2,5 тис.

  • @codebasics
    @codebasics  17 днів тому

    Folks, here's a link to our bootcamp for learning AI and Data Science in the most practical way: tinyurl.com/395u4mnm

  • @oogabooga2581
    @oogabooga2581 4 роки тому +2997

    when i heard the indian accent, i knew i would be learning something today

    • @австриец
      @австриец 4 роки тому +23

      @@hamzaseif4992 If you look at his nickname you should probably think that he is black

    • @leeroyjenkins8723
      @leeroyjenkins8723 4 роки тому +6

      @@австриец XDD

    • @codebasics
      @codebasics  4 роки тому +181

      I am happy this was helpful to you.

    • @2hotflavored666
      @2hotflavored666 4 роки тому +14

      @@hamzaseif4992 Ok racist boi.

    • @griffisme4833
      @griffisme4833 3 роки тому +2

      @Note Salad He is talking about the guy named ooga booga I think

  • @martinmalecki3302
    @martinmalecki3302 4 роки тому +2391

    god bless those indian tutorial guys.

    • @codebasics
      @codebasics  4 роки тому +151

      😊👍

    • @richardnemeth4300
      @richardnemeth4300 4 роки тому +14

      Pretty true

    • @nananana150
      @nananana150 4 роки тому +17

      True heros🙏🏿

    • @koton_bads
      @koton_bads 4 роки тому +39

      When you have a very specific problem, they're there and has a tutorial out which is super damn nice

    • @emrikdumas7145
      @emrikdumas7145 4 роки тому +3

      🤣🤣🤣👌

  • @codebasics
    @codebasics  3 роки тому +14

    How does one redeem bitcoin reward after producing correct hash? Here is the video to answer that question: ua-cam.com/video/QAsZgzLPaWU/v-deo.html
    Easy explanation of bitcoin that even a high school student can understand easily: ua-cam.com/video/qHlpvKjA-lk/v-deo.html

    • @lexplosifprogrammeur2484
      @lexplosifprogrammeur2484 3 роки тому +1

      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!

  • @codebasics
    @codebasics  2 роки тому +7

    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

  • @violentgamer5910
    @violentgamer5910 3 роки тому +288

    me as 13 year old guy trying to mine bitcoin with 2 gb ram and Duo core processor 🤣🤣

    • @user-hh1ys9hb9o
      @user-hh1ys9hb9o 3 роки тому +32

      solid 25 cents a day if youre lucky

    • @lilblondeboy4142
      @lilblondeboy4142 3 роки тому +1

      Lol

    • @EnlightenedSavage
      @EnlightenedSavage 3 роки тому +11

      @@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 роки тому +1

      @David Nekeman how much per day U earn ? and what pc do U have ?

  • @codebasics
    @codebasics  4 роки тому +330

    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.

    • @claud5367
      @claud5367 4 роки тому +13

      u forgot to pin this, my friend

    • @gorge9774
      @gorge9774 4 роки тому +8

      how can i sell my hash ?
      :)

    • @codebasics
      @codebasics  4 роки тому +14

      @@claud5367 it is pinned now. thanks.

    • @stevefirsake899
      @stevefirsake899 4 роки тому +1

      Thanks, you explained what I asked about already in a previous comment.

    • @asmith1098
      @asmith1098 4 роки тому

      *THANK YOU SO MUCH YOU ARE THE BEST IMMEDIATELYHACKER,TECH* 💗

  • @Taziamoma
    @Taziamoma 4 роки тому +193

    This is the best way I've seen anyone explain what exactly bitcoin mining is. Great job!

    • @codebasics
      @codebasics  4 роки тому +19

      Glad you found it useful

    • @najeebullahafridi8886
      @najeebullahafridi8886 4 роки тому +4

      @@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 4 роки тому

      Me too

    • @anandclemens8066
      @anandclemens8066 4 роки тому +1

      Agreed!

    • @srikrishnaravoorganapathy3878
      @srikrishnaravoorganapathy3878 3 роки тому

      shrinke.me/BCHBitcoincash

  • @theofaure148
    @theofaure148 3 роки тому +126

    Success is about focusing Your energy on what creates results and using what you already know

    • @jasonburke5628
      @jasonburke5628 3 роки тому

      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 3 роки тому

      Assets that can make you rich!

    • @stephenhughes7520
      @stephenhughes7520 3 роки тому

      I.Crypto

    • @stephenhughes7520
      @stephenhughes7520 3 роки тому

      2.Stocks

    • @stephenhughes7520
      @stephenhughes7520 3 роки тому

      3.Shores

  • @chalokim
    @chalokim 4 роки тому +210

    Indian guys are like the Morgan Freeman of IT. Always there to explain things we don’t get.

    • @damiandamiano3651
      @damiandamiano3651 4 роки тому

      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 роки тому +3

      No he is not selling anything. Just telling about his video coming in some weeks

  • @danielbusi
    @danielbusi 3 роки тому +10

    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 👍

  • @codebasics
    @codebasics  4 роки тому +95

    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 4 роки тому +1

      And you not right ???? LOL

    • @hilsonkamil3685
      @hilsonkamil3685 4 роки тому

      Poor man
      Hahaha

    • @hilsonkamil3685
      @hilsonkamil3685 4 роки тому

      Lol

    • @hilsonkamil3685
      @hilsonkamil3685 4 роки тому

      Poor man

    • @solvingthemoneyproblem9621
      @solvingthemoneyproblem9621 4 роки тому

      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

  • @jay-rathod-01
    @jay-rathod-01 4 роки тому +229

    Him: We will be writing a bitcoin mining code.
    Me: Yes this video will make me rich.

    • @100ciafacil7
      @100ciafacil7 4 роки тому +5

      but illegally hahah

    • @XxluisinhoxX
      @XxluisinhoxX 4 роки тому +3

      stonks

    • @azure4514
      @azure4514 4 роки тому

      Really

    • @lukemartin4879
      @lukemartin4879 3 роки тому +6

      @Michael Weis Because in some countries owning, mining and trading bitcoin is illegal

    • @MrEnder0001
      @MrEnder0001 3 роки тому +1

      @@100ciafacil7 Bitcoin is not illegal

  • @valie2025
    @valie2025 4 роки тому +257

    +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  4 роки тому +20

      Glad you liked the format of the video.

    • @austind1454
      @austind1454 3 роки тому

      @@satish8437 its not fake, rlly man. He legit has the check

    • @getjob3662
      @getjob3662 3 роки тому

      @@codebasics can u do tutoriel how to make blockchain from scratch in dynamic algorithme whith own her coin

    • @getjob3662
      @getjob3662 3 роки тому

      @@codebasics replay on me

    • @pushkarkulkarni7790
      @pushkarkulkarni7790 2 роки тому +1

      @@codebasics so how do i make bitcoin transact the reward to my account?

  • @deinyxq
    @deinyxq 3 роки тому +1

    So far this the best explanation I have come across about bitcoin mining.

    • @whatsup6264
      @whatsup6264 3 роки тому

      🖕 send a direct message to her and she will assist you in whatever way you need assistance..

    • @wallopaidontelegram1934
      @wallopaidontelegram1934 3 роки тому

      I can’t imagine life with your scripts sir 👆👆it worked for me successfully 💯

  • @taganrose6682
    @taganrose6682 3 роки тому +29

    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 3 роки тому

      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 3 роки тому

      A friend that I referred to him from UK just received£9,055 profit after 14days of trading... just jealous asf...lol

    • @lauraness2971
      @lauraness2971 3 роки тому

      Am much thrilled to see him other investors. he is a very sincere man who understands the challenges faced by beginners, I started trading bitcoin under his guidance after seeing his interview with CNBC. he doesn't request for any charges to teach investors on how to trade and generate profits for themselves.

    • @lisaaddison2490
      @lisaaddison2490 3 роки тому

      I love this Mr George William strategies and methods, I was able to withdraw $19,500 in 2weeks. There is more to the system than the eyes sees something, sometimes this videos don't really help much as they end up confusing you more. When I came across Mr George William the confusion ended

    • @harunaabdullahi7446
      @harunaabdullahi7446 3 роки тому

      Mr George William has brought me out of the wrenches and to better living through trading options, I encourage newbies to trade with him

  • @sourdurian2839
    @sourdurian2839 3 роки тому +30

    this is the best damn tutorial ever. When i heard that accent, I clicked like instantly and continued watching :)

  • @mwahmed9519
    @mwahmed9519 4 роки тому +15

    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  4 роки тому +2

      Thanks mirza for your kind words

  • @rmlmax
    @rmlmax 3 роки тому +14

    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 💪

  • @hyqhyp
    @hyqhyp 4 роки тому +6

    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 роки тому +2

      Thanks for your kind words of appreciation :)

  • @ancientnpc
    @ancientnpc 4 роки тому +383

    The lesson. Vegetables are more expensive than medicine.

  • @cristofersilva4010
    @cristofersilva4010 4 роки тому +17

    Perfect video, omg I never have seen an video like it before in youtube, great work!!

  • @MotherCoin
    @MotherCoin 4 роки тому +70

    9:37 zen meditation mode 😂😂😂

    • @codebasics
      @codebasics  4 роки тому +4

      ha ha :) I like zen meditation

    • @mendoza6294
      @mendoza6294 4 роки тому +3

      I see you are a man of culture as well

    • @Nico-rl4bo
      @Nico-rl4bo 4 роки тому

      it starts 9:48

  • @Max-cs1dn
    @Max-cs1dn 3 роки тому

    This dude explains Bitcoin mechanics better than any other channels I’ve seen. Kudos!

  • @parshwashah2356
    @parshwashah2356 3 роки тому

    Easiest Explanation I have ever seen.Great Job.

  • @theovanniekerk391
    @theovanniekerk391 4 роки тому +4

    This was SO informative. Using Python, you explained bitcoin mining so well, it's now easy for me to understand. Good Video!!!

  • @edmel144
    @edmel144 4 роки тому +4

    Kohli -> Dhoni, I know what sport this guy likes.

  • @darak2
    @darak2 3 роки тому +7

    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 роки тому +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

  • @RishiKaura
    @RishiKaura 3 роки тому +1

    Beautifully explained on what is mining in simple words

    • @codebasics
      @codebasics  3 роки тому

      🙏🙏👍👍☺️

    • @wallopaidontelegram1934
      @wallopaidontelegram1934 2 роки тому

      Real and legit Bitcoin mining ⛏ 🔝🔝I receive 9btc to my wallet address 💯

  • @chadwickposey7806
    @chadwickposey7806 3 роки тому

    This is the first explanation of blockchain that made sense.... you made it easily understood... THANK YOU!

  • @dhanvipranshi271
    @dhanvipranshi271 3 роки тому +38

    INVESTING IN CRYPTO NOW IS VERY COOL EXPECIALLY WITH THE CURRENT RISE IN THE MARKET NOW.

    • @hazelkaliyah2258
      @hazelkaliyah2258 3 роки тому

      Most intelligent words I've heard,

    • @hazelkaliyah2258
      @hazelkaliyah2258 3 роки тому

      Crypto is the new gold,

    • @hazelkaliyah2258
      @hazelkaliyah2258 3 роки тому

      I'm a huge fan of crypto, I hold some few coins in my wallet.

    • @justinpamela2193
      @justinpamela2193 3 роки тому

      The rich get wealthier as they trade, the poor remain and get even more poorer because of skepticism and fear of taking risk,

    • @justinpamela2193
      @justinpamela2193 3 роки тому

      The fruitfulness of your trading lies on the account manager or the expert,

  • @stefanleithner6922
    @stefanleithner6922 3 роки тому +4

    even tho I didn't really get the coding part, this still gave me lots of knowledge. thanks! 😊😊

  • @kihrerey3118
    @kihrerey3118 4 роки тому +11

    I couldn't leave without liking this video 😲😲😲😲😲

  • @demolitionkid2
    @demolitionkid2 3 роки тому +1

    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

  • @roberthypax6275
    @roberthypax6275 3 роки тому

    It's the first time I actually understand this. You're the best bro

  • @harharmahadev4644
    @harharmahadev4644 4 роки тому +14

    That's the best thumbnail I have ever seen in a tutorial video lol.

  • @adarksoul2454
    @adarksoul2454 4 роки тому +41

    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 4 роки тому +2

      ikr I got so mad because of it lol

  • @hasansolak23
    @hasansolak23 4 роки тому +3

    The best explaination I have seen, thank you so much.

  • @xanderx8289
    @xanderx8289 4 роки тому

    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.

  • @Miles_Heb
    @Miles_Heb 4 роки тому +1

    This has been the clearest explanation of how the Bitcoin Blockchain works thanks Dhaval! Great tutorial/guide

  • @fabriziodutto7508
    @fabriziodutto7508 3 роки тому +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.

  • @britney_david
    @britney_david 2 роки тому +18

    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.

  • @JemilMarcosTyC
    @JemilMarcosTyC 3 роки тому +26

    Its interesting to learn how it works and thank you for that. But is useless without the real blockheight, lasthash and difficulty... why not include how to connect to bitcoin core to get that information in realtime via rpc and make a REAL miner. Because at this point, the title is missleading. Educative nontheless, but otherwise incomplete. You could use you awesome and simplified way of explaining to enlight a lot of people. No thumbs down, no negative hate, it is just what I felt. It would've been nice to have all this wrapped in one well explained tutorial.

  • @ShafakTan
    @ShafakTan 4 роки тому +1

    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...

  • @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.

  • @williamjohn3391
    @williamjohn3391 3 роки тому +147

    Investing in crypto now is very cool especially with the current rise in the market now

    • @paroitymata5213
      @paroitymata5213 3 роки тому

      Yes you are right

    • @paroitymata5213
      @paroitymata5213 3 роки тому +2

      Thanks for introducing me to Mrs Allen Lisa

    • @markangel8353
      @markangel8353 3 роки тому

      People are scared of investing because of the high rate of scam in the business

    • @markangel8353
      @markangel8353 3 роки тому

      Making them to remain poor out Of ignorance

    • @enkhbatnaya6801
      @enkhbatnaya6801 3 роки тому +1

      There are scammers but there are real brokers waiting for investors out there

  • @arpitgarg2567
    @arpitgarg2567 4 роки тому +51

    Great explanation with the practical implementation of how actually mining works.
    Many thanks for providing this great video.
    Really appreciate your effort !!

    • @codebasics
      @codebasics  4 роки тому +1

      😊👍

    • @philipfrancis1368
      @philipfrancis1368 3 роки тому +1

      @@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 3 роки тому

      trust me if you want to turn a profit this is not anywhere near practical

  • @CrusadeVoyager
    @CrusadeVoyager 4 роки тому +4

    Nice info on bitcoin mining, hope to see more

  • @markasgrazhulis9081
    @markasgrazhulis9081 3 роки тому

    Thank you code basic I am an 11-year-old and from this tutorial, I have written my own program and now I have a good understanding of bitcoin.

    • @codebasics
      @codebasics  3 роки тому

      Great. Markas I am happy you are self learning and this video was helpful to you

    • @markasgrazhulis9081
      @markasgrazhulis9081 3 роки тому

      @@codebasics Thank you so much 👍

    • @juliusfucik4011
      @juliusfucik4011 3 роки тому

      Keep going! When I was your age all I did was programming. It ended up saving my life. I went through university and got a good job. I remember the first year of university. It was very hard. Lots of new stuff and my math skills were subpar.
      I remember to this day... I took a train north and I was doing calculus. Reading. Writing. Very focused. After about an hour the train halted at a station. The women sitting across from me got up to get out. In passing she said to me: "Never ever ever give up!".
      I was surprised and could not say anything. I smiled and never forgot.
      Listen to me, I am the woman on that train for you. Keep going. We do things because they are hard, not because they are easy! You will go far in life with that attitude! 👍

  • @arivu_ariv98
    @arivu_ariv98 3 роки тому +1

    Thanks fr simple, neat nd sweet nd very much understandable explanation.....

  • @ViratKohli-jj3wj
    @ViratKohli-jj3wj 4 роки тому +4

    The camera quality is really awesome bro.

  • @mylittleparody2277
    @mylittleparody2277 3 роки тому +4

    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.

  • @patriciamia753
    @patriciamia753 3 роки тому +58

    Hello Mrs Jane is legit and her method works like magic I keep on earning every single week with her new strategies

    • @fazzacharleyg
      @fazzacharleyg 3 роки тому

      Wow I' m just shock someone mentioned expert Mrs Jane I thought I' m the only one trading with her

    • @fazzacharleyg
      @fazzacharleyg 3 роки тому

      She helped me recover what I lost trying to trade my self

    • @anabelchris2021
      @anabelchris2021 3 роки тому

      I think I'm blessed because if not I wouldn't have met someone who is as spectacular as expert Mrs Jane.
      I think she is the best broker I ever seen

    • @ittysuyyrut8620
      @ittysuyyrut8620 3 роки тому

      Thanks for introducing me to Mrs Jane.
      My first investment with Mrs Jane gave me profit of over $24,000 us dollars and ever since then she has never failed to deliver and I can even say she's the most sincere broker I have known

    • @ruthalex9474
      @ruthalex9474 3 роки тому

      Yes I' m also a living testimony of expert Mrs Jane.

  • @tom5ironman
    @tom5ironman 3 роки тому +1

    Good job explaining what the mining code actually does. Most other videos just say "the miners are rewarded for solving math problems" - very lame.

    • @codebasics
      @codebasics  3 роки тому

      glad you found this useful Tom

  • @witchaponkitthaworn5998
    @witchaponkitthaworn5998 3 роки тому

    I watched this, also an explanation from a mathematician on SHA-256, and an advertisement on a bitcoin miner site which they explain what is bitcoin.
    truly, right now I am much better understanding it and can confidently explain to others.

    • @codebasics
      @codebasics  3 роки тому

      I am happy this was helpful to you.

  • @trym8642
    @trym8642 4 роки тому +74

    Damn bro, that camera quality at start

    • @codebasics
      @codebasics  4 роки тому +18

      ha ha... power of sony A6400 with extra sharp lense

  • @mandolinbala
    @mandolinbala 4 роки тому +3

    Really enjoyed your tutorial ! Learnt something today 😀

  • @chrispenn5958
    @chrispenn5958 4 роки тому +55

    If you really want success as an investor in the stock and forex markets then you should turn to bitcoin its solidity and growth is amazing

    • @burkchristopher3710
      @burkchristopher3710 4 роки тому

      I can boldly say despite the economic crisis facing the world, this is a still a good time to invest in Gold and Crypto

    • @brownx5694
      @brownx5694 4 роки тому

      The rich spend less and invest more especially during economic crisis

    • @patriciafennel5643
      @patriciafennel5643 4 роки тому

      Investing in these economic crisis will be one of the best things to do, only intelligent folks will agree

    • @triciaspencer1894
      @triciaspencer1894 4 роки тому

      @@patriciafennel5643 You're right I think Gold and bitcoin are the best to invest in right now☺️

    • @patriciafennel5643
      @patriciafennel5643 4 роки тому

      Gold's are good but bitcoin has proven to be the best.

  • @yevhenukrainianer4781
    @yevhenukrainianer4781 4 роки тому +2

    It's really simple explanation of the mining. Thank you.

  • @bernhardstillger1026
    @bernhardstillger1026 3 роки тому +1

    Very good explanation. Well done. Now we are looking for the next tutorial how to link this to the bitcoin queue and add it to my wallet ;-) .

    • @codebasics
      @codebasics  3 роки тому

      This video has an answer to your question: ua-cam.com/video/QAsZgzLPaWU/v-deo.html

  • @X19-x5f
    @X19-x5f 4 роки тому +4

    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.

  • @axolet
    @axolet 4 роки тому +23

    In tomorrow's tutorial, we'll discover the meaning of life in 12 lines of code.

    • @codebasics
      @codebasics  4 роки тому +8

      ha ha :) Nice suggestion.. I think I should make a video on this.

    • @azure4514
      @azure4514 4 роки тому

      @@codebasics where we run this code for mining

  • @beztyagamer6367
    @beztyagamer6367 4 роки тому +32

    4:35 nice
    belch and sound like beer... XD

  • @Meepox5
    @Meepox5 3 роки тому

    Just found your videos but you are a very good teacher, thank you!

  • @sairammishra6115
    @sairammishra6115 3 роки тому

    The best explanation I ever got about BLOCKCHAIN .... THANK YOU SO MUCH

  • @andrescamilo7406
    @andrescamilo7406 4 роки тому +13

    If speed matters, Python is the worst option, use Rust or C/C++ instead. Great explication anyway :)

    • @codebasics
      @codebasics  4 роки тому +5

      Yes. I just wanted to show how the code looks. In real life people go all the way till assembly language to make it fast

    • @mokus603
      @mokus603 4 роки тому +6

      Re-writing Python code in C/C++ is easy, but coming up with ideas is slow.
      So, prototyping in Python is smart.

    • @CrazyFanaticMan
      @CrazyFanaticMan 4 роки тому

      You can use cython to compile your python code to C

    • @codebasics
      @codebasics  4 роки тому

      @@mokus603 exactly

  • @raverecage
    @raverecage 4 роки тому +3

    Quantum computers: hold my beard.... 😂

    • @codebasics
      @codebasics  4 роки тому +1

      😂

    • @Youtuber-pw1bi
      @Youtuber-pw1bi 4 роки тому

      Quantum computing is not deterministic, doesn't work here.

    • @raverecage
      @raverecage 4 роки тому

      @@UA-camr-pw1bi “Oh? You’re Approaching Me?”

    • @Lord2225
      @Lord2225 4 роки тому

      @@UA-camr-pw1bi quantum computer would be able to guess "nonce'es" values that have high probability of starting with 20 zeros.

  • @mariasmith7659
    @mariasmith7659 3 роки тому +23

    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 3 роки тому

      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 3 роки тому

      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 3 роки тому

      Trading forex is a good business one can look for trading

    • @alvinmassey3216
      @alvinmassey3216 3 роки тому +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 3 роки тому

      If you ask me I think forex has something big for the world but having a good expert to mentor you is the best

  • @Mrsubset
    @Mrsubset 4 роки тому

    What a detailed and a well delivered concept of bitcoin mining with Python. Bravo!.

  • @ganprasad9653
    @ganprasad9653 3 роки тому

    I have watched many video's but couldn't understand the concept but this one has broken the ice

  • @wendylongstreet1237
    @wendylongstreet1237 3 роки тому +14

    keep buying and investing in stocks or crypto,soon Bitcoin will hit $100,000

    • @godfathershashank
      @godfathershashank 9 місяців тому

      Btc going to achieve this Target 🎯 🎯 Soon Already hit $73000 🎉 🎉

  • @carmelitagonzalez5014
    @carmelitagonzalez5014 3 роки тому +18

    The best way to secure a future is to invest, saving up money in a bank account can never make you rich. I recommend a professional broker ms Maria Martinez for those who wish to make profits in trading.

    • @diegoromero2458
      @diegoromero2458 3 роки тому

      I have been having losses on my trading, please someone should put me to this Ms Maria's investment.

    • @sylviajackson9883
      @sylviajackson9883 3 роки тому

      When i started my first trade with Ms Maria, i was scared of scam, but i am glad today that i made that decision of trading with her. Her profit is so unimaginable.

    • @williamsjackson8159
      @williamsjackson8159 3 роки тому

      I lost my job due to the Pandemic and life became very difficult for my family, until i saw a post made about Ms Maria's investment. I doubted because of scam but i reluctantly invested with her, and i do not regret investing with her. Thank you ms Maria for bringing joy to my family once again. Please invest with her.

    • @markbrown7454
      @markbrown7454 3 роки тому

      Ms Maria have been the person handling my husband's trade for years now, she is sincere and trustworthy.

    • @janeanderson9698
      @janeanderson9698 3 роки тому

      Please how do i reach ms Maria?

  • @vinayakanaik6839
    @vinayakanaik6839 3 роки тому

    Nice one.. if someone want to know about crypto, this is best video.. 🙏👍

  • @DhruvPatel-xt4mk
    @DhruvPatel-xt4mk 4 роки тому +1

    This guy is God for me. You made it really easy to understand. Thank you.

  • @cdecripto
    @cdecripto 4 роки тому +20

    After I completed a hash with my difficulty set on 20, how do I transfer de rewards to my wallet?

    • @lucaitaly1975
      @lucaitaly1975 4 роки тому +1

      you just add the new block discovered to the blockchain and the fixed reward is calculated in your bitcoin wallet address

    • @codebasics
      @codebasics  4 роки тому +8

      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 4 роки тому +6

      @@codebasics thanks but before buying any Asic you should buy an electricity power plant !!!

    • @carlocarlo1635
      @carlocarlo1635 4 роки тому +1

      @@codebasics thanks , excelent video. but how do you send the discovered hash to the chain?

    • @WestCoastAce27
      @WestCoastAce27 4 роки тому +1

      @@lucaitaly1975 or connect to his neighbor’s outlet. 🤣

  • @GREEKPREVIEWZ
    @GREEKPREVIEWZ 4 роки тому +31

    4:35 the burp.

  • @tonystarke5332
    @tonystarke5332 4 роки тому +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

  • @rohandesigns
    @rohandesigns 3 роки тому

    Beautifully explained bro... i really liked the way you explained. BEAUTIFUL...👌🏻👌🏻👌🏻

    • @codebasics
      @codebasics  3 роки тому

      I am happy this was helpful to you.

  • @atharvapatil7549
    @atharvapatil7549 4 роки тому +1

    Brilliant video to learn about the basic concepts of mining🔥🔥

  • @ricardogr371
    @ricardogr371 4 роки тому +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 роки тому +1

      This video has some (if not all) answers: ua-cam.com/video/QAsZgzLPaWU/v-deo.html

  • @oscartaylor340
    @oscartaylor340 4 роки тому +5

    can I use this for dogecoin if I change the hash?

  • @456public
    @456public 4 роки тому +3

    Today I got it ,all these years I wasted my time to know what the exact thing is going on ,

  • @ahmedtawfiq3625
    @ahmedtawfiq3625 3 роки тому

    This is really mind blowing explanation 👏🏼👏🏼👏🏼

  • @asepm7591
    @asepm7591 4 роки тому +1

    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'

  • @speedxtreem
    @speedxtreem 4 роки тому +4

    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  4 роки тому +4

      bitcoin uses blockchain. That's what I meant in the video.

  • @bellpepper3235
    @bellpepper3235 4 роки тому +4

    Please make a video on Data Mining with Python.🙏

  • @cryptotechbeyond133
    @cryptotechbeyond133 3 роки тому

    Very good, high quality with real education. I feel like I learned something after watching. Instead of having more questions.

  • @veenapolicepatil8145
    @veenapolicepatil8145 3 роки тому +1

    Thanks alot for your wonderful explanation sir ,great work keep it up

  • @mm-zw1zc
    @mm-zw1zc 3 роки тому +18

    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 3 роки тому

      I would like to know what you are telling

    • @mm-zw1zc
      @mm-zw1zc 3 роки тому +1

      @@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.

  • @manjus3
    @manjus3 4 роки тому +5

    Thanks so much for this video! One question: After mining the nonce, who uses that value, and for what purpose?

  • @neerbavariya7346
    @neerbavariya7346 4 роки тому +6

    Thank you fellow Gujarati for this
    amazing tutorial ❤ . I just had a doubt , how can someone take bitcoin mining as a career option ? Like professional crypto miners .

    • @XashA12Musk
      @XashA12Musk 3 роки тому +1

      BHAI MANEY MODHU JOTA TO PELA EM J THAYU KE BHURO GUJARATI CHE

    • @codebasics
      @codebasics  3 роки тому +2

      ha ha .. nice :) Ha bhai hu pakko gujarati chhu.. from Nadiad :)

    • @codebasics
      @codebasics  3 роки тому +1

      Neer, Crypto as a career option is not worth as of 2021. There are not many jobs but in future many opportunities will open up so it is better to get yourself educated on this front

    • @neerbavariya7346
      @neerbavariya7346 3 роки тому

      @@codebasics saras saras

    • @neerbavariya7346
      @neerbavariya7346 3 роки тому

      @@codebasics oh ok Thank you man for the valuable advice.

  • @HolyFacts
    @HolyFacts 3 роки тому

    Your the only One i ever stood well,
    Thank you for the Concise efforts and awesome work.
    subscribed !

  • @amitmukherjee3885
    @amitmukherjee3885 Місяць тому

    Great, i follow your videos and believe me that's amazing

  • @abdulrahmanelsisy8025
    @abdulrahmanelsisy8025 4 роки тому +18

    Well, after the result appears, what should I do? and thank you so much.

    • @thecreativecorner2002
      @thecreativecorner2002 4 роки тому +1

      I am also confused 🤔

    • @nerfzinet
      @nerfzinet 4 роки тому +5

      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 4 роки тому +3

      @@nerfzinet Thank you very much for encouraging the search to continue

  • @vliopard
    @vliopard 4 роки тому +12

    Missing in this video: 1. How to get the actual parameters for starting real mining; 2. You found a hash, does this code provide you the reward? So, what to do with the hash you generate? Does it magically integrates to blockchain? How you notify you're the owner? Without these steps 15 lines of code are totally useless.

    • @codebasics
      @codebasics  4 роки тому +17

      I only covered core algo here. to cover integration with bitcoin ecosystem it will require few more videos (which I am planning to add in future). The intent behind showing this 15 lines of code is to show to people that bitcoin mining doesn't mean complex algorithmic task but it is more about computation and hardware resources and who gets to win the guesses game.

  • @Alexis-hofstetter
    @Alexis-hofstetter 3 роки тому +3

    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

  • @biggdrepallaya3584
    @biggdrepallaya3584 3 роки тому

    I’m new to coding. This is very helpful. Thank you.

  • @pantch12345
    @pantch12345 3 роки тому

    Great explanation. Thanks mate. Now I know how Bitcoin mining works!

  • @siilnr1250
    @siilnr1250 4 роки тому +10

    chinese ppl doing this by heart lmao, they dont need computers to mine xd

  • @codelikeivan5355
    @codelikeivan5355 4 роки тому +5

    wow im just amazed the quality of the video crispy clean