Ethereum Client geth Command Usage-parameter details

Source: Internet
Author: User
Tags pow stack trace
Geth is the most commonly used tool (prerequisite development tool) in the development of [Ethereum Smart Contract] (HTTP://XC.HUBWIZ.COM/COURSE/5ABBB7ACC02E6B6A59171DD6), a multi-purpose command-line tool. Familiarity with Geth can allow us to have better efficiency, and we can collect them as a manual for Geth command usage. This article is mainly for the translation of Geth Help, based on the latest Geth 1.7.3-stable version. If you don't know what Geth is, read the introductory article first: [What is Ethereum?] What is a smart contract? ] (https://blog.csdn.net/mongo_node/article/details/80491713) to the beginning of the text. # # # command usage **geth [options] command [command options] [parameters ...] * * Version: 1.7.3-stable### command: Account Admin Attach start interactive javascrip{filter}t environment (connect to node) Bug escalation bug issuesconsole start interactive javascrip{filter} T environment copydb Create a local chain from a folder dump dump (analysis) a specific block store dumpconfig display configuration values export a blockchain to a file import imports a blockchain file init starts and initializes a new Genesis block JS Executes the specified javascrip{filter}t file (multiple) license display license Information Makecache generate Ethash validate cache (for testing) Makedag generate Ethash Mining dag (for testing) monitor Monitor and visualize node metrics removedb Delete Blockchain and state database version print build number wallet manage Ethereum presale wallet help,h show a command or help a command list # # # Ethereum option:--config value TOML configuration file--datadir "XXX" database and keystore key data directory--keystore keystore storage directory (default in datadir)--NOUSB disable monitoring and management of USB hardware wallet--networkid Value network identifier (integer, 1=frontier, 2=morden (deprecated), 3=ropsten, 4=rinkeby) (default: 1)--testnet Ropsten Network: Pre-configured POW (proof-of-work) test network--rinkeby Rinkeby Network: Pre-configured POA (proof-of-authority) test network--syncmode "Fast" sync mode ("Fast", "full", or "light")--ethstats Value escalated Ethstats service URL (nodename:secret@host:port)--identity Value custom node name--lightserv value allows Les request time maximum percentage (0–90) ( Default value: 0)--lightpeers value max Les client peers number (default:)--lightkdf reduce key-derivation ram&cpu with KDF strength consumption use the # # Developer (mode) Option: --dev uses the POA consensus network to pre-allocate a developer account by default and automatically opens mining. --dev.period value Developer mode Mining cycle (0 = when trading only) (default: 0) # # Ethash option:--ethash.cachedir Ethash Validate cache Directory (default = DataDir directory)--ETHASH.CAC Hesinmem value The number of recent Ethash caches saved in memory (16MB per cache) (default: 2)--ethash.cachesondisk value The number of recent Ethash caches saved on disk (16MB per cache) (default: 3)- -ethash.dagdir "" Ethash DAGs directory (default = user hom directory)--ethash.dagsinmem value The number of recent Ethash DAGs saved in memory (per 1GB or more) (default: 1)--ethash. Dagsondisk value The number of most recent Ethash DAGs saved on disk (per 1GB or more) (default: 2) # # # Trading Pool option:--txpool.nolocals Disable price exemption for locally submitted transactions--txpool.journal Value local transaction disk log: Used for node restart (default: "TRANSACTIONS.RLP")--txpool.rejournal value regenerates the time interval for local transaction log (default: 1 hours)--txpool.pricelimit Value joins the trading poolMinimum gas price limit (default: 1)--txpool.pricebump Value price volatility percentage (relative to previous trades) (default: Ten)--txpool.accountslots value each account guarantees the minimum number of trade slots that can be executed (default :--txpool.globalslots value The maximum number of trade slots that can be executed for all accounts (default: 4096)--txpool.accountqueue value The maximum number of non-executable trade slots allowed per account (default: 64)-- Txpool.globalqueue value All accounts non-executable transactions max slot number (default: 1024x768)--txpool.lifetime value non-executable transaction maximum queue time (default: 3 hours) # # # Performance tuning options:--cache Value allocated to internal cache memory MB, cache value (minimum of MB/database mandatory) (default: $)--trie-cache-gens value keeps the number of trie node generated in memory (default: 120) # # # Account options:-- Unlock value required to unlock the account comma-delimited--password value password file for non-interactive password Input # # # API and Console options:--rpc enable HTTP-RPC server--RPCADDR value HTTP-RPC Server Interface Address (default: "localhost")--rpcport value HTTP-RPC Server listening port (default: 8545)--rpcapi value HTTP-RPC based on API--WS interface Enable WS-RPC server--WSADDR value WS-RPC Server Listener interface address (default: "localhost")--wsport value WS-RPC Server listening port (default: 8546)--wsapi value WS-RPC-based interface provides api--wsorigins value WebSockets request allowed source--ipcdisable Disable IPC-RPC server--ipcpath IPC DataDir included in socket/ Pipe file name (escaped explicit path)--rpccorsdomain value allows cross-domain requests for a list of domain names (comma delimited) (browser enforcement)--jspath loadscrip{filtering}t javascrip{filtering}t load feetThe root path of this (default: ".") --exec Value executes javascrip{filter}t statement (can only be used in conjunction with Console/attach)--preload value preloaded into the console javascrip{filter}t file list (comma delimited) # # # Network options:-- Bootnodes value is used for peer discovery guided Enode URLs (comma delimited) (for light servers with V4+V5 instead)--BOOTNODESV4 value for peer V4 discovery boot Enode URLs (comma delimited) ( Light server, full node)--bootnodesv5 value for peer V5 discovery boot Enode URLs (comma delimited)--port value NIC listening port (default: 30303)--ma Xpeers value The maximum number of network nodes (if set to 0, the network will be disabled) (default:)--maxpendpeers value The maximum number of attempts to connect (if set to 0, the default value will be used) (default: 0)--nat value NAT port mapping Mechanism (any|none|upnp|pmp|extip:<ip>) (default: "any")--nodiscover Disable the node discovery mechanism (manually add nodes)--v5disc enable experimental rlpx V5 ( Topic discovery) Mechanism--nodekey value Peer key file--nodekeyhex value 16 binary peer key (for testing) # # Miner option:--mine Open Mining--minerthreads value Number of CPU threads used for mining (default: 8)--etherbase Value Mining Bonus address (default = first created account) (default: "0")--targetgaslimit value target gas limit: Set minimum gas limit (less than this will not be dug?) ) (Default: "4712388")--gasprice value Mining accepts the lowest gas price of the transaction--extradata value Miner set additional block data (default =client version) # # Gas price options:-- Gpoblocks value The number of recent blocks that are used to check gas prices (default: Ten)--gpopercentile value recommended gas price reference recent trading GAS-Price percentile, (default: 50) # # # Virtual machine options:--vmdebug record VM and contract debug Information # # # Log and debug options:--metrics Enable Metrics collection and reporting--fakepow Disable proof-of-work authentication--verbosity value log verbosity: 0=silent, 1=error, 2=warn, 3=info, 4=debug, 5=detail (default:3)--vmodule Value per module verbosity: A comma-delimited list of <pattern>=<level> (such as eth/*=6,p2p=5)--backtrace value requests a specific log record stack trace (such as "Block.go : 271 ")--debug Highlight call location log (file name and line number)--pprof enable pprof HTTP Server--pprofaddr value pprof HTTP Server listener interface (default: 127.0.0.1)--pprofport Value pprof HTTP Server listening port (default: 6060)--memprofilerate value opens memory profiling at a specified frequency (default: 524288)--blockprofilerate value Open block profiling at the specified frequency (default: 0)--cpuprofile value writes the CPU profile to the specified file--trace value writes execution trace to the specified file # # # Whisper Experiment options: --SHH enable Whisper--shh.maxmessagesize value to accept the maximum message size (default: 1048576)--shh.pow value the smallest POW (default: 0.2) # # deprecated option:--fast Turn on fast sync--light enable light client mode # # # Other options: Help,-H display Help if you want to start sharing your one at once [Ethereum Tutorial] (http://xc.hubwiz.com/course/ 5A952991ADB3847553D205D1), you can practice using the Geth command directly online. 129 reads  
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.