AliiAhmadi / tmpCoin

Learning blockchain by writing code!

Repository from Github https://github.comAliiAhmadi/tmpCoinRepository from Github https://github.comAliiAhmadi/tmpCoin

tmpCoin

The genesis block from /chain path:

{
    "chain": [
        {
            "index": 1,
            "prev_hash": "0",
            "proof": 0,
            "timestamp": 1738383667,
            "trxs": [
                {
                    "amount": 1000.0,
                    "recipient": "ali",
                    "sender": "ali"
                }
            ]
        }
    ],
    "length": 1
}

What were used?

  • httplib for API routes
  • nlohmann::json for json formating and stringify objects

New Trx

image

About

Learning blockchain by writing code!

License:GNU General Public License v3.0


Languages

Language:C++ 99.9%Language:CMake 0.0%Language:Shell 0.0%Language:Makefile 0.0%