Simple template for generate API Solidity Smart-Contract
Features:
- gRPC
- HTTP/HTTPS
- Auto-generate doc for API
- Auth with Bearer (Temporary Access Token)
Build
- Install Go 1.9.2
golang.org
- Install Dep
github.com/golang/dep
- run
dep ensure
in root project directory go build main.go
Note: Always include Authorization: Bearer <your token>
in Header.
PS: For /v1/auth/*
routes, you can use random token for get a real token by one of the ways:
1) Json KeyStore + Password.
2) Private Key.