以太坊客户端geth命令行选项汇总

本文汇总了以太坊客户端geth的各种命令行选项,详细介绍了如何使用这些选项来操作和管理以太坊节点。读者可以通过geth命令行直接查看,或者参考github上的wiki文档获取更多信息。
摘要由CSDN通过智能技术生成

博客的内容可通过以下命令在客户端中进行查看:

geth --help

也可以访问github上的wiki文档查看,地址为:

(https://github.com/ethereum/go-ethereum/wiki/Command-Line-Options%20wiki)

具体内容




NAME:
   geth - go-ethereum命令行接口

USAGE:
   geth [options] command [command options] [arguments...]

VERSION:
   1.4.11-stable

COMMANDS:
   import   引入一个区块链文件
   export   导出区块链到文件
   upgradedb    更新区块链数据库
   removedb 移除区块链和正式数据库
   dump     dump a specific block from storage
   monitor  Geth Monitor: node metrics monitoring and visualization
   account  管理账户
   wallet   ethereum presale wallet
   console  Geth控制台: JavaScript交互环境
   attach   Geth控制台: JavaScript交互环境(连接node)
   js       在Geth JavaScript VM执行JavaScript文件
   makedag  generate ethash dag (for testing)
   gpuinfo  gpuinfo
   gpubench benchmark GPU
   version  打印ethereum版本号
   init     引导初始化一个创世块(JSON)
   help, h  显示命令列表或一个命令的帮助

ETHEREUM OPTIONS:
  --datadir "/home/karalabe/.ethereum"  数据库和keystore的文件目录
  --keystore        keystore的文件目录 (default = inside the datadir)
  --networkid value         Network identifier (integer, 0=Olympic, 1=Frontier, 2=Morden) (default: 1)
  --olympic             Olympic network: pre-configured pre-release test network
  --testnet             Morden network: pre-configured test network with modified starting nonces (replay protection)
  --dev                 Developer mode: pre-configured private network with several debugging flags
  --identity value          Custom node name
  --fast                Enable fast syncing through state downloads
  --lightkdf                Reduce key-derivation RAM & CPU usage at some expense of KDF strength
  --cache value             Megabytes of memory allocated to internal caching (min 16MB / database forced) (default: 128)
  --blockchainversion 
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值