Skip to content

heyuanlong/Chain3Go

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Chain3Go - Chain3 Go API

MOAC Go API was built for MOAC chain. It was developed from MOAC RPC API, which can be used to develop Ðapp to MOAC chain. It supports both VNODE and SCS methods for MOAC.

Chain3Go Installation

setup $GOPATH

export GOPATH=/Users/[user]/go

go get

go get -u github.com/MOACChain/Chain3Go

MOAC Configuration

Install MOAC

Download latest MOAC Vnode and SCS Releases from here: https://github.com/MOACChain/moac-core/releases

Run MOAC

Run moac vnode on testnet

./moac --testnet

Run moac scs on testnet

./scsserver

Create new accounts and send transactions

mc.coinbase
mc.accounts
personal.newAccount()
passphrase:
repeat passphrase:

miner.start()
--wait a few seconds
miner.stop()

personal.unlockAccount("0x18833df6ba69b4d50acc744e8294d128ed8db1f1")
mc.sendTransaction({from: '0x18833df6ba69b4d50acc744e8294d128ed8db1f1', to: '0x2a022eb956d1962d867dcebd8fed6ae71ee4385a', value: chain3.toSha(12, "moac")}) 

Chain3Go Execution

go run main.go

Requirements

  • go ^1.8.3

Go installation instructions.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • Go 57.8%
  • C 30.3%
  • C++ 4.7%
  • Assembly 2.3%
  • Java 1.6%
  • Python 1.6%
  • Other 1.7%