以太坊笔记(一)—— geth命令

一、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
              显示一个命令或帮助一个命令列表

 

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值