Simple Bitcoin Miner in Python

แชร์
ฝัง
  • เผยแพร่เมื่อ 10 ก.ย. 2024
  • 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...
    🐍 The Python Bible Book: www.neuralnine...
    👕 Programming Merch: www.neuralnine...
    💻 Exclusive Content 💻
    👥 Patreon: / neuralnine
    🌐 Social Media & Contact 🌐
    📱 Website: www.neuralnine...
    📷 Instagram: / neuralnine
    🐦 Twitter: / neuralnine
    🤵 LinkedIn: / neuralnine
    📁 GitHub: github.com/Neu...
    🎵 Outro Music From: www.bensound.com/

ความคิดเห็น • 277

  • @extrem2497
    @extrem2497 2 ปีที่แล้ว +5

    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.

  • @HeadCracked
    @HeadCracked 3 ปีที่แล้ว +40

    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 :/

  • @unknown-ug1ev
    @unknown-ug1ev 3 ปีที่แล้ว +31

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

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

  • @siddanthshaiva7395
    @siddanthshaiva7395 3 ปีที่แล้ว +19

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

    • @NeuralNine
      @NeuralNine  3 ปีที่แล้ว +3

      slowly but surely ^^

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

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

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

  • @TK-wh9mh
    @TK-wh9mh 2 ปีที่แล้ว +1

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

  • @rompvmrix8103
    @rompvmrix8103 11 หลายเดือนก่อน +1

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

    • @rompvmrix8103
      @rompvmrix8103 11 หลายเดือนก่อน

      @bitmine815 what's your telegram address bro?

  • @jefflegend456
    @jefflegend456 3 ปีที่แล้ว +6

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

  • @le_petite_cow_soldier
    @le_petite_cow_soldier 3 ปีที่แล้ว +4

    how to get mined bitcoins?

  • @benlong1062
    @benlong1062 3 ปีที่แล้ว +5

    This was really interesting. Thanks!

  • @dw6062
    @dw6062 2 ปีที่แล้ว +2

    Does this still work ?

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

  • @divinecaster
    @divinecaster 3 ปีที่แล้ว +4

    Oh, I missed watching these tutorials

  • @JohnintheTyranny
    @JohnintheTyranny 5 หลายเดือนก่อน

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

  • @fjdstudios4485
    @fjdstudios4485 2 ปีที่แล้ว +1

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

  • @SpecialE101
    @SpecialE101 ปีที่แล้ว

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

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

  • @wachsmalstift
    @wachsmalstift 3 ปีที่แล้ว +2

    how to connect it with our btc wallet?

  • @muratolgun7992
    @muratolgun7992 2 ปีที่แล้ว

    How can i transfer generated satoshis to any bitcoin wallet?

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

  • @ivanfedorov7934
    @ivanfedorov7934 3 ปีที่แล้ว +1

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

  • @thefastcomputer
    @thefastcomputer 2 ปีที่แล้ว +1

    Love the intro. Subscribed.

  • @nathanhales2970
    @nathanhales2970 2 ปีที่แล้ว +1

    Thanks for the video. It was fun to watch

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

  • @z4ramoth
    @z4ramoth 3 ปีที่แล้ว +4

    how long have you been doing pyhton stuff ?

  • @back-endmastery5219
    @back-endmastery5219 2 ปีที่แล้ว +1

    if you areon PyCharm in terminal whrite python .py

  • @alialavizadeh2775
    @alialavizadeh2775 3 ปีที่แล้ว

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

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

  • @palegreenshrimp45
    @palegreenshrimp45 2 ปีที่แล้ว +1

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

  • @Bendermanuk
    @Bendermanuk 2 ปีที่แล้ว +2

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

  • @abhimanyunegi4382
    @abhimanyunegi4382 2 ปีที่แล้ว +1

    but where do you upload the result???

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

  • @TheInternet81
    @TheInternet81 4 หลายเดือนก่อน

    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

  • @meliodas6309
    @meliodas6309 3 ปีที่แล้ว +1

    that was so awesome thanks for posting its so educational thanks

  • @fatihduzduvaratrmanan4926
    @fatihduzduvaratrmanan4926 3 ปีที่แล้ว +3

    You were 6k bro keep it up

  • @yeaqub0134
    @yeaqub0134 3 ปีที่แล้ว +2

    Then how to get mining point??

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

  • @terryterry1655
    @terryterry1655 3 ปีที่แล้ว

    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

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

  • @soltsdev
    @soltsdev ปีที่แล้ว

    is this bot profitable

  • @dagaret352
    @dagaret352 3 ปีที่แล้ว

    What do I do after getting the hash...

  • @pkstock372
    @pkstock372 3 ปีที่แล้ว

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

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

  • @nikcena8305
    @nikcena8305 3 ปีที่แล้ว +1

    The best channel 🤘

  • @shaz01
    @shaz01 ปีที่แล้ว +1

    Nice intro

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

  • @mrbutwhyme9941
    @mrbutwhyme9941 2 ปีที่แล้ว +1

    Do you actually mine bitcoin and earn anything?

  • @zombiekiller7101
    @zombiekiller7101 3 ปีที่แล้ว +1

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

    • @NeuralNine
      @NeuralNine  3 ปีที่แล้ว +1

      They get the money and you don't get anything

    • @user-iq7xy8is3f
      @user-iq7xy8is3f 3 ปีที่แล้ว +1

      Then the other was faster and gets the reward

    • @zombiekiller7101
      @zombiekiller7101 3 ปีที่แล้ว

      Ohh thx

  • @strongcitytv6686
    @strongcitytv6686 2 ปีที่แล้ว

    Whats happens next
    If you get the correct block code

  • @lukaspodvojsky3313
    @lukaspodvojsky3313 3 ปีที่แล้ว +1

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

    • @NeuralNine
      @NeuralNine  3 ปีที่แล้ว +1

      JetBrains Mono ^^

    • @lukaspodvojsky3313
      @lukaspodvojsky3313 3 ปีที่แล้ว +1

      @@NeuralNine Thx a lot. Keep it up 👍.

  • @anonymousghost5384
    @anonymousghost5384 2 ปีที่แล้ว

    Dose it build real block or just sample??

  • @saadsaid7832
    @saadsaid7832 2 ปีที่แล้ว

    how to get out your money

  • @AAANorthbridge
    @AAANorthbridge หลายเดือนก่อน

    where's the code ?

  • @judedavis92
    @judedavis92 3 ปีที่แล้ว +1

    Can you teach us how you configure your vim editor?

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

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

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

  • @Wolfyxon
    @Wolfyxon 2 ปีที่แล้ว +1

    i have BTC hash cool. What now

    • @Wolfyxon
      @Wolfyxon 2 ปีที่แล้ว +1

      Why are you thanking me

  • @randomguyidk4060
    @randomguyidk4060 3 ปีที่แล้ว

    You are the best!

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

  • @alpw404
    @alpw404 3 ปีที่แล้ว

    Wow 1 minute, thats nice

    • @NeuralNine
      @NeuralNine  3 ปีที่แล้ว

      what do you mean by 1 minute?

  • @hasank6796
    @hasank6796 3 ปีที่แล้ว

    nice
    thank you

  • @ilkinalizade8467
    @ilkinalizade8467 3 ปีที่แล้ว

    hey guys how can i trade it now?

  • @felixfigueroa
    @felixfigueroa 3 ปีที่แล้ว

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

  • @rohandevaki4349
    @rohandevaki4349 2 ปีที่แล้ว

    please write some code which will mine actual bitcoin

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

  • @623-x7b
    @623-x7b 3 ปีที่แล้ว

    What IDE is that

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

  • @lornemalvoo
    @lornemalvoo 3 ปีที่แล้ว

    YES!

  • @jacksonpsdotnet
    @jacksonpsdotnet 2 ปีที่แล้ว

    Where is the Bitcoin miner?

  • @1000marcelo1000
    @1000marcelo1000 3 ปีที่แล้ว

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

  • @mamaniarrahmahpradipta9176
    @mamaniarrahmahpradipta9176 ปีที่แล้ว

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

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

  • @matt8ress
    @matt8ress 2 ปีที่แล้ว

    ty, i found 149 hashes

  • @iliqnew
    @iliqnew 2 ปีที่แล้ว

    this does not even connect to a pool or smth

  • @prinsarnaproduction1133
    @prinsarnaproduction1133 2 ปีที่แล้ว

    With the amount of bot comments this seems hellla scetch

  • @notrb411
    @notrb411 3 ปีที่แล้ว

    U are the best

  • @naomifred9846
    @naomifred9846 3 ปีที่แล้ว +1

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

  • @siamahmed8287
    @siamahmed8287 3 ปีที่แล้ว

    Can you give me your intro music?

  • @recepcapok2968
    @recepcapok2968 2 หลายเดือนก่อน

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

  • @mehisnoulik6545
    @mehisnoulik6545 3 ปีที่แล้ว

    Nice!

  • @brahiammiguelalvarado7251
    @brahiammiguelalvarado7251 3 ปีที่แล้ว

    Cool!!!

  • @dis__dev6926
    @dis__dev6926 3 ปีที่แล้ว

    Yess now I will be rich

  • @mehrdadakbari1721
    @mehrdadakbari1721 ปีที่แล้ว

    Ok fine but please make something that works

    • @mehrdadakbari1721
      @mehrdadakbari1721 ปีที่แล้ว +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

  • @MrRobot-yb8cb
    @MrRobot-yb8cb 2 ปีที่แล้ว

    Tf happend to comments?

  • @lopikilop7597
    @lopikilop7597 2 ปีที่แล้ว +1

    On telegram

  • @turbanland9723
    @turbanland9723 2 ปีที่แล้ว

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

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

  • @user-xx6yb2cr2h
    @user-xx6yb2cr2h 3 ปีที่แล้ว

    Бля, я не успеваю читать субтитры. Зачем так быстро разговаривать?

  • @shirleyhayyy4095
    @shirleyhayyy4095 ปีที่แล้ว +1

    Telegram

  • @NooobCODE
    @NooobCODE 3 ปีที่แล้ว

    code for stock trade

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

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

  • @harrybestfriend5282
    @harrybestfriend5282 3 ปีที่แล้ว

    day 1 of asking for the intro song

  • @hearthstone4980
    @hearthstone4980 3 ปีที่แล้ว

    How to use? And code pls

    • @bitcoingenerator8393
      @bitcoingenerator8393 3 ปีที่แล้ว

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

  • @lindajane9188
    @lindajane9188 2 ปีที่แล้ว

    On telegram is real

  • @turbanland9723
    @turbanland9723 2 ปีที่แล้ว

    goddamm script kiddie