Simple Bitcoin Miner in Python

Поделиться
HTML-код
  • Опубликовано: 19 мар 2021
  • Today we learn how Bitcoin mining is done and we implement the basic algorithm in Python.
    DISCLAIMER: This is not investing advice. I am not a professional who is qualified in giving any financial advice. This is a video purely about programming using financial data. I do not recommend this script for actual profit-oriented Bitcoin mining.
    ◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾
    📚 Programming Books & Merch 📚
    💻 The Algorithm Bible Book: www.neuralnine.com/books/
    🐍 The Python Bible Book: www.neuralnine.com/books/
    👕 Programming Merch: www.neuralnine.com/shop
    💻 Exclusive Content 💻
    👥 Patreon: / neuralnine
    🌐 Social Media & Contact 🌐
    📱 Website: www.neuralnine.com/
    📷 Instagram: / neuralnine
    🐦 Twitter: / neuralnine
    🤵 LinkedIn: / neuralnine
    📁 GitHub: github.com/NeuralNine
    🎵 Outro Music From: www.bensound.com/
  • НаукаНаука

Комментарии • 285

  • @extrem2497
    @extrem2497 2 года назад +3

    Finally a source on explaination on how mining software works. WHen i search it all shows how to mine, best mining software etc but not how to make one.

  • @Nobody65737
    @Nobody65737 3 года назад +10

    I remember this channel in its initiation, love how much you've grown man🤜🏻, also, Please make a Data Mining series whenever you can...

  • @benlong1062
    @benlong1062 3 года назад +5

    This was really interesting. Thanks!

  • @mattmovesmountains1443
    @mattmovesmountains1443 3 года назад +10

    One of my goals is to learn enough to understand the videos on this channel. Always interesting; quite often way over my head.

  • @nathanhales2970
    @nathanhales2970 2 года назад +1

    Thanks for the video. It was fun to watch

  • @thefastcomputer
    @thefastcomputer 2 года назад +1

    Love the intro. Subscribed.

  • @vincipaoloesposito8002
    @vincipaoloesposito8002 3 года назад +21

    Hi, nice video. Is it possible to use it with an actual mining pool? Like nice hash miner? Getting the data from the pool. compute it and send it back?

  • @alialavizadeh2775
    @alialavizadeh2775 3 года назад

    so cool u are the first one that I learnt bitcoin from

  • @meliodas6309
    @meliodas6309 3 года назад +1

    that was so awesome thanks for posting its so educational thanks

  • @ivanfedorov7934
    @ivanfedorov7934 2 года назад +1

    Hi, my massive respect to you, your video is the best

  • @siddanthshaiva7395
    @siddanthshaiva7395 3 года назад +19

    You are definitely growing bro.... Keep it up ❤️

  • @edtix
    @edtix 3 года назад +2

    Maybe you can make a video about blockchain analysis? I know that full blockchain of bitcoin is huge but maybe there is a walk-around. Or maybe generating bitcoin wallet with public key beginning with custom string.

  • @Bendermanuk
    @Bendermanuk 2 года назад +2

    Hi, really interesting video - I cant work out how to display the new hash though - how could I do that?

  • @nikcena8305
    @nikcena8305 3 года назад +1

    The best channel 🤘

  • @z4ramoth
    @z4ramoth 3 года назад +4

    how long have you been doing pyhton stuff ?

  • @HeadCracked
    @HeadCracked 3 года назад +39

    and what do u do after getting the hash with 6 or more zeros? how to get the bitcoin or how to use the string i mined out?

    • @kshirodhati4093
      @kshirodhati4093 2 года назад

      Ya, no one telling it man ..

    • @theinthanhlan3582
      @theinthanhlan3582 2 года назад

      @@kshirodhati4093 Is there anyone who knows this?

    • @yannis8484
      @yannis8484 2 года назад +1

      I'm looking for someone explaining how to communicate the nonce you found to the blockchain but no one explain it and i can't find a single forum talking about it :/

  • @dude.random
    @dude.random 2 года назад +1

    Thanks for the video. Please how do I use the hash generated

  • @jefflegend456
    @jefflegend456 3 года назад +6

    Good video sir. By the way how we gonna store this in our wallet?

  • @pkstock372
    @pkstock372 3 года назад +2

    why 18 zeros new hash means that it was a correct transaction ? Did the formula compare it with the old hash ?

  • @lukaspodvojsky3313
    @lukaspodvojsky3313 3 года назад +1

    Hey man, nice video! Can I ask what font do you use? I really like the look of it ;).

  • @randomguyidk4060
    @randomguyidk4060 3 года назад

    You are the best!

  • @errolrosa8720
    @errolrosa8720 3 года назад +4

    This is a general explanation of the algorithm but how do you actually recieve the btc? Where do you get transactions from?

    • @atharvagaikwad9619
      @atharvagaikwad9619 3 года назад +1

      in wallet mate /// u cant store with this code

    • @ameloskii3086
      @ameloskii3086 2 года назад

      @@atharvagaikwad9619 people really like it the easy way huh?

  • @unknown-ug1ev
    @unknown-ug1ev 3 года назад +29

    Hello bro could you plz make a video how to mine bitcoin but automatically in python (if possible)

  • @pkstock372
    @pkstock372 3 года назад

    1 The new generated hash has 18 zeros would become old has for the next transaction , so the hash always started with 18 zeros ?

  • @JohnintheTyranny
    @JohnintheTyranny 2 месяца назад

    Once you broadcast a mined bitcoin, how do you collect the bitcoin?

  • @abhimanyunegi4382
    @abhimanyunegi4382 2 года назад +1

    but where do you upload the result???

  • @SpecialE101
    @SpecialE101 Год назад

    But for the nonce you use a random number, correct?

  • @wachsmalstift
    @wachsmalstift 3 года назад +2

    how to connect it with our btc wallet?

  • @TK-wh9mh
    @TK-wh9mh 2 года назад +1

    Are you able to show the complete mining program including the receiving BTC wallet address?

  • @terryterry1655
    @terryterry1655 2 года назад

    How to start mining using your code even that I have registered a btc e wallet?how to find the latest hash to input to script? Thx

  • @dagaret352
    @dagaret352 2 года назад

    What do I do after getting the hash...

  • @hasank6796
    @hasank6796 3 года назад

    nice
    thank you

  • @fatihduzduvaratrmanan4926
    @fatihduzduvaratrmanan4926 3 года назад +3

    You were 6k bro keep it up

  • @anonymousghost5384
    @anonymousghost5384 2 года назад

    Dose it build real block or just sample??

  • @le_petite_cow_soldier
    @le_petite_cow_soldier 3 года назад +4

    how to get mined bitcoins?

  • @rompvmrix8103
    @rompvmrix8103 8 месяцев назад +1

    hi bro your code requires transaction variables where is this value actually taken thanks man

    • @rompvmrix8103
      @rompvmrix8103 8 месяцев назад

      @bitmine815 what's your telegram address bro?

  • @alpw404
    @alpw404 3 года назад

    Wow 1 minute, thats nice

    • @NeuralNine
      @NeuralNine  3 года назад

      what do you mean by 1 minute?

  • @yeaqub0134
    @yeaqub0134 3 года назад +2

    Then how to get mining point??

  • @strongcitytv6686
    @strongcitytv6686 2 года назад

    Whats happens next
    If you get the correct block code

  • @aishikbandyopadhyay8191
    @aishikbandyopadhyay8191 3 года назад +3

    Please do a tutorial video on setting up vim like you have(auto suggestion,auto completion,intellisense, etc)

    • @NeuralNine
      @NeuralNine  3 года назад +1

      I already made a video about my neovim config. The details are just a matter of googling

  • @actechforlife
    @actechforlife 3 года назад +7

    This will be one of your most watched videos :)

    • @NeuralNine
      @NeuralNine  3 года назад +1

      Not sure about it but I hope so ^^

  • @brahiammiguelalvarado7251
    @brahiammiguelalvarado7251 3 года назад

    Cool!!!

  • @shaz01
    @shaz01 Год назад +1

    Nice intro

  • @muratolgun7992
    @muratolgun7992 2 года назад

    How can i transfer generated satoshis to any bitcoin wallet?

  • @divinecaster
    @divinecaster 3 года назад +4

    Oh, I missed watching these tutorials

  • @felixfigueroa
    @felixfigueroa 3 года назад

    Wow....you're really a crack ..! 💪🚀🚀🚀

  • @lornemalvoo
    @lornemalvoo 3 года назад

    YES!

  • @judedavis92
    @judedavis92 3 года назад +1

    Can you teach us how you configure your vim editor?

  • @623-x7b
    @623-x7b 3 года назад

    What IDE is that

  • @pkstock372
    @pkstock372 3 года назад

    hashlib.sha256( combined_text.encode( ) ).hexdigest ( ) ? if i delete .encode( ) ? Does it work ?

  • @miladsadeghi14
    @miladsadeghi14 Год назад

    Hi 😊
    that was awesome...
    I want to know if it is possible to get any other currency except bitcoin in this way?
    and 🙃I want to know if it is possible to get any other currency except bitcoin in this way? And how can you make maximum use of it every day in this way?

  • @mehisnoulik6545
    @mehisnoulik6545 3 года назад

    Nice!

  • @fjdstudios4485
    @fjdstudios4485 2 года назад +1

    Please do you have a proper tutorial for a proper bitcoin mining bot?

  • @ilkinalizade8467
    @ilkinalizade8467 3 года назад

    hey guys how can i trade it now?

  • @yashmistry5813
    @yashmistry5813 3 года назад +3

    Could you believe yesterday I was thinking about "Can we do mining with python?" and you upload this video ! Can know the intro song ?

  • @scienceium5233
    @scienceium5233 3 года назад

    1 minute ? Nice !

    • @NeuralNine
      @NeuralNine  3 года назад

      what do you mean? :D

    • @scienceium5233
      @scienceium5233 3 года назад

      @@NeuralNine omg you actually replied ! I meant the video was posted only one minute ago

    • @theinthanhlan3582
      @theinthanhlan3582 2 года назад

      @@scienceium5233 Do you know how to use the hash that we produced.

  • @1000marcelo1000
    @1000marcelo1000 3 года назад

    Omg, It seems that i have already seen that exactly same video but in another channel

  • @TheInternet81
    @TheInternet81 2 месяца назад

    So to produce the correct hash, we need to guess..., means to produce the correct hash, every minning apps do a brute force, to get the correct hash?
    How if we train the guest that already success and use it to produce the correct hash, if we can do that, we can minning more faster even we do it with python

  • @SparePlayss
    @SparePlayss 3 года назад

    The video - Simple Bitcoin Miner in Python
    Me - Lets do it and mine bitcoins
    my potato PC - No, I don't think I will

    • @NeuralNine
      @NeuralNine  3 года назад +1

      It is more about understanding the principles anyway ^^

    • @SparePlayss
      @SparePlayss 3 года назад

      @@NeuralNine True tho

  • @back-endmastery5219
    @back-endmastery5219 Год назад +1

    if you areon PyCharm in terminal whrite python .py

  • @sodysodrick7073
    @sodysodrick7073 3 года назад +1

    Thanks a lot but how can add the reward to my wallet

    • @bitcoingenerator8393
      @bitcoingenerator8393 3 года назад

      THANK YOU SO MUCH SIR @DONEHACK ON TĖŁĖGRÅM I RECEIVE 5BTC TO MY WALLET SIR

  • @davisellan3891
    @davisellan3891 2 года назад +1

    THANKS FOR RECOVERING MY STOLEN BTC AM GRATEFUL 🙏

  • @notrb411
    @notrb411 3 года назад

    U are the best

  • @rohandevaki4349
    @rohandevaki4349 2 года назад

    please write some code which will mine actual bitcoin

  • @erdemyildirim9341
    @erdemyildirim9341 3 года назад

    can I generate bitcoin in my computer with these codes? Do I necessarily need to buy bitcoin miners?

    • @user-xf7mu7ub9d
      @user-xf7mu7ub9d 3 года назад

      you don't generate bitcoin in your PC, they go in your crypto wallet.
      you can use any computer or phone to mine but the more powerful the device is, the more you'll get in less time.

    • @bitcoingenerator8393
      @bitcoingenerator8393 3 года назад

      THANK YOU SO MUCH SIR @DONEHACK ON TĖŁĖGRÅM I RECEIVE 5BTC TO MY WALLET SIR

  • @matt8ress
    @matt8ress 2 года назад

    ty, i found 149 hashes

  • @siamahmed8287
    @siamahmed8287 3 года назад

    Can you give me your intro music?

  • @helloworld4730
    @helloworld4730 3 года назад +3

    Hello, May I ask which university you are studying in?
    You are an amazing programmer btw

    • @NeuralNine
      @NeuralNine  3 года назад +5

      Technical University of Vienna

    • @helloworld4730
      @helloworld4730 3 года назад +4

      @@NeuralNine I see I see. I am studying in Fudan University in China. Want to become a creative coder like you. Keep up the good work bro.

    • @NeuralNine
      @NeuralNine  3 года назад +3

      @@helloworld4730 wish you the best of luck :)

    • @theinthanhlan3582
      @theinthanhlan3582 2 года назад

      @@NeuralNine how to use that hash code?

  • @zombiekiller7101
    @zombiekiller7101 3 года назад +1

    If we are mining a btc and someone else mines it first, what will happen?

  • @PubboxCh
    @PubboxCh 3 года назад

    That's good but how to use this code realy to mine bitcoin, I mean ok we have the basic of codes but how to connect to a pool and mining in real time? That's the point

  • @Alex-jk1kd
    @Alex-jk1kd 3 года назад +1

    bitcoin mining isn't profitable nowadays, only with lots of GPUs, but great vid bro, watching you from brazil

    • @zombiekiller7101
      @zombiekiller7101 3 года назад

      No, gpu have become obsolete
      Use asic

    • @UnsentPH
      @UnsentPH 2 года назад

      Say it again at this moment bro

  • @soltsdev
    @soltsdev Год назад

    is this bot profitable

  • @mrbutwhyme9941
    @mrbutwhyme9941 2 года назад +1

    Do you actually mine bitcoin and earn anything?

  • @dw6062
    @dw6062 Год назад +3

    Does this still work ?

  • @NooobCODE
    @NooobCODE 3 года назад

    code for stock trade

  • @dis__dev6926
    @dis__dev6926 3 года назад

    Yess now I will be rich

  • @Wolfyxon
    @Wolfyxon 2 года назад +1

    i have BTC hash cool. What now

    • @Wolfyxon
      @Wolfyxon 2 года назад +1

      Why are you thanking me

  • @mubeenahmad4893
    @mubeenahmad4893 3 года назад +1

    How to convert hash to crypto currency ?

    • @user-xf7mu7ub9d
      @user-xf7mu7ub9d 3 года назад

      hash per second is the "velocity". there are many websites that can calculate how many, for example, Bitcoin you would make in one day with a certain amount of H/s.

    • @bitcoingenerator8393
      @bitcoingenerator8393 3 года назад

      THANK YOU SO MUCH SIR @DONEHACK ON TĖŁĖGRÅM I RECEIVE 5BTC TO MY WALLET SIR

  • @32.santoshsamidurai32
    @32.santoshsamidurai32 3 года назад

    pls write a piece of code for mining altcoins using python

    • @bitcoingenerator8393
      @bitcoingenerator8393 3 года назад

      THANK YOU SO MUCH SIR @DONEHACK ON TĖŁĖGRÅM I RECEIVE 5BTC TO MY WALLET SIR

  • @prinsarnaproduction1133
    @prinsarnaproduction1133 2 года назад

    With the amount of bot comments this seems hellla scetch

  • @jacksonpsdotnet
    @jacksonpsdotnet 2 года назад

    Where is the Bitcoin miner?

  • @ymous7051
    @ymous7051 2 года назад

    ah, please make a fully working bitcoin miner with python, like we just have to enter our wallet address and rest of the details it scrapes from the internet

  • @user-ff2it4tq6b
    @user-ff2it4tq6b 2 года назад +1

    Thank you so much ☝️☝️for the new bitcoin you just credited to my wallet I really appreciate all your efforts sir🙏🏻..

  • @naomifred9846
    @naomifred9846 2 года назад +1

    15btc with the help of 👆👆👆he keep putting smile on my face thank you so much sir..

  • @recepcapok2968
    @recepcapok2968 8 дней назад

    If I'm lucky, I can produce bitcoin on a low-hardware system.

  • @harrybestfriend5282
    @harrybestfriend5282 3 года назад

    day 1 of asking for the intro song

  • @iliqnew
    @iliqnew 2 года назад

    this does not even connect to a pool or smth

  • @prod.ot5
    @prod.ot5 3 года назад +1

    19 seconds 😁

    • @NeuralNine
      @NeuralNine  3 года назад

      ^^

    • @prod.ot5
      @prod.ot5 3 года назад

      @@NeuralNine can you do a tutorial for sockets using UDP

  • @saadsaid7832
    @saadsaid7832 2 года назад

    how to get out your money

  • @lopikilop7597
    @lopikilop7597 Год назад +1

    On telegram

  • @MrRobot-yb8cb
    @MrRobot-yb8cb Год назад

    Tf happend to comments?

  • @shirleyhayyy4095
    @shirleyhayyy4095 Год назад +1

    Telegram

  • @__3093
    @__3093 3 года назад +1

    :)

  • @mamaniarrahmahpradipta9176
    @mamaniarrahmahpradipta9176 10 месяцев назад

    Why you not make a complete tutorial of the python mining? There's just for show off?? 😂😂😂

  • @user-qm3hk8hm4y
    @user-qm3hk8hm4y 3 года назад

    *i really appreciate you so much bro for the 2btc profit return from you I promise to keep on investing in your platform surely💯*

  • @jaschito96
    @jaschito96 3 года назад

    Your cam is very dark

    • @NeuralNine
      @NeuralNine  3 года назад

      Yeah in this video I turned off Auto-Exposure. Should be fixed in future videos.

  • @mehrdadakbari1721
    @mehrdadakbari1721 11 месяцев назад

    Ok fine but please make something that works

    • @mehrdadakbari1721
      @mehrdadakbari1721 10 месяцев назад +1

      @KimTorie what I mean he should use real data from a mined block and teach how to get info about current block that everyone is trying to mine

  • @markwilliam1008
    @markwilliam1008 3 года назад +2

    Nice video I so much love it...... most people remain poor only because friends and relatives discouraged and advised them against investing and trading forex while the wise ones kept investing and going higher financially

    • @rosekind8802
      @rosekind8802 3 года назад

      Successfull people don't become that way overnight. What most people see at a glance-wealth, a great career, purpose-is the result of hard work and hustle over time. I pray that anyone who reads this will be successful in life..

    • @graceallan6284
      @graceallan6284 3 года назад

      @@rosekind8802 You are right ma...

    • @graceallan6284
      @graceallan6284 3 года назад

      most times having knowledge or insight a particular activity can as well be a best exercise.I can boldly say that forex is one of the profitable money exchange services that elevates investors and their financial status

    • @davidrichard7308
      @davidrichard7308 3 года назад

      that's true,most people today have been having alot of failures in forex sector because of poor orientalists and bad experts

    • @josephthomas5085
      @josephthomas5085 3 года назад

      Yes i am a living testimony of Mr Patrick Carl trading services

  • @lindajane9188
    @lindajane9188 Год назад

    On telegram is real

  • @turbanland9723
    @turbanland9723 2 года назад

    I can tell because your making up words knowing minors are watching