区块链开发(三)以太坊客户端命令行选项汇总

简介: 区块链开发(三)以太坊客户端命令行选项汇总

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

geth --help• 1

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

https://github.com/ethereum/go-ethereum/wiki/Command-Line-Options• 1

具体内容

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 value     Blockchain version (integer) (default: 3)
账户选项:
  --unlock value    通过逗号分隔一个列表账户来进行解锁
  --password value  Password file to use for non-inteactive password input
API AND CONSOLE OPTIONS:
  --rpc             支持HTTP-RPC服务
  --rpcaddr value   HTTP-RPC服务监听地址(默认: "localhost")
  --rpcport value   HTTP-RPC服务监听端口(默认: 8545)
  --rpcapi value    HTTP-RPC提供的API支持(默认: "eth,net,web3")
  --ws          Enable the WS-RPC server
  --wsaddr value    WS-RPC server listening interface (default: "localhost")
  --wsport value    WS-RPC server listening port (default: 8546)
  --wsapi value     API's offered over the WS-RPC interface (default: "eth,net,web3")
  --wsorigins value Origins from which to accept websockets requests
  --ipcdisable      Disable the IPC-RPC server
  --ipcapi value    API's offered over the IPC-RPC interface (default: "admin,debug,eth,miner,net,personal,shh,txpool,web3")
  --ipcpath "geth.ipc"  Filename for IPC socket/pipe within the datadir (explicit paths escape it)
  --rpccorsdomain value Comma separated list of domains from which to accept cross origin requests (browser enforced)
  --jspath loadScript   JavaScript root path for loadScript and document root for `admin.httpGet` (default: ".")
  --exec value      Execute JavaScript statement (only in combination with console/attach)
  --preload value   Comma separated list of JavaScript files to preload into the console
NETWORKING OPTIONS:
  --bootnodes value Comma separated enode URLs for P2P discovery bootstrap
  --port value      Network listening port (default: 30303)
  --maxpeers value  Maximum number of network peers (network disabled if set to 0) (default: 25)
  --maxpendpeers value  Maximum number of pending connection attempts (defaults used if set to 0) (default: 0)
  --nat value       NAT port mapping mechanism (any|none|upnp|pmp|extip:<IP>) (default: "any")
  --nodiscover      Disables the peer discovery mechanism (manual peer addition)
  --nodekey value   P2P node key file
  --nodekeyhex value    P2P node key as hex (for testing)
MINER OPTIONS:
  --mine            Enable mining
  --minerthreads value      Number of CPU threads to use for mining (default: 8)
  --minergpus value     List of GPUs to use for mining (e.g. '0,1' will use the first two GPUs found)
  --autodag         Enable automatic DAG pregeneration
  --etherbase value     Public address for block mining rewards (default = first account created) (default: "0")
  --targetgaslimit value    Target gas limit sets the artificial target gas floor for the blocks to mine (default: "4712388")
  --gasprice value      Minimal gas price to accept for mining a transactions (default: "20000000000")
  --extradata value     Block extra data set by the miner (default = client version)
GAS PRICE ORACLE OPTIONS:
  --gpomin value    Minimum suggested gas price (default: "20000000000")
  --gpomax value    Maximum suggested gas price (default: "500000000000")
  --gpofull value   Full block threshold for gas price calculation (%) (default: 80)
  --gpobasedown value   Suggested gas price base step down ratio (1/1000) (default: 10)
  --gpobaseup value Suggested gas price base step up ratio (1/1000) (default: 100)
  --gpobasecf value Suggested gas price base correction factor (%) (default: 110)
VIRTUAL MACHINE OPTIONS:
  --jitvm       Enable the JIT VM
  --forcejit        Force the JIT VM to take precedence
  --jitcache value  Amount of cached JIT VM programs (default: 64)
