- 安装solc编译工具: https://docs.soliditylang.org/en/v0.8.2/installing-solidity.html#linux-packages
- 编译abigen命令: https://github.com/ethereum/go-ethereum
- 安装本地测试链: ganache或者hardhat
- abi bin 生成: solcjs --optimize --abi --bin ./eth/contracts/Bank.sol -o build
- go文件生成: abigen --abi=./build/contracts_Bank_sol_Bank.abi --bin=./build/contracts_Bank_sol_Bank.bin --pkg=api --out=/api/Bank.go