一、Geth是什么
Geth是由以太坊基金会提供的官方客户端软件,用Go编程语言编写的。Geth提供了一个交互式命令控制台,通过命令控制台中包含了以太坊的各种功能(API)。全名go-ethereum,github地址go-ethereum。wiki里为使用文档。
Geth 命令是以太坊提供的一个强大的命令行工具,它是使用以太坊的入口。它包括了很多子命令,你可以通过 geth --help
获得更多帮助信息。其运行方法是:
USAGE:
geth [options] command [command options] [arguments...]
geth [选项] 命令 [命令选项][参数…]。
版本:
VERSION:
1.7.3-stable
命令有:
COMMANDS:
account Manage accounts
//管理账户
attach Start an interactive JavaScript environment (connect to node)
//启动交互式JavaScript环境(连接到节点)
bug opens a window to report a bug on the geth repo
//给 github 源代码仓库提 issue,提交bug
console Start an interactive JavaScript environment
//启动交互式 JavaScript 环境
copydb Create a local chain from a target chaindata folder
//从文件夹创建本地链
dump Dump a specific block from storage
//Dump(分析)一个特定的块存储
dumpconfig Show configuration values
//显示配置值
export Export blockchain into file
//导出区块链到文件
import Import a blockchain file
//导入一个区块链文件
init Bootstrap and initialize a new genesis block
//启动并初始化一个新的创世纪块
js Execute the specified JavaScript files
//执行指定的JavaScript文件(多个)
license Display license information
//显示许可信息
makecache Generate ethash verification cache (for testing)
//生成ethash验证缓存(用于测试)
makedag Generate ethash mining DAG (for testing)
//生成ethash 挖矿DAG(用于测试)
monitor Monitor and visualize node metrics
//监控和可视化节点指标
removedb Remove blockchain and state databases
//删除区块链和状态数据库
version Print version numbers
//打印版本号
wallet Manage Ulam presale wallets
//管理Ethereum预售钱包
help, h Shows a list of commands or help for one command
显示一个命令或帮助一个命令列表