Gochain

A basic implementation of Blockchain
Alternatives To Gochain
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
Go Ethereum41,6494311,92016 hours ago655September 15, 2022312lgpl-3.0Go
Official Go implementation of the Ethereum protocol
Substrate8,07922615 hours ago18March 01, 20221,134apache-2.0Rust
Substrate: The platform for blockchain innovators
Parity Ethereum6,73025152 years ago14July 24, 2020n,ullotherRust
The fast, light, and robust client for Ethereum-like networks.
Polkadot6,696115 hours ago2May 21, 2022614gpl-3.0Rust
Polkadot Node Implementation
Naivechain5,028
3 years ago30apache-2.0JavaScript
A blockchain implementation in 200 lines of code
Bitcore4,5301,1734596 days ago90September 14, 2022379mitJavaScript
A full stack for bitcoin and blockchain-based applications
Chainlink4,3767715 hours ago37September 19, 2022154mitGo
node of the decentralized oracle network, bridging on and off-chain computation
Bitcoin On Nodejs2,461
4 months ago17JavaScript
《Node.js区块链开发》,注:新版代码已开源!请star支持哦-^-:
Graph Node2,431
16 hours ago372apache-2.0Rust
Graph Node indexes data from blockchains such as Ethereum and serves it over GraphQL
Snarkos2,368274 days ago6August 27, 202084gpl-3.0Rust
A Decentralized Operating System for ZK Applications
Alternatives To Gochain
Select To Compare


Alternative Project Comparisons
Readme

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
Popular Blockchain Projects
Popular Nodejs Projects
Popular Blockchain Categories
Related Searches

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.
Go
Node
Blockchain
Transaction
Basic