Skip to content

Latest commit

 

History

History
32 lines (21 loc) · 785 Bytes

README.md

File metadata and controls

32 lines (21 loc) · 785 Bytes

Requirements

  1. You need to install Go Ethereum Tools (both geth and abigen are required). Please visit https://geth.ethereum.org/downloads to choose the release the suits your environment.

  2. You also need to get the solc Solidity compiler. You can install it running

    npm install -g [email protected]

Get Ready

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

Compile the CLI

go build .
./smartwedding --help