LOGGING AND DEBUGGING OPTIONS:
  --metrics         Enable metrics collection and reporting
  --fakepow         Disables proof-of-work verification
  --verbosity value     Logging verbosity: 0=silent, 1=error, 2=warn, 3=info, 4=core, 5=debug, 6=detail (default: 3)
  --vmodule value       Per-module verbosity: comma-separated list of <pattern>=<level> (e.g. eth/*=6,p2p=5)
  --backtrace value     Request a stack trace at a specific logging statement (e.g. "block.go:271") (default: :0)
  --pprof           Enable the pprof HTTP server
  --pprofport value     pprof HTTP server listening port (default: 6060)
  --memprofilerate value    Turn on memory profiling with the given rate (default: 524288)
  --blockprofilerate value  Turn on block profiling with the given rate (default: 0)
  --cpuprofile value        Write CPU profile to the given file
  --trace value         Write execution trace to the given file
EXPERIMENTAL OPTIONS:
  --shh     Enable Whisper
  --natspec Enable NatSpec confirmation notice
MISCELLANEOUS OPTIONS:
  --solc value      Solidity compiler command to be used (default: "solc")
  --support-dao-fork    Updates the chain rules to support the DAO hard-fork
  --oppose-dao-fork Updates the chain rules to oppose the DAO hard-fork
  --help, -h        显示帮助
相关实践学习
基于阿里云DeepGPU实例,用AI画唯美国风少女
本实验基于阿里云DeepGPU实例,使用aiacctorch加速stable-diffusion-webui,用AI画唯美国风少女,可提升性能至高至原性能的2.6倍。
目录
相关文章
|
5月前
|
存储 开发框架 API
Codefi基于区块链的开发框架
Codefi基于区块链的开发框架
49 0
|
6月前
|
供应链 监控 安全
企业如何搭建自己的联盟链 | 区块链落地项目运用开发
企业如何搭建自己的联盟链 | 区块链落地项目运用开发
|
15天前
|
供应链 安全 物联网
【专栏】区块链和智能合约的未来发展潜力巨大,期待更多创新应用
【4月更文挑战第27天】本文探讨了区块链技术与智能合约的边界及挑战。区块链,以其不可篡改和安全特性,广泛应用于金融、供应链和物联网等领域。智能合约作为区块链上的自动执行代码,实现无需第三方的可信交易。然而,技术上面临扩展性、性能和安全问题,法律与监管层面也需适应智能合约的自动执行特性及跨境法律协调。尽管挑战重重,区块链和智能合约的未来发展潜力巨大,期待更多创新应用。
|
3天前
|
测试技术 区块链
swap开发/区块链跨链技术系统开发规则
跨链技术通过验证源链状态和中继交易至目标链实现交互,关键组件是跨链桥,用于通证在不同链间的转移。桥通过智能合约锁定/销毁源链通证并在目标链解锁/铸造。简单的跨链桥仅适用于通证传输,而可编程通证桥支持更复杂交互,如交易中的交换、借贷等。任意数据消息传递协议则提供更通用功能,能构建跨链DApp,如跨链DEX、NFT和游戏。
|
3月前
|
自然语言处理 安全 AndFix
区块链商城系统开发步骤指南/详细需求/源码功能/多语言/海外版
When developing a blockchain mall system, the following steps and requirements are usually required:
|
3月前
|
安全 中间件 测试技术
Web3.0区块链技术开发方案:mint铭文铭刻制度开发
Web3.0区块链技术开发方案:mint铭文铭刻制度开发
|
4月前
|
存储 开发框架 安全
区块链技术与智能合约开发:探索未来的数字世界
在数字化时代,区块链技术和智能合约已成为科技行业的热门话题。这项技术使得信息传输更加安全、透明和高效,同时也为各种应用场景提供了更多可能性。本文将介绍区块链技术和智能合约的基本概念,并讨论如何开发智能合约以及它们在不同领域的应用。
|
4月前
|
人工智能 供应链 安全
探索区块链技术与智能合约开发的边界
区块链技术和智能合约开发已经成为当代科技领域的热点话题。本文将从技术角度深入探讨区块链技术的原理、应用场景以及智能合约的开发过程,并探索其潜在边界和未来发展趋势。
|
4月前
|
安全 数据挖掘 区块链
区块链商城源码搭建开发技术方案丨成熟讲解
区块链积分商城系统开发技术丨成熟方案
117 0
|
4月前
|
算法 区块链 Python
区块链代币DAPP逻辑系统开发技术方案丨单边上扬模式开发逻辑
区块链代币DAPP逻辑系统开发技术方案丨单边上扬模式开发逻辑

热门文章

最新文章