This is the official node software for CSC cryptocurrency. CodersCoin currently operates centrally, but the project will soon reach the decentralized phase.
Unlike a miner, nodes must run 24 hours a day. Since the network is hardly used at the moment, 100% uptime is not required. You will have to apply if you want to run a node!
- Peer-to-peer decentralized protocol
- Peer-to-peer network prototype
- Block validation function
- Node runner rewards
- [] Integration into testnet
- Node consensus algorithm implementation
Answer 1
Answer 2
METHOD getBalance
This returns the latest block on the chain in JSON format.
{"index":12,"transactions":[{"fromAddress":"user1","toAddress":"user2","amount":10}],"timestamp":1688201520,"previousHash":"00329e3f7babcfc4dece5d7e2052b7eadf901b208e305d31f971145a85a5fe2c","nonce":270}
POST /mine/
Parameter | Type | Description |
---|---|---|
latesthash |
string |
Required. The computed hash of the latest block |
proof |
string |
Required. The proof returned from the PoW algorithm |
newblock |
list |
Required. The newly mined block's details |
miner |
string |
Required. The username of the miner |
Code | Description |
---|---|
200 |
The mining is successful and has been accepted by the network. |
403 |
The user was banned from the platform due to fraud detected or the last block was not validated |
500 |
Mining failed, the network rejected the request because it is incorrect. |
Clone the project
git clone https://link-to-project
Go to the project directory
cd my-project
Install dependencies
npm install
Start the server
npm run start
Contributions are always welcome!
See contributing.md
for ways to get started.
Please adhere to this project's code of conduct
.
For support, email [email protected] or join our Slack channel.