Cryptocurrency (Bitcoin, Ethereum, Ripple) Blockchain in 30 minutes in C++! (Part 1)

Cryptocurrency (Bitcoin, Ethereum, Ripple) Blockchain in 30 minutes in C++! (Part 1)

Have you ever wondered what it would take to create a cryptocurrency coin or token yourself? Bitcoin (BTC) and other cryptocurrency tokens like Cardano (ADA) and Ripple (XRP) use the same basic formula: A Blockchain!

This is an example in C++ of the basic building “blocks” of a blockchain. No pun intended.

Source On Github (after clean up in 2nd video):

Savjee’s YouTube Channel (this video is based on his example in Javascript)

See what you could have had if you had just HODL that coin!

Follow us on Twitter:


  1. OnlyStolenMemes

    Great video, thanks for making it. I find it hilarious how you include in the beginning that you have no clue what you're doing when working with C++ because I find myself in the same situation most the time when programming with the language.

  2. So I was looking at your code and you copy wrote your code on this video. Can we use it?

  3. nice explanation and funny. thanks. and how about i wanna set my maximum output for my coin total supply?

  4. Anthony Dugarte

    you've got a misstake on addBlock function, you are not adding it to the chain so, it is just the genesis block the one you are evaluating.

  5. Thanks for great videos..!! I appreciate it.
    Do you know any good stuff to study bitcoin core source code?

    Im finding some easy and good core code in Github..!!
    Can I get any recommendation? Thanks again!

  6. the size things dont return it but size_t because the size of an int is not fixed(compiler dependend) weras the definition of size_t is that it shall always be big enoth to hold any size of e.g. an vector

  7. Edward Appling

    Thank you very much and good job!

    //header should be
    #include <ctime>
    #include <string>
    #include <sstream>
    #include <iostream>
    #include <vector>

    using namespace std;

    this header worked for Sublime 3 & Xcode 9

    check datetime of comment post all software uptodate

  8. More c++ stuff

  9. Crypto Enthusiasts

    What would you like to see next? Don't forget to like and subscribe. 😛

Leave a Reply

Your email address will not be published. Required fields are marked *