-
You need to install Go Ethereum Tools (both
geth
andabigen
are required). Please visit https://geth.ethereum.org/downloads to choose the release the suits your environment. -
You also need to get the
solc
Solidity compiler. You can install it runningnpm install -g [email protected]
Compile de Solidity Smart Contract using solcjs
solcjs contract/SmartWedding.sol --abi --bin -o contract
Auto generate Go bindings to interact with the smart contract within our CLI
abigen --abi contract/SmartWedding_sol_SmartWedding.abi --bin contract/SmartWedding_sol_SmartWedding.bin --pkg utils --type SmartWedding --out utils/bindings.go
go build .
./smartwedding --help