Go Node and SDK for the NEO blockchain
Find a file
Anthony De Meulemeester 83306a5c96
Added the start of RPC + removed proxy functions.
* Set the listener of the server when opened.

* refactor server RPC.

* deleted proxy functions + moved TCPPeer to tcp file

* implemented the start of JSON-RPC

* changed string port args to int

* added peerCount.

* Start a server with startOpts

* Updated README
2018-02-01 09:00:42 +01:00
cmd/neoserver Added the start of RPC + removed proxy functions. 2018-02-01 09:00:42 +01:00
pkg Added the start of RPC + removed proxy functions. 2018-02-01 09:00:42 +01:00
.travis.yml added travis.yml 2018-01-29 08:11:19 +01:00
CONTRIBUTING.md Added contributing 2018-01-31 11:58:28 +01:00
LICENCE.md Updated README and LICENSE according to other COZ repo’s. 2018-01-31 13:50:11 +01:00
README.md Added the start of RPC + removed proxy functions. 2018-02-01 09:00:42 +01:00

NEO-GO

Node and SDK for the NEO blockchain written in the Go language.

Overview

This project is currently in alpha and under active development.

Long term project goals

Full port of the original C# NEO project. A complete toolkit for the NEO blockchain.

  • Full server (consensus and RPC) nodes.
  • RPC client
  • build, compile and deploy smart contracts with the Go vm

Current state

This project is still under heavy development. Still working on internal API's and project layout. This should not take longer than 2 weeks.

The project will exist out of the following topics/packages:

  1. network (started)
  2. core (started)
  3. api (JSON-RPC server) (started)
  4. vm (open)
  5. smartcontract (open)

Getting started

Server

Install the neoserver cli go install ./cmd/neoserver

Currently, there is a minimal subset of the NEO protocol implemented. To start experimenting make sure you a have a private net running on your machine. If you dont, take a look at docker-privnet-with-gas.

Start the server:

neoserver -seed 127.0.0.1:20333

You can add multiple seeds if you want:

neoserver -seed 127.0.0.1:20333,127.0.01:20334

By default the server will currently run on port 3000, for testing purposes. You can change that by setting the tcp flag:

neoserver -seed 127.0.0.1:20333 -tcp 1337

RPC

If you want your node to also serve JSON-RPC, you can do that by setting the following flag:

neoserver -rpc 4000

In this case server will accept and respond JSON-RPC on port 4000. Keep in mind that currently there is only a small subset of the JSON-RPC implemented. Feel free to make a PR with more functionality.

vm

To be implemented..

smart contracts

To be implemented..

Contributing

Feel free to contribute to this project after reading the contributing guidelines.

Before starting to work on a certain topic, create an new issue first, describing the feauture/topic you are going to implement.

Contact

License

  • Open-source MIT