Difference between revisions of "Geth db inspect --help"

From wikieduonline
Jump to navigation Jump to search
 
Line 1: Line 1:
  
{{lc}}<pre>
+
{{lc}}
NAME:
+
NAME:
 
   geth db inspect - Inspect the storage size for each type of data in the database
 
   geth db inspect - Inspect the storage size for each type of data in the database
 
+
USAGE:
+
USAGE:
 
   geth db inspect [command options] <prefix> <start>
 
   geth db inspect [command options] <prefix> <start>
 
+
DESCRIPTION:
+
DESCRIPTION:
 
   This commands iterates the entire database. If the optional 'prefix' and 'start' arguments are provided, then the iteration is limited to the given subset of data.
 
   This commands iterates the entire database. If the optional 'prefix' and 'start' arguments are provided, then the iteration is limited to the given subset of data.
 
+
OPTIONS:
+
OPTIONS:
 
   API AND CONSOLE
 
   API AND CONSOLE
  
Line 19: Line 19:
  
 
   ETHEREUM
 
   ETHEREUM
 
+
  
 
     --datadir value                    (default: /Users/qs/Library/Ethereum) ($GETH_DATADIR)
 
     --datadir value                    (default: /Users/qs/Library/Ethereum) ($GETH_DATADIR)
Line 30: Line 30:
 
           Backing database implementation to use ('pebble' or 'leveldb')
 
           Backing database implementation to use ('pebble' or 'leveldb')
  
     --goerli                            (default: false)                  ($GETH_GOERLI)
+
     --[[goerli]]                           (default: false)                  ($GETH_GOERLI)
 
           Görli network: pre-configured proof-of-authority test network
 
           Görli network: pre-configured proof-of-authority test network
  
     --holesky                          (default: false)                  ($GETH_HOLESKY)
+
     --[[holesky]]                           (default: false)                  ($GETH_HOLESKY)
 
           Holesky network: pre-configured proof-of-stake test network
 
           Holesky network: pre-configured proof-of-stake test network
 
+
 
     --mainnet                          (default: false)                  ($GETH_MAINNET)
 
     --mainnet                          (default: false)                  ($GETH_MAINNET)
 
           Ethereum mainnet
 
           Ethereum mainnet
 
+
     --sepolia                          (default: false)                  ($GETH_SEPOLIA)
+
     --[[sepolia]]                           (default: false)                  ($GETH_SEPOLIA)
 
           Sepolia network: pre-configured proof-of-work test network
 
           Sepolia network: pre-configured proof-of-work test network
  

Latest revision as of 09:55, 10 October 2024

NAME:
  geth db inspect - Inspect the storage size for each type of data in the database

USAGE:
  geth db inspect [command options] <prefix> <start>

DESCRIPTION:
  This commands iterates the entire database. If the optional 'prefix' and 'start' arguments are provided, then the iteration is limited to the given subset of data.

OPTIONS:
  API AND CONSOLE


   --header value, -H value                                               ($GETH_HEADER)
         Pass custom headers to the RPC server when using --remotedb or the geth attach
         console. This flag can be given multiple times.
  ETHEREUM

   --datadir value                     (default: /Users/qs/Library/Ethereum) ($GETH_DATADIR)
         Data directory for the databases and keystore
   --datadir.ancient value                                                ($GETH_DATADIR_ANCIENT)
         Root directory for ancient data (default = inside chaindata)
   --db.engine value                                                      ($GETH_DB_ENGINE)
         Backing database implementation to use ('pebble' or 'leveldb')
   --goerli                            (default: false)                   ($GETH_GOERLI)
         Görli network: pre-configured proof-of-authority test network
   --holesky                           (default: false)                   ($GETH_HOLESKY)
         Holesky network: pre-configured proof-of-stake test network

   --mainnet                           (default: false)                   ($GETH_MAINNET)
         Ethereum mainnet

   --sepolia                           (default: false)                   ($GETH_SEPOLIA)
         Sepolia network: pre-configured proof-of-work test network
  LOGGING AND DEBUGGING


   --remotedb value                                                       ($GETH_REMOTEDB)
         URL for remote database
  MISC


   --help, -h                          (default: false)
         show help
  STATE HISTORY MANAGEMENT


   --state.scheme value                                                   ($GETH_STATE_SCHEME)
         Scheme to use for storing ethereum state ('hash' or 'path')
   --syncmode value                    (default: snap)                    ($GETH_SYNCMODE)
         Blockchain sync mode ("snap" or "full")



geth db [ inspect | check-state-content | metadata | --help ]

Advertising: