All Projects → crisadamo → Gochain

crisadamo / Gochain

A basic implementation of Blockchain

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to Gochain

Blockchainnetwork Compositejourney
Part 1 in a series of patterns showing the building blocks of a Blockchain application
Stars: ✭ 217 (-8.82%)
Mutual labels:  blockchain
Metaverse
The Metaverse individual chain service ETP coin and immutable data space for Hyperspace.
Stars: ✭ 227 (-4.62%)
Mutual labels:  blockchain
Awesome Substrate
A curated list of awesome projects and resources related to the Substrate blockchain development framework.
Stars: ✭ 228 (-4.2%)
Mutual labels:  blockchain
Introducing Ethereum And Solidity
Programming examples from the book.
Stars: ✭ 221 (-7.14%)
Mutual labels:  blockchain
Composer Sample Networks
⚠️ ⚠️ ⚠️ Hyperledger Composer has been deprecated ⚠️ ⚠️ ⚠️
Stars: ✭ 226 (-5.04%)
Mutual labels:  blockchain
Electrum Axe
lightweight client for AXE network
Stars: ✭ 231 (-2.94%)
Mutual labels:  blockchain
Site
Customer's site of the system
Stars: ✭ 214 (-10.08%)
Mutual labels:  blockchain
Go Seele
Seele is an open source blockchain project which consists of advanced sharding technology and our innovative anti-asic MPoW consensus algorithm. The ONLY official website is
Stars: ✭ 234 (-1.68%)
Mutual labels:  blockchain
Forest
🌲 Rust Filecoin Node Implementation
Stars: ✭ 225 (-5.46%)
Mutual labels:  blockchain
Rusty Blockparser
Bitcoin Blockchain Parser written in Rust language
Stars: ✭ 226 (-5.04%)
Mutual labels:  blockchain
Zero Chain
A privacy-preserving blockchain on Substrate
Stars: ✭ 224 (-5.88%)
Mutual labels:  blockchain
Gxb Core
GXChain Blockchain implementation
Stars: ✭ 226 (-5.04%)
Mutual labels:  blockchain
Akash
a secure, transparent, and peer-to-peer cloud computing network
Stars: ✭ 229 (-3.78%)
Mutual labels:  blockchain
Redwood
A highly-configurable, distributed, realtime database that manages a state tree shared among many peers.
Stars: ✭ 218 (-8.4%)
Mutual labels:  blockchain
Blockchain Python
A blockchain implementation in Python
Stars: ✭ 233 (-2.1%)
Mutual labels:  blockchain
Derosuite
DERO: Secure, Anonymous Blockchain with Smart Contracts. Subscribe to Dero announcements by sending mail to [email protected] with subject: subscribe announcements
Stars: ✭ 216 (-9.24%)
Mutual labels:  blockchain
Remix Project
Remix is a browser-based compiler and IDE that enables users to build Ethereum contracts with Solidity language and to debug transactions.
Stars: ✭ 225 (-5.46%)
Mutual labels:  blockchain
Blockchain Application Using Fabric Java Sdk
Create and Deploy a Blockchain Network using Hyperledger Fabric SDK Java
Stars: ✭ 237 (-0.42%)
Mutual labels:  blockchain
Agregore Browser
A minimal browser for the distributed web
Stars: ✭ 229 (-3.78%)
Mutual labels:  blockchain
Eclair Mobile
An Android wallet for the Lightning Network
Stars: ✭ 231 (-2.94%)
Mutual labels:  blockchain

GoChain

A basic implementation of blockchain in go.

Building

$ cd cmd
$ go build -o gochain

Usage

Starting a node

You can start as many nodes as you want with the following command

./gochain -port=<port-number>

Endpoints

Requesting the Blockchain of a node

  • GET 127.0.0.1:8000/chain

Mining some coins

  • GET 127.0.0.1:8000/mine

Adding a new transaction

  • POST 127.0.0.1:8000/transactions/new

  • Body: A transaction to be added

    {
      "sender": "sender-address-te33412uywq89234g",
      "recipient": "recipient-address-j3h45jk23hjk543gf",
      "amount": 1000
    }
    

Register a new node in the network

Currently you must add each new node to each running node.

  • POST 127.0.0.1:8000/nodes/register

  • Body: A list of nodes to add

    {
       "nodes": ["http://127.0.0.1:8001", <more-nodes>]
    }
    

Resolving Blockchain differences in each node

  • GET 127.0.0.1:8000/nodes/resolve
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].