Editing Geth console

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
 
{{lc}}
 
{{lc}}
 
 
 
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 ==
 
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]]
 
  [[geth console --help]]
  
== Related ==
 
* <code>[[eth_sendTransaction]]</code> Wallet API
 
* <code>[[web3.eth.sendTransaction]]</code>
 
* <code>[[cast send]]</code>
 
  
 
== See also ==
 
== See also ==
* {{geth console}}
 
* {{geth account}}
 
 
* {{geth}}
 
* {{geth}}
  
 
[[Category:Geth]]
 
[[Category:Geth]]

Please note that all contributions to wikieduonline may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Wikieduonline:Copyrights for details). Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)

Advertising: