Difference between revisions of "Geth console"
Jump to navigation
Jump to search
Line 3: | Line 3: | ||
− | geth console [[2]] | + | geth console [[2]]>[[/dev/null]] |
geth console --verbosity 3 2>[[geth-logs.log]] | geth console --verbosity 3 2>[[geth-logs.log]] | ||
Latest revision as of 10:06, 13 June 2024
geth console 2>/dev/null geth console --verbosity 3 2>geth-logs.log
geth attach datadir/geth.ipc
geth console eth.getBalance(eth.accounts[0]); Error: invalid address at inputAddressFormatter (web3.js:3955:11(39)) at web3.js:5060:37(8) at map (native) at web3.js:5059:35(12) at web3.js:5085:34(15) at send (web3.js:5110:39(11)) at <eval>:1:15(6)
Example[edit]
geth console INFO [05-08|17:10:25.546] Starting Geth on Ethereum mainnet... INFO [05-08|17:10:25.546] Bumping default cache on mainnet provided=1024 updated=4096 INFO [05-08|17:10:25.548] Maximum peer count ETH=50 total=50 INFO [05-08|17:10:25.553] Set global gas cap cap=50,000,000 INFO [05-08|17:10:25.553] Initializing the KZG library backend=gokzg INFO [05-08|17:10:25.580] Allocated trie memory caches clean=614.00MiB dirty=1024.00MiB INFO [05-08|17:10:25.580] Defaulting to pebble as the backing database INFO [05-08|17:10:25.581] Allocated cache and file handles database=~/Library/Ethereum/geth/chaindata cache=2.00GiB handles=5120 INFO [05-08|17:10:25.648] Opened ancient database database=~/Users/user/Library/Ethereum/geth/chaindata/ancient/chain readonly=false INFO [05-08|17:10:25.649] State schema set to default scheme=path ERROR[05-08|17:10:25.649] Head block is not reachable INFO [05-08|17:10:25.649] Initialising Ethereum protocol network=1 dbversion=<nil> WARN [05-08|17:10:25.652] Sanitizing invalid node buffer size provided=1024.00MiB updated=256.00MiB ERROR[05-08|17:10:25.652] Zero trie root hash! .../... INFO [05-08|17:10:26.241] WebSocket enabled url=ws://127.0.0.1:8551 INFO [05-08|17:10:26.241] HTTP server started endpoint=127.0.0.1:8551 auth=true prefix= cors=localhost vhosts=localhost Welcome to the Geth JavaScript console! instance: Geth/v1.14.0-stable/darwin-arm64/go1.22.2 at block: 0 (Thu Jan 01 1970 01:00:00 GMT+0100 (CET)) datadir: /Users/user/Library/Ethereum modules: admin:1.0 debug:1.0 engine:1.0 eth:1.0 miner:1.0 net:1.0 rpc:1.0 txpool:1.0 web3:1.0 To exit, press ctrl-d or type exit
geth console --help
Related[edit]
eth_sendTransaction
Wallet APIweb3.eth.sendTransaction
cast send
See also[edit]
geth console [ --help ]
geth account [ new | import ]
geth [ account | console | snapshot | --authrpc.addr | version | --sepolia | --goerli | --pprof | --http | --syncmode | --mine ] --rpc.evmtimeout | --ethstats | --help
, Geth logs, geth logs WARN,Log.Error
, ports:8551, 30303, 8547, ~/.ethereum/geth/,
,--verbosity, --config
,geth init
devp2p, p2psim, devp2p
, geth dumpconfig
Advertising: