go_eth_study

module
v0.0.0-...-c7cd1ff Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 21, 2024 License: MIT

README

go_eth_study

中文文档位置 ETH HD钱包

安装一些工具

第一步是安装 Solidity编译器 (solc).

brew update
brew tap ethereum/ethereum
brew install solidity

我们还得安装一个叫abigen的工具,来从solidity智能合约生成ABI。 假设您已经在计算机上设置了Go,只需运行以下命令即可安装abigen工具。

brew tap ethereum/ethereum
brew install ethereum
abigen --help

ABI生成及go描述文件

cd 04contract/01ABI
solc --abi store.sol # 打印

# 生成 ABI 文件
solc --abi -o ./output Store.sol
# 生成字节码文件
solc --bin -o ./output Store.sol

abigen --bin=./output/Store.bin --abi=./output/Store.abi --pkg=store --out=./store/Store.go

Directories

Path Synopsis
02address
01address command
02makeWallet command
03Keystores command
04HDWallet command
05checkAddress command
03transaction
01queryBlock command
02queryTX command
03sendETH command
04sendERC20 command
04contract
01ABI command
02callContract command
03callErc-20 command
05event
01listenEvent command
02queryEvent command
03ERC-20Event command
06sign
generate command
verify command

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL