Plian
Search…
Command Line Options
1
pchain help
2
NAME:
3
pchain - the pchain command line interface
4
5
Copyright 2018-2018 The pchain Authors
6
7
USAGE:
8
pchain [options] command [command options] [arguments...]
9
10
VERSION:
11
0.8.0-test2.0
12
13
COMMANDS:
14
version
15
init_eth_genesis init_eth_genesis balance:{"1000000","100"}
16
init init genesis.json
17
gen_node_info gen_node_info number
18
attach Start an interactive JavaScript environment (connect to node)
19
account Manage accounts
20
help, h Shows a list of commands or help for one command
Copied!
PCHAIN Options:
1
--datadir "/home/ubuntu/.pchain" Data directory for the databases and keystore
2
--keystore Directory for the keystore (default = inside the datadir)
3
--nousb Disables monitoring for and managing USB hardware wallets
4
--networkid value Network identifier (integer, mainnet=1, testnet=2) (default: 1)
5
--syncmode "full" Blockchain sync mode ("full")
6
--gcmode value Blockchain garbage collection mode ("full", "archive") (default: "full")
7
--ethstats value Reporting URL of a ethstats service (nodename:[email protected]:port)
8
--identity value Custom node name
9
10
TRANSACTION POOL OPTIONS:
11
--txpool.nolocals Disables price exemptions for locally submitted transactions
12
--txpool.journal value Disk journal for local transaction to survive node restarts (default: "transactions.rlp")
13
--txpool.rejournal value Time interval to regenerate the local transaction journal (default: 1h0m0s)
14
--txpool.pricelimit value Minimum gas price limit to enforce for acceptance into the pool (default: 1)
15
--txpool.pricebump value Price bump percentage to replace an already existing transaction (default: 10)
16
--txpool.accountslots value Minimum number of executable transaction slots guaranteed per account (default: 16)
17
--txpool.globalslots value Maximum number of executable transaction slots for all accounts (default: 4096)
18
--txpool.accountqueue value Maximum number of non-executable transaction slots permitted per account (default: 64)
19
--txpool.globalqueue value Maximum number of non-executable transaction slots for all accounts (default: 1024)
20
--txpool.lifetime value Maximum amount of time non-executable transaction are queued (default: 3h0m0s)
21
22
PERFORMANCE TUNING OPTIONS:
23
--cache value Megabytes of memory allocated to internal caching (default: 1024)
24
--cache.database value Percentage of cache memory allowance to use for database io (default: 75)
25
--cache.gc value Percentage of cache memory allowance to use for trie pruning (default: 25)
26
--trie-cache-gens value Number of trie node generations to keep in memory (default: 120)
27
28
API AND CONSOLE OPTIONS:
29
--rpc Enable the HTTP-RPC server
30
--rpcaddr value HTTP-RPC server listening interface (default: "localhost")
31
--rpcport value HTTP-RPC server listening port (default: 6969)
32
--rpcapi value API's offered over the HTTP-RPC interface
33
--ipcdisable Disable the IPC-RPC server
34
--ipcpath Filename for IPC socket/pipe within the datadir (explicit paths escape it)
35
--rpccorsdomain value Comma separated list of domains from which to accept cross origin requests (browser enforced)
36
37
NETWORKING OPTIONS:
38
--bootnodes value Comma separated enode URLs for P2P discovery bootstrap (set v4+v5 instead for light servers)
39
--bootnodesv4 value Comma separated enode URLs for P2P v4 discovery bootstrap (light server, full nodes)
40
--bootnodesv5 value Comma separated enode URLs for P2P v5 discovery bootstrap (light server, light nodes)
41
--port value Network listening port (default: 30308)
42
--maxpeers value Maximum number of network peers (network disabled if set to 0) (default: 25)
43
--maxpendpeers value Maximum number of pending connection attempts (defaults used if set to 0) (default: 0)
44
--nat value NAT port mapping mechanism (any|none|upnp|pmp|extip:<IP>) (default: "any")
45
--nodiscover Disables the peer discovery mechanism (manual peer addition)
46
--v5disc Enables the experimental RLPx V5 (Topic Discovery) mechanism
47
--netrestrict value Restricts network communication to the given IP networks (CIDR masks)
48
--nodekey value P2P node key file
49
--nodekeyhex value P2P node key as hex (for testing)
50
51
MINER OPTIONS:
52
--mine Enable mining
53
--minerthreads value Number of CPU threads to use for mining (default: 2)
54
--etherbase value Public address for block mining rewards (default = first account created) (default: "0")
55
--targetgaslimit value Target gas limit sets the artificial target gas floor for the blocks to mine (default: 4712388)
56
--gasprice "1000000000" Minimal gas price to accept for mining a transactions
57
--extradata value Block extra data set by the miner (default = client version)
58
59
GAS PRICE ORACLE OPTIONS:
60
--gpoblocks value Number of recent blocks to check for gas prices (default: 20)
61
--gpopercentile value Suggested gas price is the given percentile of a set of recent transaction gas prices (default: 60)
62
63
VIRTUAL MACHINE OPTIONS:
64
--vmdebug Record information useful for VM and contract debugging
65
66
LOGGING AND DEBUGGING OPTIONS:
67
--metrics Enable metrics collection and reporting
68
--fakepow Disables proof-of-work verification
69
--nocompaction Disables db compaction after import
70
--verbosity value Logging verbosity: 0=silent, 1=error, 2=warn, 3=info, 4=debug, 5=detail (default: 3)
71
--vmodule value Per-module verbosity: comma-separated list of <pattern>=<level> (e.g. eth/*=5,p2p=4)
72
--backtrace value Request a stack trace at a specific logging statement (e.g. "block.go:271")
73
--debug Prepends log messages with call-site location (file and line number)
74
--pprof Enable the pprof HTTP server
75
--pprofaddr value pprof HTTP server listening interface (default: "127.0.0.1")
76
--pprofport value pprof HTTP server listening port (default: 6060)
77
--memprofilerate value Turn on memory profiling with the given rate (default: 524288)
78
--blockprofilerate value Turn on block profiling with the given rate (default: 0)
79
--cpuprofile value Write CPU profile to the given file
80
--trace value Write execution trace to the given file
81
82
MISC OPTIONS:
83
--password value Password file to use for non-interactive password input
84
--solc value Solidity compiler command to be used (default: "solc")
85
--perftest Whether doing performance test, will remove some limitations and cause system more frigile
86
--logDir "log" PChain Log Data directory
87
--childChain value Specify one or more child chain should be start. Ex: child-1,child-2
88
--help, -h show help
Copied!
Copy link