I highly recommend checking out truffle framework for developing and testing smart contracts. More complex smart contracts, and smart contract development in general is out of scope for this book. We'll create a simple smart contract to test with. go get -u /ethereum/go-ethereumĬd $GOPATH/src//ethereum/go-ethereum/ We also need to install a tool called abigen for generating the ABI from a solidity smart contract.Īssuming you have Go all set up on your computer, simply run the following to install the abigen tool. brew updateįor other platforms or for installing from source, check out the official solidity install guide. ![]() Solc is available as a Homebrew package for macOS. Solc is available as a snapcraft package for Ubuntu. The first step is to install the Solidity compiler ( solc). In order to interact with a smart contract, we first must generate the ABI (application binary interface) of the contract and compile the ABI to a format that we can import into our Go application.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |