Ethereum Development with Golang
- install it
npm install -g ganache-cli
- run ganache client, use the same mnemonic when starting ganache to generate the same sequence of public addresses:
ganache-cli -m "ticket version capable vocal country artwork industry hat senior breeze leg great cherry abuse inch round essence random laptop organ mesh resemble trade panic"
- if ganache return error
digital envelope routines::unsupported
the run:
export NODE_OPTIONS=--openssl-legacy-provider
!!! You must start Ganache before running example !!!
cd client
go run client.go
- balance of an account
- account balance at the time of that block
- pending account balance
- generate new wallet
- generate hdwallet
- utility to generate mnemonic words
- validate address, check address type (contract or account)
cd account
go run account.go