Categorygithub.com/zupzup/smart-contracts-with-go
repositorypackage
0.0.0-20200221091926-8b299f5cdb52
Repository: https://github.com/zupzup/smart-contracts-with-go.git
Documentation: pkg.go.dev

# README

smart-contracts-with-go

A simple example of how to deploy and interact with ETH smart contracts using Go on a simulated Blockchain.

Prerequisites

  • solc
  • geth (go-ethereum)
go get github.com/ethereum/go-ethereum
cd $GOPATH/src/github.com/ethereum/go-ethereum/
make
make devtools

Generating contract.go

abigen --sol=Contract.sol --pkg=main --out=contract.go

Running

go build . && ./smart-contracts-with-go