phlip9 / libra_example

Example Libra Go client SDK

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

libra_example

# install dependencies
$ go get -u google.golang.org/grpc
$ go get -u github.com/golang/protobuf/protoc-gen-go

# extract the .proto's from libra and compile to go
# set LIBRA_SRC to wherever you cloned libra/libra
$ LIBRA_SRC=$HOME/libra ./gen_protos.sh

# make a basic request to a testnet node
$ go run libra_client/main.go

About

Example Libra Go client SDK


Languages

Language:Shell 67.0%Language:Go 33.0%