chain3go

module
v0.0.0-...-e4b607e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 27, 2020 License: MIT

README

Chain3Go - Chain3 Go API

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

Chain3Go Installation

setup $GOPATH
export GOPATH=/Users/[user]/go
go get
go get -u github.com/LBRChain/Chain3Go

LBR Configuration

Install LBR

Download latest LBR Vnode and SCS Releases from here: https://github.com/LBRChain/LBR-core/releases

Run LBR

Run LBR vnode on testnet

./LBR --testnet

Run LBR 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, "LBR")}) 

Chain3Go Execution

go run main.go
Requirements
  • go ^1.8.3

Go installation instructions.

Directories

Path Synopsis
Chain3Go
accounts/abi/bind
Package bind generates Ethereum contract Go bindings.
Package bind generates Ethereum contract Go bindings.
lib/common
Package common contains various helper functions.
Package common contains various helper functions.
lib/common/bitutil
Package bitutil implements fast bitwise operations.
Package bitutil implements fast bitwise operations.
lib/common/compiler
Package compiler wraps the Solidity compiler executable (solc).
Package compiler wraps the Solidity compiler executable (solc).
lib/common/hexutil
Package hexutil implements hex encoding with 0x prefix.
Package hexutil implements hex encoding with 0x prefix.
lib/common/math
Package math provides integer math utilities.
Package math provides integer math utilities.
lib/common/mclock
package mclock is a wrapper for a monotonic clock source
package mclock is a wrapper for a monotonic clock source
lib/crypto/bn256
Package bn256 implements a particular bilinear group at the 128-bit security level.
Package bn256 implements a particular bilinear group at the 128-bit security level.
lib/crypto/secp256k1
Package secp256k1 wraps the bitcoin secp256k1 C library.
Package secp256k1 wraps the bitcoin secp256k1 C library.
lib/crypto/sha3
Package sha3 implements the SHA-3 fixed-output-length hash functions and the SHAKE variable-output-length hash functions defined by FIPS-202.
Package sha3 implements the SHA-3 fixed-output-length hash functions and the SHAKE variable-output-length hash functions defined by FIPS-202.
lib/log
Package log15 provides an opinionated, simple toolkit for best-practice logging that is both human and machine readable.
Package log15 provides an opinionated, simple toolkit for best-practice logging that is both human and machine readable.
lib/metrics
Package metrics provides general system and process level metrics collection.
Package metrics provides general system and process level metrics collection.
lib/proto
Package moac is a generated protocol buffer package.
Package moac is a generated protocol buffer package.
lib/rlp
Package rlp implements the RLP serialization format.
Package rlp implements the RLP serialization format.
lib/transaction
Package types contains TxData types related to MoacNode consensus.
Package types contains TxData types related to MoacNode consensus.
lib/trie
Package trie implements Merkle Patricia Tries.
Package trie implements Merkle Patricia Tries.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL