mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
Breaking changes (#5191)
Co-authored-by: Bjerg <onbjerg@users.noreply.github.com> Co-authored-by: Roman Krasiuk <rokrassyuk@gmail.com> Co-authored-by: joshieDo <ranriver@protonmail.com> Co-authored-by: joshieDo <93316087+joshieDo@users.noreply.github.com> Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de> Co-authored-by: Oliver Nordbjerg <hi@notbjerg.me> Co-authored-by: Thomas Coratger <thomas.coratger@gmail.com>
This commit is contained in:
@ -37,9 +37,13 @@
|
||||
- [`reth db list`](./cli/reth/db/list.md)
|
||||
- [`reth db diff`](./cli/reth/db/diff.md)
|
||||
- [`reth db get`](./cli/reth/db/get.md)
|
||||
- [`reth db get mdbx`](./cli/reth/db/get/mdbx.md)
|
||||
- [`reth db get static-file`](./cli/reth/db/get/static-file.md)
|
||||
- [`reth db drop`](./cli/reth/db/drop.md)
|
||||
- [`reth db clear`](./cli/reth/db/clear.md)
|
||||
- [`reth db snapshot`](./cli/reth/db/snapshot.md)
|
||||
- [`reth db clear mdbx`](./cli/reth/db/clear/mdbx.md)
|
||||
- [`reth db clear static-file`](./cli/reth/db/clear/static-file.md)
|
||||
- [`reth db create-static-files`](./cli/reth/db/create-static-files.md)
|
||||
- [`reth db version`](./cli/reth/db/version.md)
|
||||
- [`reth db path`](./cli/reth/db/path.md)
|
||||
- [`reth stage`](./cli/reth/stage.md)
|
||||
|
||||
6
book/cli/SUMMARY.md
vendored
6
book/cli/SUMMARY.md
vendored
@ -8,9 +8,13 @@
|
||||
- [`reth db list`](./reth/db/list.md)
|
||||
- [`reth db diff`](./reth/db/diff.md)
|
||||
- [`reth db get`](./reth/db/get.md)
|
||||
- [`reth db get mdbx`](./reth/db/get/mdbx.md)
|
||||
- [`reth db get static-file`](./reth/db/get/static-file.md)
|
||||
- [`reth db drop`](./reth/db/drop.md)
|
||||
- [`reth db clear`](./reth/db/clear.md)
|
||||
- [`reth db snapshot`](./reth/db/snapshot.md)
|
||||
- [`reth db clear mdbx`](./reth/db/clear/mdbx.md)
|
||||
- [`reth db clear static-file`](./reth/db/clear/static-file.md)
|
||||
- [`reth db create-static-files`](./reth/db/create-static-files.md)
|
||||
- [`reth db version`](./reth/db/version.md)
|
||||
- [`reth db path`](./reth/db/path.md)
|
||||
- [`reth stage`](./reth/stage.md)
|
||||
|
||||
20
book/cli/reth/db.md
vendored
20
book/cli/reth/db.md
vendored
@ -7,16 +7,16 @@ $ reth db --help
|
||||
Usage: reth db [OPTIONS] <COMMAND>
|
||||
|
||||
Commands:
|
||||
stats Lists all the tables, their entry count and their size
|
||||
list Lists the contents of a table
|
||||
diff Create a diff between two database tables or two entire databases
|
||||
get Gets the content of a table for the given key
|
||||
drop Deletes all database entries
|
||||
clear Deletes all table entries
|
||||
snapshot Snapshots tables from database
|
||||
version Lists current and local database versions
|
||||
path Returns the full database path
|
||||
help Print this message or the help of the given subcommand(s)
|
||||
stats Lists all the tables, their entry count and their size
|
||||
list Lists the contents of a table
|
||||
diff Create a diff between two database tables or two entire databases
|
||||
get Gets the content of a table for the given key
|
||||
drop Deletes all database entries
|
||||
clear Deletes all table entries
|
||||
create-static-files Creates static files from database tables
|
||||
version Lists current and local database versions
|
||||
path Returns the full database path
|
||||
help Print this message or the help of the given subcommand(s)
|
||||
|
||||
Options:
|
||||
--datadir <DATA_DIR>
|
||||
|
||||
9
book/cli/reth/db/clear.md
vendored
9
book/cli/reth/db/clear.md
vendored
@ -4,11 +4,12 @@ Deletes all table entries
|
||||
|
||||
```bash
|
||||
$ reth db clear --help
|
||||
Usage: reth db clear [OPTIONS] <TABLE>
|
||||
Usage: reth db clear [OPTIONS] <COMMAND>
|
||||
|
||||
Arguments:
|
||||
<TABLE>
|
||||
Table name
|
||||
Commands:
|
||||
mdbx Deletes all database table entries
|
||||
static-file Deletes all static file segment entries
|
||||
help Print this message or the help of the given subcommand(s)
|
||||
|
||||
Options:
|
||||
--datadir <DATA_DIR>
|
||||
|
||||
124
book/cli/reth/db/clear/mdbx.md
vendored
Normal file
124
book/cli/reth/db/clear/mdbx.md
vendored
Normal file
@ -0,0 +1,124 @@
|
||||
# reth db clear mdbx
|
||||
|
||||
Deletes all database table entries
|
||||
|
||||
```bash
|
||||
$ reth db clear mdbx --help
|
||||
Usage: reth db clear mdbx [OPTIONS] <TABLE>
|
||||
|
||||
Arguments:
|
||||
<TABLE>
|
||||
|
||||
|
||||
Options:
|
||||
--datadir <DATA_DIR>
|
||||
The path to the data dir for all reth files and subdirectories.
|
||||
|
||||
Defaults to the OS-specific data directory:
|
||||
|
||||
- Linux: `$XDG_DATA_HOME/reth/` or `$HOME/.local/share/reth/`
|
||||
- Windows: `{FOLDERID_RoamingAppData}/reth/`
|
||||
- macOS: `$HOME/Library/Application Support/reth/`
|
||||
|
||||
[default: default]
|
||||
|
||||
--chain <CHAIN_OR_PATH>
|
||||
The chain this node is running.
|
||||
Possible values are either a built-in chain or the path to a chain specification file.
|
||||
|
||||
Built-in chains:
|
||||
mainnet, sepolia, goerli, holesky, dev
|
||||
|
||||
[default: mainnet]
|
||||
|
||||
--instance <INSTANCE>
|
||||
Add a new instance of a node.
|
||||
|
||||
Configures the ports of the node to avoid conflicts with the defaults. This is useful for running multiple nodes on the same machine.
|
||||
|
||||
Max number of instances is 200. It is chosen in a way so that it's not possible to have port numbers that conflict with each other.
|
||||
|
||||
Changes to the following port numbers: - DISCOVERY_PORT: default + `instance` - 1 - AUTH_PORT: default + `instance` * 100 - 100 - HTTP_RPC_PORT: default - `instance` + 1 - WS_RPC_PORT: default + `instance` * 2 - 2
|
||||
|
||||
[default: 1]
|
||||
|
||||
-h, --help
|
||||
Print help (see a summary with '-h')
|
||||
|
||||
Logging:
|
||||
--log.stdout.format <FORMAT>
|
||||
The format to use for logs written to stdout
|
||||
|
||||
[default: terminal]
|
||||
|
||||
Possible values:
|
||||
- json: Represents JSON formatting for logs. This format outputs log records as JSON objects, making it suitable for structured logging
|
||||
- log-fmt: Represents logfmt (key=value) formatting for logs. This format is concise and human-readable, typically used in command-line applications
|
||||
- terminal: Represents terminal-friendly formatting for logs
|
||||
|
||||
--log.stdout.filter <FILTER>
|
||||
The filter to use for logs written to stdout
|
||||
|
||||
[default: ]
|
||||
|
||||
--log.file.format <FORMAT>
|
||||
The format to use for logs written to the log file
|
||||
|
||||
[default: terminal]
|
||||
|
||||
Possible values:
|
||||
- json: Represents JSON formatting for logs. This format outputs log records as JSON objects, making it suitable for structured logging
|
||||
- log-fmt: Represents logfmt (key=value) formatting for logs. This format is concise and human-readable, typically used in command-line applications
|
||||
- terminal: Represents terminal-friendly formatting for logs
|
||||
|
||||
--log.file.filter <FILTER>
|
||||
The filter to use for logs written to the log file
|
||||
|
||||
[default: debug]
|
||||
|
||||
--log.file.directory <PATH>
|
||||
The path to put log files in
|
||||
|
||||
[default: <CACHE_DIR>/logs]
|
||||
|
||||
--log.file.max-size <SIZE>
|
||||
The maximum size (in MB) of one log file
|
||||
|
||||
[default: 200]
|
||||
|
||||
--log.file.max-files <COUNT>
|
||||
The maximum amount of log files that will be stored. If set to 0, background file logging is disabled
|
||||
|
||||
[default: 5]
|
||||
|
||||
--log.journald
|
||||
Write logs to journald
|
||||
|
||||
--log.journald.filter <FILTER>
|
||||
The filter to use for logs written to journald
|
||||
|
||||
[default: error]
|
||||
|
||||
--color <COLOR>
|
||||
Sets whether or not the formatter emits ANSI terminal escape codes for colors and other text formatting
|
||||
|
||||
[default: always]
|
||||
|
||||
Possible values:
|
||||
- always: Colors on
|
||||
- auto: Colors on
|
||||
- never: Colors off
|
||||
|
||||
Display:
|
||||
-v, --verbosity...
|
||||
Set the minimum log level.
|
||||
|
||||
-v Errors
|
||||
-vv Warnings
|
||||
-vvv Info
|
||||
-vvvv Debug
|
||||
-vvvvv Traces (warning: very verbose!)
|
||||
|
||||
-q, --quiet
|
||||
Silence all log output
|
||||
```
|
||||
127
book/cli/reth/db/clear/static-file.md
vendored
Normal file
127
book/cli/reth/db/clear/static-file.md
vendored
Normal file
@ -0,0 +1,127 @@
|
||||
# reth db clear static-file
|
||||
|
||||
Deletes all static file segment entries
|
||||
|
||||
```bash
|
||||
$ reth db clear static-file --help
|
||||
Usage: reth db clear static-file [OPTIONS] <SEGMENT>
|
||||
|
||||
Arguments:
|
||||
<SEGMENT>
|
||||
Possible values:
|
||||
- headers: Static File segment responsible for the `CanonicalHeaders`, `Headers`, `HeaderTerminalDifficulties` tables
|
||||
- transactions: Static File segment responsible for the `Transactions` table
|
||||
- receipts: Static File segment responsible for the `Receipts` table
|
||||
|
||||
Options:
|
||||
--datadir <DATA_DIR>
|
||||
The path to the data dir for all reth files and subdirectories.
|
||||
|
||||
Defaults to the OS-specific data directory:
|
||||
|
||||
- Linux: `$XDG_DATA_HOME/reth/` or `$HOME/.local/share/reth/`
|
||||
- Windows: `{FOLDERID_RoamingAppData}/reth/`
|
||||
- macOS: `$HOME/Library/Application Support/reth/`
|
||||
|
||||
[default: default]
|
||||
|
||||
--chain <CHAIN_OR_PATH>
|
||||
The chain this node is running.
|
||||
Possible values are either a built-in chain or the path to a chain specification file.
|
||||
|
||||
Built-in chains:
|
||||
mainnet, sepolia, goerli, holesky, dev
|
||||
|
||||
[default: mainnet]
|
||||
|
||||
--instance <INSTANCE>
|
||||
Add a new instance of a node.
|
||||
|
||||
Configures the ports of the node to avoid conflicts with the defaults. This is useful for running multiple nodes on the same machine.
|
||||
|
||||
Max number of instances is 200. It is chosen in a way so that it's not possible to have port numbers that conflict with each other.
|
||||
|
||||
Changes to the following port numbers: - DISCOVERY_PORT: default + `instance` - 1 - AUTH_PORT: default + `instance` * 100 - 100 - HTTP_RPC_PORT: default - `instance` + 1 - WS_RPC_PORT: default + `instance` * 2 - 2
|
||||
|
||||
[default: 1]
|
||||
|
||||
-h, --help
|
||||
Print help (see a summary with '-h')
|
||||
|
||||
Logging:
|
||||
--log.stdout.format <FORMAT>
|
||||
The format to use for logs written to stdout
|
||||
|
||||
[default: terminal]
|
||||
|
||||
Possible values:
|
||||
- json: Represents JSON formatting for logs. This format outputs log records as JSON objects, making it suitable for structured logging
|
||||
- log-fmt: Represents logfmt (key=value) formatting for logs. This format is concise and human-readable, typically used in command-line applications
|
||||
- terminal: Represents terminal-friendly formatting for logs
|
||||
|
||||
--log.stdout.filter <FILTER>
|
||||
The filter to use for logs written to stdout
|
||||
|
||||
[default: ]
|
||||
|
||||
--log.file.format <FORMAT>
|
||||
The format to use for logs written to the log file
|
||||
|
||||
[default: terminal]
|
||||
|
||||
Possible values:
|
||||
- json: Represents JSON formatting for logs. This format outputs log records as JSON objects, making it suitable for structured logging
|
||||
- log-fmt: Represents logfmt (key=value) formatting for logs. This format is concise and human-readable, typically used in command-line applications
|
||||
- terminal: Represents terminal-friendly formatting for logs
|
||||
|
||||
--log.file.filter <FILTER>
|
||||
The filter to use for logs written to the log file
|
||||
|
||||
[default: debug]
|
||||
|
||||
--log.file.directory <PATH>
|
||||
The path to put log files in
|
||||
|
||||
[default: <CACHE_DIR>/logs]
|
||||
|
||||
--log.file.max-size <SIZE>
|
||||
The maximum size (in MB) of one log file
|
||||
|
||||
[default: 200]
|
||||
|
||||
--log.file.max-files <COUNT>
|
||||
The maximum amount of log files that will be stored. If set to 0, background file logging is disabled
|
||||
|
||||
[default: 5]
|
||||
|
||||
--log.journald
|
||||
Write logs to journald
|
||||
|
||||
--log.journald.filter <FILTER>
|
||||
The filter to use for logs written to journald
|
||||
|
||||
[default: error]
|
||||
|
||||
--color <COLOR>
|
||||
Sets whether or not the formatter emits ANSI terminal escape codes for colors and other text formatting
|
||||
|
||||
[default: always]
|
||||
|
||||
Possible values:
|
||||
- always: Colors on
|
||||
- auto: Colors on
|
||||
- never: Colors off
|
||||
|
||||
Display:
|
||||
-v, --verbosity...
|
||||
Set the minimum log level.
|
||||
|
||||
-v Errors
|
||||
-vv Warnings
|
||||
-vvv Info
|
||||
-vvvv Debug
|
||||
-vvvvv Traces (warning: very verbose!)
|
||||
|
||||
-q, --quiet
|
||||
Silence all log output
|
||||
```
|
||||
127
book/cli/reth/db/clear/static_file.md
vendored
Normal file
127
book/cli/reth/db/clear/static_file.md
vendored
Normal file
@ -0,0 +1,127 @@
|
||||
# reth db clear static-file
|
||||
|
||||
Deletes all static_file segment entries
|
||||
|
||||
```bash
|
||||
$ reth db clear static-file --help
|
||||
Usage: reth db clear static-file [OPTIONS] <SEGMENT>
|
||||
|
||||
Arguments:
|
||||
<SEGMENT>
|
||||
Possible values:
|
||||
- headers: StaticFile segment responsible for the `CanonicalHeaders`, `Headers`, `HeaderTerminalDifficulties` tables
|
||||
- transactions: StaticFile segment responsible for the `Transactions` table
|
||||
- receipts: StaticFile segment responsible for the `Receipts` table
|
||||
|
||||
Options:
|
||||
--datadir <DATA_DIR>
|
||||
The path to the data dir for all reth files and subdirectories.
|
||||
|
||||
Defaults to the OS-specific data directory:
|
||||
|
||||
- Linux: `$XDG_DATA_HOME/reth/` or `$HOME/.local/share/reth/`
|
||||
- Windows: `{FOLDERID_RoamingAppData}/reth/`
|
||||
- macOS: `$HOME/Library/Application Support/reth/`
|
||||
|
||||
[default: default]
|
||||
|
||||
--chain <CHAIN_OR_PATH>
|
||||
The chain this node is running.
|
||||
Possible values are either a built-in chain or the path to a chain specification file.
|
||||
|
||||
Built-in chains:
|
||||
mainnet, sepolia, goerli, holesky, dev
|
||||
|
||||
[default: mainnet]
|
||||
|
||||
--instance <INSTANCE>
|
||||
Add a new instance of a node.
|
||||
|
||||
Configures the ports of the node to avoid conflicts with the defaults. This is useful for running multiple nodes on the same machine.
|
||||
|
||||
Max number of instances is 200. It is chosen in a way so that it's not possible to have port numbers that conflict with each other.
|
||||
|
||||
Changes to the following port numbers: - DISCOVERY_PORT: default + `instance` - 1 - AUTH_PORT: default + `instance` * 100 - 100 - HTTP_RPC_PORT: default - `instance` + 1 - WS_RPC_PORT: default + `instance` * 2 - 2
|
||||
|
||||
[default: 1]
|
||||
|
||||
-h, --help
|
||||
Print help (see a summary with '-h')
|
||||
|
||||
Logging:
|
||||
--log.stdout.format <FORMAT>
|
||||
The format to use for logs written to stdout
|
||||
|
||||
[default: terminal]
|
||||
|
||||
Possible values:
|
||||
- json: Represents JSON formatting for logs. This format outputs log records as JSON objects, making it suitable for structured logging
|
||||
- log-fmt: Represents logfmt (key=value) formatting for logs. This format is concise and human-readable, typically used in command-line applications
|
||||
- terminal: Represents terminal-friendly formatting for logs
|
||||
|
||||
--log.stdout.filter <FILTER>
|
||||
The filter to use for logs written to stdout
|
||||
|
||||
[default: ]
|
||||
|
||||
--log.file.format <FORMAT>
|
||||
The format to use for logs written to the log file
|
||||
|
||||
[default: terminal]
|
||||
|
||||
Possible values:
|
||||
- json: Represents JSON formatting for logs. This format outputs log records as JSON objects, making it suitable for structured logging
|
||||
- log-fmt: Represents logfmt (key=value) formatting for logs. This format is concise and human-readable, typically used in command-line applications
|
||||
- terminal: Represents terminal-friendly formatting for logs
|
||||
|
||||
--log.file.filter <FILTER>
|
||||
The filter to use for logs written to the log file
|
||||
|
||||
[default: debug]
|
||||
|
||||
--log.file.directory <PATH>
|
||||
The path to put log files in
|
||||
|
||||
[default: <CACHE_DIR>/logs]
|
||||
|
||||
--log.file.max-size <SIZE>
|
||||
The maximum size (in MB) of one log file
|
||||
|
||||
[default: 200]
|
||||
|
||||
--log.file.max-files <COUNT>
|
||||
The maximum amount of log files that will be stored. If set to 0, background file logging is disabled
|
||||
|
||||
[default: 5]
|
||||
|
||||
--log.journald
|
||||
Write logs to journald
|
||||
|
||||
--log.journald.filter <FILTER>
|
||||
The filter to use for logs written to journald
|
||||
|
||||
[default: error]
|
||||
|
||||
--color <COLOR>
|
||||
Sets whether or not the formatter emits ANSI terminal escape codes for colors and other text formatting
|
||||
|
||||
[default: always]
|
||||
|
||||
Possible values:
|
||||
- always: Colors on
|
||||
- auto: Colors on
|
||||
- never: Colors off
|
||||
|
||||
Display:
|
||||
-v, --verbosity...
|
||||
Set the minimum log level.
|
||||
|
||||
-v Errors
|
||||
-vv Warnings
|
||||
-vvv Info
|
||||
-vvvv Debug
|
||||
-vvvvv Traces (warning: very verbose!)
|
||||
|
||||
-q, --quiet
|
||||
Silence all log output
|
||||
```
|
||||
@ -1,19 +1,19 @@
|
||||
# reth db snapshot
|
||||
# reth db create-static-files
|
||||
|
||||
Snapshots tables from database
|
||||
Creates static files from database tables
|
||||
|
||||
```bash
|
||||
$ reth db snapshot --help
|
||||
Usage: reth db snapshot [OPTIONS] [SEGMENTS]...
|
||||
$ reth db create-static-files --help
|
||||
Usage: reth db create-static-files [OPTIONS] [SEGMENTS]...
|
||||
|
||||
Arguments:
|
||||
[SEGMENTS]...
|
||||
Snapshot segments to generate
|
||||
Static File segments to generate
|
||||
|
||||
Possible values:
|
||||
- headers: Snapshot segment responsible for the `CanonicalHeaders`, `Headers`, `HeaderTD` tables
|
||||
- transactions: Snapshot segment responsible for the `Transactions` table
|
||||
- receipts: Snapshot segment responsible for the `Receipts` table
|
||||
- headers: Static File segment responsible for the `CanonicalHeaders`, `Headers`, `HeaderTerminalDifficulties` tables
|
||||
- transactions: Static File segment responsible for the `Transactions` table
|
||||
- receipts: Static File segment responsible for the `Receipts` table
|
||||
|
||||
Options:
|
||||
--datadir <DATA_DIR>
|
||||
@ -28,12 +28,12 @@ Options:
|
||||
[default: default]
|
||||
|
||||
-f, --from <FROM>
|
||||
Starting block for the snapshot
|
||||
Starting block for the static file
|
||||
|
||||
[default: 0]
|
||||
|
||||
-b, --block-interval <BLOCK_INTERVAL>
|
||||
Number of blocks in the snapshot
|
||||
Number of blocks in the static file
|
||||
|
||||
[default: 500000]
|
||||
|
||||
@ -47,18 +47,18 @@ Options:
|
||||
[default: mainnet]
|
||||
|
||||
-p, --parallel <PARALLEL>
|
||||
Sets the number of snapshots built in parallel. Note: Each parallel build is memory-intensive
|
||||
Sets the number of static files built in parallel. Note: Each parallel build is memory-intensive
|
||||
|
||||
[default: 1]
|
||||
|
||||
--only-stats
|
||||
Flag to skip snapshot creation and print snapshot files stats
|
||||
Flag to skip static file creation and print static files stats
|
||||
|
||||
--bench
|
||||
Flag to enable database-to-snapshot benchmarking
|
||||
Flag to enable database-to-static file benchmarking
|
||||
|
||||
--only-bench
|
||||
Flag to skip snapshot creation and only run benchmarks on existing snapshots
|
||||
Flag to skip static file creation and only run benchmarks on existing static files
|
||||
|
||||
-c, --compression <COMPRESSION>
|
||||
Compression algorithms to use
|
||||
@ -69,7 +69,7 @@ Options:
|
||||
- lz4: LZ4 compression algorithm
|
||||
- zstd: Zstandard (Zstd) compression algorithm
|
||||
- zstd-with-dictionary: Zstandard (Zstd) compression algorithm with a dictionary
|
||||
- uncompressed: No compression, uncompressed snapshot
|
||||
- uncompressed: No compression
|
||||
|
||||
--with-filters
|
||||
Flag to enable inclusion list filters and PHFs
|
||||
20
book/cli/reth/db/get.md
vendored
20
book/cli/reth/db/get.md
vendored
@ -4,19 +4,12 @@ Gets the content of a table for the given key
|
||||
|
||||
```bash
|
||||
$ reth db get --help
|
||||
Usage: reth db get [OPTIONS] <TABLE> <KEY> [SUBKEY]
|
||||
Usage: reth db get [OPTIONS] <COMMAND>
|
||||
|
||||
Arguments:
|
||||
<TABLE>
|
||||
The table name
|
||||
|
||||
NOTE: The dupsort tables are not supported now.
|
||||
|
||||
<KEY>
|
||||
The key to get content for
|
||||
|
||||
[SUBKEY]
|
||||
The subkey to get content for
|
||||
Commands:
|
||||
mdbx Gets the content of a database table for the given key
|
||||
static-file Gets the content of a static file segment for the given key
|
||||
help Print this message or the help of the given subcommand(s)
|
||||
|
||||
Options:
|
||||
--datadir <DATA_DIR>
|
||||
@ -30,9 +23,6 @@ Options:
|
||||
|
||||
[default: default]
|
||||
|
||||
--raw
|
||||
Output bytes instead of human-readable decoded value
|
||||
|
||||
--chain <CHAIN_OR_PATH>
|
||||
The chain this node is running.
|
||||
Possible values are either a built-in chain or the path to a chain specification file.
|
||||
|
||||
133
book/cli/reth/db/get/mdbx.md
vendored
Normal file
133
book/cli/reth/db/get/mdbx.md
vendored
Normal file
@ -0,0 +1,133 @@
|
||||
# reth db get mdbx
|
||||
|
||||
Gets the content of a database table for the given key
|
||||
|
||||
```bash
|
||||
$ reth db get mdbx --help
|
||||
Usage: reth db get mdbx [OPTIONS] <TABLE> <KEY> [SUBKEY]
|
||||
|
||||
Arguments:
|
||||
<TABLE>
|
||||
|
||||
|
||||
<KEY>
|
||||
The key to get content for
|
||||
|
||||
[SUBKEY]
|
||||
The subkey to get content for
|
||||
|
||||
Options:
|
||||
--datadir <DATA_DIR>
|
||||
The path to the data dir for all reth files and subdirectories.
|
||||
|
||||
Defaults to the OS-specific data directory:
|
||||
|
||||
- Linux: `$XDG_DATA_HOME/reth/` or `$HOME/.local/share/reth/`
|
||||
- Windows: `{FOLDERID_RoamingAppData}/reth/`
|
||||
- macOS: `$HOME/Library/Application Support/reth/`
|
||||
|
||||
[default: default]
|
||||
|
||||
--raw
|
||||
Output bytes instead of human-readable decoded value
|
||||
|
||||
--chain <CHAIN_OR_PATH>
|
||||
The chain this node is running.
|
||||
Possible values are either a built-in chain or the path to a chain specification file.
|
||||
|
||||
Built-in chains:
|
||||
mainnet, sepolia, goerli, holesky, dev
|
||||
|
||||
[default: mainnet]
|
||||
|
||||
--instance <INSTANCE>
|
||||
Add a new instance of a node.
|
||||
|
||||
Configures the ports of the node to avoid conflicts with the defaults. This is useful for running multiple nodes on the same machine.
|
||||
|
||||
Max number of instances is 200. It is chosen in a way so that it's not possible to have port numbers that conflict with each other.
|
||||
|
||||
Changes to the following port numbers: - DISCOVERY_PORT: default + `instance` - 1 - AUTH_PORT: default + `instance` * 100 - 100 - HTTP_RPC_PORT: default - `instance` + 1 - WS_RPC_PORT: default + `instance` * 2 - 2
|
||||
|
||||
[default: 1]
|
||||
|
||||
-h, --help
|
||||
Print help (see a summary with '-h')
|
||||
|
||||
Logging:
|
||||
--log.stdout.format <FORMAT>
|
||||
The format to use for logs written to stdout
|
||||
|
||||
[default: terminal]
|
||||
|
||||
Possible values:
|
||||
- json: Represents JSON formatting for logs. This format outputs log records as JSON objects, making it suitable for structured logging
|
||||
- log-fmt: Represents logfmt (key=value) formatting for logs. This format is concise and human-readable, typically used in command-line applications
|
||||
- terminal: Represents terminal-friendly formatting for logs
|
||||
|
||||
--log.stdout.filter <FILTER>
|
||||
The filter to use for logs written to stdout
|
||||
|
||||
[default: ]
|
||||
|
||||
--log.file.format <FORMAT>
|
||||
The format to use for logs written to the log file
|
||||
|
||||
[default: terminal]
|
||||
|
||||
Possible values:
|
||||
- json: Represents JSON formatting for logs. This format outputs log records as JSON objects, making it suitable for structured logging
|
||||
- log-fmt: Represents logfmt (key=value) formatting for logs. This format is concise and human-readable, typically used in command-line applications
|
||||
- terminal: Represents terminal-friendly formatting for logs
|
||||
|
||||
--log.file.filter <FILTER>
|
||||
The filter to use for logs written to the log file
|
||||
|
||||
[default: debug]
|
||||
|
||||
--log.file.directory <PATH>
|
||||
The path to put log files in
|
||||
|
||||
[default: <CACHE_DIR>/logs]
|
||||
|
||||
--log.file.max-size <SIZE>
|
||||
The maximum size (in MB) of one log file
|
||||
|
||||
[default: 200]
|
||||
|
||||
--log.file.max-files <COUNT>
|
||||
The maximum amount of log files that will be stored. If set to 0, background file logging is disabled
|
||||
|
||||
[default: 5]
|
||||
|
||||
--log.journald
|
||||
Write logs to journald
|
||||
|
||||
--log.journald.filter <FILTER>
|
||||
The filter to use for logs written to journald
|
||||
|
||||
[default: error]
|
||||
|
||||
--color <COLOR>
|
||||
Sets whether or not the formatter emits ANSI terminal escape codes for colors and other text formatting
|
||||
|
||||
[default: always]
|
||||
|
||||
Possible values:
|
||||
- always: Colors on
|
||||
- auto: Colors on
|
||||
- never: Colors off
|
||||
|
||||
Display:
|
||||
-v, --verbosity...
|
||||
Set the minimum log level.
|
||||
|
||||
-v Errors
|
||||
-vv Warnings
|
||||
-vvv Info
|
||||
-vvvv Debug
|
||||
-vvvvv Traces (warning: very verbose!)
|
||||
|
||||
-q, --quiet
|
||||
Silence all log output
|
||||
```
|
||||
133
book/cli/reth/db/get/static-file.md
vendored
Normal file
133
book/cli/reth/db/get/static-file.md
vendored
Normal file
@ -0,0 +1,133 @@
|
||||
# reth db get static-file
|
||||
|
||||
Gets the content of a static file segment for the given key
|
||||
|
||||
```bash
|
||||
$ reth db get static-file --help
|
||||
Usage: reth db get static-file [OPTIONS] <SEGMENT> <KEY>
|
||||
|
||||
Arguments:
|
||||
<SEGMENT>
|
||||
Possible values:
|
||||
- headers: Static File segment responsible for the `CanonicalHeaders`, `Headers`, `HeaderTerminalDifficulties` tables
|
||||
- transactions: Static File segment responsible for the `Transactions` table
|
||||
- receipts: Static File segment responsible for the `Receipts` table
|
||||
|
||||
<KEY>
|
||||
The key to get content for
|
||||
|
||||
Options:
|
||||
--datadir <DATA_DIR>
|
||||
The path to the data dir for all reth files and subdirectories.
|
||||
|
||||
Defaults to the OS-specific data directory:
|
||||
|
||||
- Linux: `$XDG_DATA_HOME/reth/` or `$HOME/.local/share/reth/`
|
||||
- Windows: `{FOLDERID_RoamingAppData}/reth/`
|
||||
- macOS: `$HOME/Library/Application Support/reth/`
|
||||
|
||||
[default: default]
|
||||
|
||||
--raw
|
||||
Output bytes instead of human-readable decoded value
|
||||
|
||||
--chain <CHAIN_OR_PATH>
|
||||
The chain this node is running.
|
||||
Possible values are either a built-in chain or the path to a chain specification file.
|
||||
|
||||
Built-in chains:
|
||||
mainnet, sepolia, goerli, holesky, dev
|
||||
|
||||
[default: mainnet]
|
||||
|
||||
--instance <INSTANCE>
|
||||
Add a new instance of a node.
|
||||
|
||||
Configures the ports of the node to avoid conflicts with the defaults. This is useful for running multiple nodes on the same machine.
|
||||
|
||||
Max number of instances is 200. It is chosen in a way so that it's not possible to have port numbers that conflict with each other.
|
||||
|
||||
Changes to the following port numbers: - DISCOVERY_PORT: default + `instance` - 1 - AUTH_PORT: default + `instance` * 100 - 100 - HTTP_RPC_PORT: default - `instance` + 1 - WS_RPC_PORT: default + `instance` * 2 - 2
|
||||
|
||||
[default: 1]
|
||||
|
||||
-h, --help
|
||||
Print help (see a summary with '-h')
|
||||
|
||||
Logging:
|
||||
--log.stdout.format <FORMAT>
|
||||
The format to use for logs written to stdout
|
||||
|
||||
[default: terminal]
|
||||
|
||||
Possible values:
|
||||
- json: Represents JSON formatting for logs. This format outputs log records as JSON objects, making it suitable for structured logging
|
||||
- log-fmt: Represents logfmt (key=value) formatting for logs. This format is concise and human-readable, typically used in command-line applications
|
||||
- terminal: Represents terminal-friendly formatting for logs
|
||||
|
||||
--log.stdout.filter <FILTER>
|
||||
The filter to use for logs written to stdout
|
||||
|
||||
[default: ]
|
||||
|
||||
--log.file.format <FORMAT>
|
||||
The format to use for logs written to the log file
|
||||
|
||||
[default: terminal]
|
||||
|
||||
Possible values:
|
||||
- json: Represents JSON formatting for logs. This format outputs log records as JSON objects, making it suitable for structured logging
|
||||
- log-fmt: Represents logfmt (key=value) formatting for logs. This format is concise and human-readable, typically used in command-line applications
|
||||
- terminal: Represents terminal-friendly formatting for logs
|
||||
|
||||
--log.file.filter <FILTER>
|
||||
The filter to use for logs written to the log file
|
||||
|
||||
[default: debug]
|
||||
|
||||
--log.file.directory <PATH>
|
||||
The path to put log files in
|
||||
|
||||
[default: <CACHE_DIR>/logs]
|
||||
|
||||
--log.file.max-size <SIZE>
|
||||
The maximum size (in MB) of one log file
|
||||
|
||||
[default: 200]
|
||||
|
||||
--log.file.max-files <COUNT>
|
||||
The maximum amount of log files that will be stored. If set to 0, background file logging is disabled
|
||||
|
||||
[default: 5]
|
||||
|
||||
--log.journald
|
||||
Write logs to journald
|
||||
|
||||
--log.journald.filter <FILTER>
|
||||
The filter to use for logs written to journald
|
||||
|
||||
[default: error]
|
||||
|
||||
--color <COLOR>
|
||||
Sets whether or not the formatter emits ANSI terminal escape codes for colors and other text formatting
|
||||
|
||||
[default: always]
|
||||
|
||||
Possible values:
|
||||
- always: Colors on
|
||||
- auto: Colors on
|
||||
- never: Colors off
|
||||
|
||||
Display:
|
||||
-v, --verbosity...
|
||||
Set the minimum log level.
|
||||
|
||||
-v Errors
|
||||
-vv Warnings
|
||||
-vvv Info
|
||||
-vvvv Debug
|
||||
-vvvvv Traces (warning: very verbose!)
|
||||
|
||||
-q, --quiet
|
||||
Silence all log output
|
||||
```
|
||||
133
book/cli/reth/db/get/static_file.md
vendored
Normal file
133
book/cli/reth/db/get/static_file.md
vendored
Normal file
@ -0,0 +1,133 @@
|
||||
# reth db get static-file
|
||||
|
||||
Gets the content of a static_file segment for the given key
|
||||
|
||||
```bash
|
||||
$ reth db get static-file --help
|
||||
Usage: reth db get static-file [OPTIONS] <SEGMENT> <KEY>
|
||||
|
||||
Arguments:
|
||||
<SEGMENT>
|
||||
Possible values:
|
||||
- headers: StaticFile segment responsible for the `CanonicalHeaders`, `Headers`, `HeaderTerminalDifficulties` tables
|
||||
- transactions: StaticFile segment responsible for the `Transactions` table
|
||||
- receipts: StaticFile segment responsible for the `Receipts` table
|
||||
|
||||
<KEY>
|
||||
The key to get content for
|
||||
|
||||
Options:
|
||||
--datadir <DATA_DIR>
|
||||
The path to the data dir for all reth files and subdirectories.
|
||||
|
||||
Defaults to the OS-specific data directory:
|
||||
|
||||
- Linux: `$XDG_DATA_HOME/reth/` or `$HOME/.local/share/reth/`
|
||||
- Windows: `{FOLDERID_RoamingAppData}/reth/`
|
||||
- macOS: `$HOME/Library/Application Support/reth/`
|
||||
|
||||
[default: default]
|
||||
|
||||
--raw
|
||||
Output bytes instead of human-readable decoded value
|
||||
|
||||
--chain <CHAIN_OR_PATH>
|
||||
The chain this node is running.
|
||||
Possible values are either a built-in chain or the path to a chain specification file.
|
||||
|
||||
Built-in chains:
|
||||
mainnet, sepolia, goerli, holesky, dev
|
||||
|
||||
[default: mainnet]
|
||||
|
||||
--instance <INSTANCE>
|
||||
Add a new instance of a node.
|
||||
|
||||
Configures the ports of the node to avoid conflicts with the defaults. This is useful for running multiple nodes on the same machine.
|
||||
|
||||
Max number of instances is 200. It is chosen in a way so that it's not possible to have port numbers that conflict with each other.
|
||||
|
||||
Changes to the following port numbers: - DISCOVERY_PORT: default + `instance` - 1 - AUTH_PORT: default + `instance` * 100 - 100 - HTTP_RPC_PORT: default - `instance` + 1 - WS_RPC_PORT: default + `instance` * 2 - 2
|
||||
|
||||
[default: 1]
|
||||
|
||||
-h, --help
|
||||
Print help (see a summary with '-h')
|
||||
|
||||
Logging:
|
||||
--log.stdout.format <FORMAT>
|
||||
The format to use for logs written to stdout
|
||||
|
||||
[default: terminal]
|
||||
|
||||
Possible values:
|
||||
- json: Represents JSON formatting for logs. This format outputs log records as JSON objects, making it suitable for structured logging
|
||||
- log-fmt: Represents logfmt (key=value) formatting for logs. This format is concise and human-readable, typically used in command-line applications
|
||||
- terminal: Represents terminal-friendly formatting for logs
|
||||
|
||||
--log.stdout.filter <FILTER>
|
||||
The filter to use for logs written to stdout
|
||||
|
||||
[default: ]
|
||||
|
||||
--log.file.format <FORMAT>
|
||||
The format to use for logs written to the log file
|
||||
|
||||
[default: terminal]
|
||||
|
||||
Possible values:
|
||||
- json: Represents JSON formatting for logs. This format outputs log records as JSON objects, making it suitable for structured logging
|
||||
- log-fmt: Represents logfmt (key=value) formatting for logs. This format is concise and human-readable, typically used in command-line applications
|
||||
- terminal: Represents terminal-friendly formatting for logs
|
||||
|
||||
--log.file.filter <FILTER>
|
||||
The filter to use for logs written to the log file
|
||||
|
||||
[default: debug]
|
||||
|
||||
--log.file.directory <PATH>
|
||||
The path to put log files in
|
||||
|
||||
[default: <CACHE_DIR>/logs]
|
||||
|
||||
--log.file.max-size <SIZE>
|
||||
The maximum size (in MB) of one log file
|
||||
|
||||
[default: 200]
|
||||
|
||||
--log.file.max-files <COUNT>
|
||||
The maximum amount of log files that will be stored. If set to 0, background file logging is disabled
|
||||
|
||||
[default: 5]
|
||||
|
||||
--log.journald
|
||||
Write logs to journald
|
||||
|
||||
--log.journald.filter <FILTER>
|
||||
The filter to use for logs written to journald
|
||||
|
||||
[default: error]
|
||||
|
||||
--color <COLOR>
|
||||
Sets whether or not the formatter emits ANSI terminal escape codes for colors and other text formatting
|
||||
|
||||
[default: always]
|
||||
|
||||
Possible values:
|
||||
- always: Colors on
|
||||
- auto: Colors on
|
||||
- never: Colors off
|
||||
|
||||
Display:
|
||||
-v, --verbosity...
|
||||
Set the minimum log level.
|
||||
|
||||
-v Errors
|
||||
-vv Warnings
|
||||
-vvv Info
|
||||
-vvvv Debug
|
||||
-vvvvv Traces (warning: very verbose!)
|
||||
|
||||
-q, --quiet
|
||||
Silence all log output
|
||||
```
|
||||
174
book/cli/reth/db/static_file.md
vendored
Normal file
174
book/cli/reth/db/static_file.md
vendored
Normal file
@ -0,0 +1,174 @@
|
||||
# reth db static-file
|
||||
|
||||
StaticFiles tables from database
|
||||
|
||||
```bash
|
||||
$ reth db static-file --help
|
||||
Usage: reth db static-file [OPTIONS] [SEGMENTS]...
|
||||
|
||||
Arguments:
|
||||
[SEGMENTS]...
|
||||
StaticFile segments to generate
|
||||
|
||||
Possible values:
|
||||
- headers: StaticFile segment responsible for the `CanonicalHeaders`, `Headers`, `HeaderTerminalDifficulties` tables
|
||||
- transactions: StaticFile segment responsible for the `Transactions` table
|
||||
- receipts: StaticFile segment responsible for the `Receipts` table
|
||||
|
||||
Options:
|
||||
--datadir <DATA_DIR>
|
||||
The path to the data dir for all reth files and subdirectories.
|
||||
|
||||
Defaults to the OS-specific data directory:
|
||||
|
||||
- Linux: `$XDG_DATA_HOME/reth/` or `$HOME/.local/share/reth/`
|
||||
- Windows: `{FOLDERID_RoamingAppData}/reth/`
|
||||
- macOS: `$HOME/Library/Application Support/reth/`
|
||||
|
||||
[default: default]
|
||||
|
||||
-f, --from <FROM>
|
||||
Starting block for the static_file
|
||||
|
||||
[default: 0]
|
||||
|
||||
-b, --block-interval <BLOCK_INTERVAL>
|
||||
Number of blocks in the static_file
|
||||
|
||||
[default: 500000]
|
||||
|
||||
--chain <CHAIN_OR_PATH>
|
||||
The chain this node is running.
|
||||
Possible values are either a built-in chain or the path to a chain specification file.
|
||||
|
||||
Built-in chains:
|
||||
mainnet, sepolia, goerli, holesky, dev
|
||||
|
||||
[default: mainnet]
|
||||
|
||||
-p, --parallel <PARALLEL>
|
||||
Sets the number of static files built in parallel. Note: Each parallel build is memory-intensive
|
||||
|
||||
[default: 1]
|
||||
|
||||
--only-stats
|
||||
Flag to skip static_file creation and print static_file files stats
|
||||
|
||||
--bench
|
||||
Flag to enable database-to-static_file benchmarking
|
||||
|
||||
--only-bench
|
||||
Flag to skip static_file creation and only run benchmarks on existing static files
|
||||
|
||||
-c, --compression <COMPRESSION>
|
||||
Compression algorithms to use
|
||||
|
||||
[default: uncompressed]
|
||||
|
||||
Possible values:
|
||||
- lz4: LZ4 compression algorithm
|
||||
- zstd: Zstandard (Zstd) compression algorithm
|
||||
- zstd-with-dictionary: Zstandard (Zstd) compression algorithm with a dictionary
|
||||
- uncompressed: No compression, uncompressed static_file
|
||||
|
||||
--with-filters
|
||||
Flag to enable inclusion list filters and PHFs
|
||||
|
||||
--phf <PHF>
|
||||
Specifies the perfect hashing function to use
|
||||
|
||||
Possible values:
|
||||
- fmph: Fingerprint-Based Minimal Perfect Hash Function
|
||||
- go-fmph: Fingerprint-Based Minimal Perfect Hash Function with Group Optimization
|
||||
|
||||
--instance <INSTANCE>
|
||||
Add a new instance of a node.
|
||||
|
||||
Configures the ports of the node to avoid conflicts with the defaults. This is useful for running multiple nodes on the same machine.
|
||||
|
||||
Max number of instances is 200. It is chosen in a way so that it's not possible to have port numbers that conflict with each other.
|
||||
|
||||
Changes to the following port numbers: - DISCOVERY_PORT: default + `instance` - 1 - AUTH_PORT: default + `instance` * 100 - 100 - HTTP_RPC_PORT: default - `instance` + 1 - WS_RPC_PORT: default + `instance` * 2 - 2
|
||||
|
||||
[default: 1]
|
||||
|
||||
-h, --help
|
||||
Print help (see a summary with '-h')
|
||||
|
||||
Logging:
|
||||
--log.stdout.format <FORMAT>
|
||||
The format to use for logs written to stdout
|
||||
|
||||
[default: terminal]
|
||||
|
||||
Possible values:
|
||||
- json: Represents JSON formatting for logs. This format outputs log records as JSON objects, making it suitable for structured logging
|
||||
- log-fmt: Represents logfmt (key=value) formatting for logs. This format is concise and human-readable, typically used in command-line applications
|
||||
- terminal: Represents terminal-friendly formatting for logs
|
||||
|
||||
--log.stdout.filter <FILTER>
|
||||
The filter to use for logs written to stdout
|
||||
|
||||
[default: ]
|
||||
|
||||
--log.file.format <FORMAT>
|
||||
The format to use for logs written to the log file
|
||||
|
||||
[default: terminal]
|
||||
|
||||
Possible values:
|
||||
- json: Represents JSON formatting for logs. This format outputs log records as JSON objects, making it suitable for structured logging
|
||||
- log-fmt: Represents logfmt (key=value) formatting for logs. This format is concise and human-readable, typically used in command-line applications
|
||||
- terminal: Represents terminal-friendly formatting for logs
|
||||
|
||||
--log.file.filter <FILTER>
|
||||
The filter to use for logs written to the log file
|
||||
|
||||
[default: debug]
|
||||
|
||||
--log.file.directory <PATH>
|
||||
The path to put log files in
|
||||
|
||||
[default: <CACHE_DIR>/logs]
|
||||
|
||||
--log.file.max-size <SIZE>
|
||||
The maximum size (in MB) of one log file
|
||||
|
||||
[default: 200]
|
||||
|
||||
--log.file.max-files <COUNT>
|
||||
The maximum amount of log files that will be stored. If set to 0, background file logging is disabled
|
||||
|
||||
[default: 5]
|
||||
|
||||
--log.journald
|
||||
Write logs to journald
|
||||
|
||||
--log.journald.filter <FILTER>
|
||||
The filter to use for logs written to journald
|
||||
|
||||
[default: error]
|
||||
|
||||
--color <COLOR>
|
||||
Sets whether or not the formatter emits ANSI terminal escape codes for colors and other text formatting
|
||||
|
||||
[default: always]
|
||||
|
||||
Possible values:
|
||||
- always: Colors on
|
||||
- auto: Colors on
|
||||
- never: Colors off
|
||||
|
||||
Display:
|
||||
-v, --verbosity...
|
||||
Set the minimum log level.
|
||||
|
||||
-v Errors
|
||||
-vv Warnings
|
||||
-vvv Info
|
||||
-vvvv Debug
|
||||
-vvvvv Traces (warning: very verbose!)
|
||||
|
||||
-q, --quiet
|
||||
Silence all log output
|
||||
```
|
||||
6
book/cli/reth/db/stats.md
vendored
6
book/cli/reth/db/stats.md
vendored
@ -18,6 +18,9 @@ Options:
|
||||
|
||||
[default: default]
|
||||
|
||||
--only-total-size
|
||||
Show only the total size for static files
|
||||
|
||||
--chain <CHAIN_OR_PATH>
|
||||
The chain this node is running.
|
||||
Possible values are either a built-in chain or the path to a chain specification file.
|
||||
@ -27,6 +30,9 @@ Options:
|
||||
|
||||
[default: mainnet]
|
||||
|
||||
--summary
|
||||
Show only the summary per static file segment
|
||||
|
||||
--instance <INSTANCE>
|
||||
Add a new instance of a node.
|
||||
|
||||
|
||||
7
book/cli/reth/node.md
vendored
7
book/cli/reth/node.md
vendored
@ -131,14 +131,14 @@ Networking:
|
||||
|
||||
--pooled-tx-response-soft-limit <BYTES>
|
||||
Soft limit for the byte size of a [`PooledTransactions`](reth_eth_wire::PooledTransactions) response on assembling a [`GetPooledTransactions`](reth_eth_wire::GetPooledTransactions) request. Spec'd at 2 MiB.
|
||||
|
||||
|
||||
<https://github.com/ethereum/devp2p/blob/master/caps/eth.md#protocol-messages>.
|
||||
|
||||
|
||||
[default: 2097152]
|
||||
|
||||
--pooled-tx-pack-soft-limit <BYTES>
|
||||
Default soft limit for the byte size of a [`PooledTransactions`](reth_eth_wire::PooledTransactions) response on assembling a [`GetPooledTransactions`](reth_eth_wire::PooledTransactions) request. This defaults to less than the [`SOFT_LIMIT_BYTE_SIZE_POOLED_TRANSACTIONS_RESPONSE`], at 2 MiB, used when assembling a [`PooledTransactions`](reth_eth_wire::PooledTransactions) response. Default is 128 KiB
|
||||
|
||||
|
||||
[default: 131072]
|
||||
|
||||
RPC:
|
||||
@ -533,4 +533,3 @@ Display:
|
||||
|
||||
-q, --quiet
|
||||
Silence all log output
|
||||
```
|
||||
23
book/cli/reth/stage/drop.md
vendored
23
book/cli/reth/stage/drop.md
vendored
@ -57,18 +57,17 @@ Database:
|
||||
|
||||
<STAGE>
|
||||
Possible values:
|
||||
- headers: The headers stage within the pipeline
|
||||
- bodies: The bodies stage within the pipeline
|
||||
- senders: The senders stage within the pipeline
|
||||
- execution: The execution stage within the pipeline
|
||||
- account-hashing: The account hashing stage within the pipeline
|
||||
- storage-hashing: The storage hashing stage within the pipeline
|
||||
- hashing: The hashing stage within the pipeline
|
||||
- merkle: The Merkle stage within the pipeline
|
||||
- tx-lookup: The transaction lookup stage within the pipeline
|
||||
- account-history: The account history stage within the pipeline
|
||||
- storage-history: The storage history stage within the pipeline
|
||||
- total-difficulty: The total difficulty stage within the pipeline
|
||||
- headers: The headers stage within the pipeline
|
||||
- bodies: The bodies stage within the pipeline
|
||||
- senders: The senders stage within the pipeline
|
||||
- execution: The execution stage within the pipeline
|
||||
- account-hashing: The account hashing stage within the pipeline
|
||||
- storage-hashing: The storage hashing stage within the pipeline
|
||||
- hashing: The hashing stage within the pipeline
|
||||
- merkle: The Merkle stage within the pipeline
|
||||
- tx-lookup: The transaction lookup stage within the pipeline
|
||||
- account-history: The account history stage within the pipeline
|
||||
- storage-history: The storage history stage within the pipeline
|
||||
|
||||
Logging:
|
||||
--log.stdout.format <FORMAT>
|
||||
|
||||
6
book/cli/reth/stage/dump/account-hashing.md
vendored
6
book/cli/reth/stage/dump/account-hashing.md
vendored
@ -4,11 +4,11 @@ AccountHashing stage
|
||||
|
||||
```bash
|
||||
$ reth stage dump account-hashing --help
|
||||
Usage: reth stage dump account-hashing [OPTIONS] --output-db <OUTPUT_PATH> --from <FROM> --to <TO>
|
||||
Usage: reth stage dump account-hashing [OPTIONS] --output-datadir <OUTPUT_PATH> --from <FROM> --to <TO>
|
||||
|
||||
Options:
|
||||
--output-db <OUTPUT_PATH>
|
||||
The path to the new database folder.
|
||||
--output-datadir <OUTPUT_PATH>
|
||||
The path to the new datadir folder.
|
||||
|
||||
-f, --from <FROM>
|
||||
From which block
|
||||
|
||||
6
book/cli/reth/stage/dump/execution.md
vendored
6
book/cli/reth/stage/dump/execution.md
vendored
@ -4,11 +4,11 @@ Execution stage
|
||||
|
||||
```bash
|
||||
$ reth stage dump execution --help
|
||||
Usage: reth stage dump execution [OPTIONS] --output-db <OUTPUT_PATH> --from <FROM> --to <TO>
|
||||
Usage: reth stage dump execution [OPTIONS] --output-datadir <OUTPUT_PATH> --from <FROM> --to <TO>
|
||||
|
||||
Options:
|
||||
--output-db <OUTPUT_PATH>
|
||||
The path to the new database folder.
|
||||
--output-datadir <OUTPUT_PATH>
|
||||
The path to the new datadir folder.
|
||||
|
||||
-f, --from <FROM>
|
||||
From which block
|
||||
|
||||
6
book/cli/reth/stage/dump/merkle.md
vendored
6
book/cli/reth/stage/dump/merkle.md
vendored
@ -4,11 +4,11 @@ Merkle stage
|
||||
|
||||
```bash
|
||||
$ reth stage dump merkle --help
|
||||
Usage: reth stage dump merkle [OPTIONS] --output-db <OUTPUT_PATH> --from <FROM> --to <TO>
|
||||
Usage: reth stage dump merkle [OPTIONS] --output-datadir <OUTPUT_PATH> --from <FROM> --to <TO>
|
||||
|
||||
Options:
|
||||
--output-db <OUTPUT_PATH>
|
||||
The path to the new database folder.
|
||||
--output-datadir <OUTPUT_PATH>
|
||||
The path to the new datadir folder.
|
||||
|
||||
-f, --from <FROM>
|
||||
From which block
|
||||
|
||||
6
book/cli/reth/stage/dump/storage-hashing.md
vendored
6
book/cli/reth/stage/dump/storage-hashing.md
vendored
@ -4,11 +4,11 @@ StorageHashing stage
|
||||
|
||||
```bash
|
||||
$ reth stage dump storage-hashing --help
|
||||
Usage: reth stage dump storage-hashing [OPTIONS] --output-db <OUTPUT_PATH> --from <FROM> --to <TO>
|
||||
Usage: reth stage dump storage-hashing [OPTIONS] --output-datadir <OUTPUT_PATH> --from <FROM> --to <TO>
|
||||
|
||||
Options:
|
||||
--output-db <OUTPUT_PATH>
|
||||
The path to the new database folder.
|
||||
--output-datadir <OUTPUT_PATH>
|
||||
The path to the new datadir folder.
|
||||
|
||||
-f, --from <FROM>
|
||||
From which block
|
||||
|
||||
35
book/cli/reth/stage/run.md
vendored
35
book/cli/reth/stage/run.md
vendored
@ -11,18 +11,17 @@ Arguments:
|
||||
The name of the stage to run
|
||||
|
||||
Possible values:
|
||||
- headers: The headers stage within the pipeline
|
||||
- bodies: The bodies stage within the pipeline
|
||||
- senders: The senders stage within the pipeline
|
||||
- execution: The execution stage within the pipeline
|
||||
- account-hashing: The account hashing stage within the pipeline
|
||||
- storage-hashing: The storage hashing stage within the pipeline
|
||||
- hashing: The hashing stage within the pipeline
|
||||
- merkle: The Merkle stage within the pipeline
|
||||
- tx-lookup: The transaction lookup stage within the pipeline
|
||||
- account-history: The account history stage within the pipeline
|
||||
- storage-history: The storage history stage within the pipeline
|
||||
- total-difficulty: The total difficulty stage within the pipeline
|
||||
- headers: The headers stage within the pipeline
|
||||
- bodies: The bodies stage within the pipeline
|
||||
- senders: The senders stage within the pipeline
|
||||
- execution: The execution stage within the pipeline
|
||||
- account-hashing: The account hashing stage within the pipeline
|
||||
- storage-hashing: The storage hashing stage within the pipeline
|
||||
- hashing: The hashing stage within the pipeline
|
||||
- merkle: The Merkle stage within the pipeline
|
||||
- tx-lookup: The transaction lookup stage within the pipeline
|
||||
- account-history: The account history stage within the pipeline
|
||||
- storage-history: The storage history stage within the pipeline
|
||||
|
||||
Options:
|
||||
--config <FILE>
|
||||
@ -152,6 +151,18 @@ Networking:
|
||||
--max-inbound-peers <MAX_INBOUND_PEERS>
|
||||
Maximum number of inbound requests. default: 30
|
||||
|
||||
--pooled-tx-response-soft-limit <BYTES>
|
||||
Soft limit for the byte size of a [`PooledTransactions`](reth_eth_wire::PooledTransactions) response on assembling a [`GetPooledTransactions`](reth_eth_wire::GetPooledTransactions) request. Spec'd at 2 MiB.
|
||||
|
||||
<https://github.com/ethereum/devp2p/blob/master/caps/eth.md#protocol-messages>.
|
||||
|
||||
[default: 2097152]
|
||||
|
||||
--pooled-tx-pack-soft-limit <BYTES>
|
||||
Default soft limit for the byte size of a [`PooledTransactions`](reth_eth_wire::PooledTransactions) response on assembling a [`GetPooledTransactions`](reth_eth_wire::PooledTransactions) request. This defaults to less than the [`SOFT_LIMIT_BYTE_SIZE_POOLED_TRANSACTIONS_RESPONSE`], at 2 MiB, used when assembling a [`PooledTransactions`](reth_eth_wire::PooledTransactions) response. Default is 128 KiB
|
||||
|
||||
[default: 131072]
|
||||
|
||||
Database:
|
||||
--db.log-level <LOG_LEVEL>
|
||||
Database logging level. Levels higher than "notice" require a debug build
|
||||
|
||||
@ -12,7 +12,6 @@ The configuration file contains the following sections:
|
||||
|
||||
- [`[stages]`](#the-stages-section) -- Configuration of the individual sync stages
|
||||
- [`headers`](#headers)
|
||||
- [`total_difficulty`](#total_difficulty)
|
||||
- [`bodies`](#bodies)
|
||||
- [`sender_recovery`](#sender_recovery)
|
||||
- [`execution`](#execution)
|
||||
@ -64,20 +63,6 @@ downloader_request_limit = 1000
|
||||
commit_threshold = 10000
|
||||
```
|
||||
|
||||
### `total_difficulty`
|
||||
|
||||
The total difficulty stage calculates the total difficulty reached for each header in the chain.
|
||||
|
||||
```toml
|
||||
[stages.total_difficulty]
|
||||
# The amount of headers to calculate the total difficulty for
|
||||
# before writing the results to disk.
|
||||
#
|
||||
# Lower thresholds correspond to more frequent disk I/O (writes),
|
||||
# but lowers memory usage
|
||||
commit_threshold = 100000
|
||||
```
|
||||
|
||||
### `bodies`
|
||||
|
||||
The bodies section controls both the behavior of the bodies stage, which download historical block bodies, as well as the primary downloader that fetches block bodies over P2P.
|
||||
@ -207,7 +192,7 @@ The transaction lookup stage builds an index of transaction hashes to their sequ
|
||||
#
|
||||
# Lower thresholds correspond to more frequent disk I/O (writes),
|
||||
# but lowers memory usage
|
||||
commit_threshold = 5000000
|
||||
chunk_size = 5000000
|
||||
```
|
||||
|
||||
### `index_account_history`
|
||||
|
||||
@ -12,7 +12,7 @@ Now, as the node is running, you can `curl` the endpoint you provided to the `--
|
||||
curl 127.0.0.1:9001
|
||||
```
|
||||
|
||||
The response from this is quite descriptive, but it can be a bit verbose. Plus, it's just a snapshot of the metrics at the time that you `curl`ed the endpoint.
|
||||
The response from this is quite descriptive, but it can be a bit verbose. Plus, it's just a static_file of the metrics at the time that you `curl`ed the endpoint.
|
||||
|
||||
You can run the following command in a separate terminal to periodically poll the endpoint, and just print the values (without the header text) to the terminal:
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
|
||||
> Pruning and full node are new features of Reth,
|
||||
> and we will be happy to hear about your experience using them either
|
||||
> on [GitHub](https://github.com/paradigmxyz/reth/issues) or in the [Telegram group](https://t.me/paradigm_reth).
|
||||
> on [GitHub](https://github.com/paradigmxyz/reth/issues) or in the [Telegram group](https://t.me/paradigm_reth).
|
||||
|
||||
By default, Reth runs as an archive node. Such nodes have all historical blocks and the state at each of these blocks
|
||||
available for querying and tracing.
|
||||
@ -14,14 +14,15 @@ the steps for running Reth as a full node, what caveats to expect and how to con
|
||||
|
||||
- Archive node – Reth node that has all historical data from genesis.
|
||||
- Pruned node – Reth node that has its historical data pruned partially or fully through
|
||||
a [custom configuration](./config.md#the-prune-section).
|
||||
a [custom configuration](./config.md#the-prune-section).
|
||||
- Full Node – Reth node that has the latest state and historical data for only the last 10064 blocks available
|
||||
for querying in the same way as an archive node.
|
||||
for querying in the same way as an archive node.
|
||||
|
||||
The node type that was chosen when first [running a node](./run-a-node.md) **can not** be changed after
|
||||
the initial sync. Turning Archive into Pruned, or Pruned into Full is not supported.
|
||||
|
||||
## Modes
|
||||
|
||||
### Archive Node
|
||||
|
||||
Default mode, follow the steps from the previous chapter on [how to run on mainnet or official testnets](./mainnet.md).
|
||||
@ -36,6 +37,7 @@ the previous chapter on [how to run on mainnet or official testnets](./mainnet.m
|
||||
|
||||
To run Reth as a full node, follow the steps from the previous chapter on
|
||||
[how to run on mainnet or official testnets](./mainnet.md), and add a `--full` flag. For example:
|
||||
|
||||
```bash
|
||||
RUST_LOG=info reth node \
|
||||
--full \
|
||||
@ -61,7 +63,7 @@ Different segments take up different amounts of disk space.
|
||||
If pruned fully, this is the total freed space you'll get, per segment:
|
||||
|
||||
| Segment | Size |
|
||||
|--------------------|-------|
|
||||
| ------------------ | ----- |
|
||||
| Sender Recovery | 75GB |
|
||||
| Transaction Lookup | 150GB |
|
||||
| Receipts | 250GB |
|
||||
@ -73,6 +75,7 @@ If pruned fully, this is the total freed space you'll get, per segment:
|
||||
Full node occupies at least 950GB.
|
||||
|
||||
Essentially, the full node is the same as following configuration for the pruned node:
|
||||
|
||||
```toml
|
||||
[prune]
|
||||
block_interval = 5
|
||||
@ -91,15 +94,18 @@ storage_history = { distance = 10_064 }
|
||||
```
|
||||
|
||||
Meaning, it prunes:
|
||||
|
||||
- Account History and Storage History up to the last 10064 blocks
|
||||
- All of Sender Recovery data. The caveat is that it's pruned gradually after the initial sync
|
||||
is completed, so the disk space is reclaimed slowly.
|
||||
is completed, so the disk space is reclaimed slowly.
|
||||
- Receipts up to the last 10064 blocks, preserving all receipts with the logs from Beacon Deposit Contract
|
||||
|
||||
Given the aforementioned segment sizes, we get the following full node size:
|
||||
|
||||
```text
|
||||
Archive Node - Receipts - AccountHistory - StorageHistory = Full Node
|
||||
Archive Node - Receipts - AccountsHistory - StoragesHistory = Full Node
|
||||
```
|
||||
|
||||
```text
|
||||
2.14TB - 250GB - 240GB - 700GB = 950GB
|
||||
```
|
||||
@ -108,6 +114,7 @@ Archive Node - Receipts - AccountHistory - StorageHistory = Full Node
|
||||
|
||||
As it was mentioned in the [pruning configuration chapter](./config.md#the-prune-section), there are several segments which can be pruned
|
||||
independently of each other:
|
||||
|
||||
- Sender Recovery
|
||||
- Transaction Lookup
|
||||
- Receipts
|
||||
@ -121,11 +128,10 @@ become unavailable.
|
||||
|
||||
The following tables describe RPC methods available in the full node.
|
||||
|
||||
|
||||
#### `debug` namespace
|
||||
|
||||
| RPC | Note |
|
||||
|----------------------------|------------------------------------------------------------|
|
||||
| -------------------------- | ---------------------------------------------------------- |
|
||||
| `debug_getRawBlock` | |
|
||||
| `debug_getRawHeader` | |
|
||||
| `debug_getRawReceipts` | Only for the last 10064 blocks and Beacon Deposit Contract |
|
||||
@ -137,11 +143,10 @@ The following tables describe RPC methods available in the full node.
|
||||
| `debug_traceCallMany` | Only for the last 10064 blocks |
|
||||
| `debug_traceTransaction` | Only for the last 10064 blocks |
|
||||
|
||||
|
||||
#### `eth` namespace
|
||||
|
||||
| RPC / Segment | Note |
|
||||
|-------------------------------------------|------------------------------------------------------------|
|
||||
| ----------------------------------------- | ---------------------------------------------------------- |
|
||||
| `eth_accounts` | |
|
||||
| `eth_blockNumber` | |
|
||||
| `eth_call` | Only for the last 10064 blocks |
|
||||
@ -189,7 +194,7 @@ The following tables describe RPC methods available in the full node.
|
||||
#### `net` namespace
|
||||
|
||||
| RPC / Segment |
|
||||
|-----------------|
|
||||
| --------------- |
|
||||
| `net_listening` |
|
||||
| `net_peerCount` |
|
||||
| `net_version` |
|
||||
@ -197,7 +202,7 @@ The following tables describe RPC methods available in the full node.
|
||||
#### `trace` namespace
|
||||
|
||||
| RPC / Segment | Note |
|
||||
|---------------------------------|--------------------------------|
|
||||
| ------------------------------- | ------------------------------ |
|
||||
| `trace_block` | Only for the last 10064 blocks |
|
||||
| `trace_call` | Only for the last 10064 blocks |
|
||||
| `trace_callMany` | Only for the last 10064 blocks |
|
||||
@ -210,109 +215,108 @@ The following tables describe RPC methods available in the full node.
|
||||
#### `txpool` namespace
|
||||
|
||||
| RPC / Segment |
|
||||
|----------------------|
|
||||
| -------------------- |
|
||||
| `txpool_content` |
|
||||
| `txpool_contentFrom` |
|
||||
| `txpool_inspect` |
|
||||
| `txpool_status` |
|
||||
|
||||
|
||||
### Pruned Node
|
||||
|
||||
The following tables describe the requirements for prune segments, per RPC method:
|
||||
|
||||
- ✅ – if the segment is pruned, the RPC method still works
|
||||
- ❌ - if the segment is pruned, the RPC method doesn't work anymore
|
||||
|
||||
#### `debug` namespace
|
||||
|
||||
| RPC / Segment | Sender Recovery | Transaction Lookup | Receipts | Account History | Storage History |
|
||||
|----------------------------|-----------------|--------------------|----------|-----------------|-----------------|
|
||||
| `debug_getRawBlock` | ✅ | ✅ | ✅ | ✅ | ✅ |
|
||||
| `debug_getRawHeader` | ✅ | ✅ | ✅ | ✅ | ✅ |
|
||||
| `debug_getRawReceipts` | ✅ | ✅ | ❌ | ✅ | ✅ |
|
||||
| `debug_getRawTransaction` | ✅ | ❌ | ✅ | ✅ | ✅ |
|
||||
| `debug_traceBlock` | ✅ | ✅ | ✅ | ❌ | ❌ |
|
||||
| `debug_traceBlockByHash` | ✅ | ✅ | ✅ | ❌ | ❌ |
|
||||
| `debug_traceBlockByNumber` | ✅ | ✅ | ✅ | ❌ | ❌ |
|
||||
| `debug_traceCall` | ✅ | ✅ | ✅ | ❌ | ❌ |
|
||||
| `debug_traceCallMany` | ✅ | ✅ | ✅ | ❌ | ❌ |
|
||||
| `debug_traceTransaction` | ✅ | ✅ | ✅ | ❌ | ❌ |
|
||||
|
||||
| -------------------------- | --------------- | ------------------ | -------- | --------------- | --------------- |
|
||||
| `debug_getRawBlock` | ✅ | ✅ | ✅ | ✅ | ✅ |
|
||||
| `debug_getRawHeader` | ✅ | ✅ | ✅ | ✅ | ✅ |
|
||||
| `debug_getRawReceipts` | ✅ | ✅ | ❌ | ✅ | ✅ |
|
||||
| `debug_getRawTransaction` | ✅ | ❌ | ✅ | ✅ | ✅ |
|
||||
| `debug_traceBlock` | ✅ | ✅ | ✅ | ❌ | ❌ |
|
||||
| `debug_traceBlockByHash` | ✅ | ✅ | ✅ | ❌ | ❌ |
|
||||
| `debug_traceBlockByNumber` | ✅ | ✅ | ✅ | ❌ | ❌ |
|
||||
| `debug_traceCall` | ✅ | ✅ | ✅ | ❌ | ❌ |
|
||||
| `debug_traceCallMany` | ✅ | ✅ | ✅ | ❌ | ❌ |
|
||||
| `debug_traceTransaction` | ✅ | ✅ | ✅ | ❌ | ❌ |
|
||||
|
||||
#### `eth` namespace
|
||||
|
||||
| RPC / Segment | Sender Recovery | Transaction Lookup | Receipts | Account History | Storage History |
|
||||
|-------------------------------------------|-----------------|--------------------|----------|-----------------|-----------------|
|
||||
| `eth_accounts` | ✅ | ✅ | ✅ | ✅ | ✅ |
|
||||
| `eth_blockNumber` | ✅ | ✅ | ✅ | ✅ | ✅ |
|
||||
| `eth_call` | ✅ | ✅ | ✅ | ❌ | ❌ |
|
||||
| `eth_chainId` | ✅ | ✅ | ✅ | ✅ | ✅ |
|
||||
| `eth_createAccessList` | ✅ | ✅ | ✅ | ❌ | ❌ |
|
||||
| `eth_estimateGas` | ✅ | ✅ | ✅ | ❌ | ❌ |
|
||||
| `eth_feeHistory` | ✅ | ✅ | ✅ | ✅ | ✅ |
|
||||
| `eth_gasPrice` | ✅ | ✅ | ✅ | ✅ | ✅ |
|
||||
| `eth_getBalance` | ✅ | ✅ | ✅ | ❌ | ✅ |
|
||||
| `eth_getBlockByHash` | ✅ | ✅ | ✅ | ✅ | ✅ |
|
||||
| `eth_getBlockByNumber` | ✅ | ✅ | ✅ | ✅ | ✅ |
|
||||
| `eth_getBlockReceipts` | ✅ | ✅ | ❌ | ✅ | ✅ |
|
||||
| `eth_getBlockTransactionCountByHash` | ✅ | ✅ | ✅ | ✅ | ✅ |
|
||||
| `eth_getBlockTransactionCountByNumber` | ✅ | ✅ | ✅ | ✅ | ✅ |
|
||||
| `eth_getCode` | ✅ | ✅ | ✅ | ✅ | ✅ |
|
||||
| `eth_getFilterChanges` | ✅ | ✅ | ✅ | ✅ | ✅ |
|
||||
| `eth_getFilterLogs` | ✅ | ✅ | ❌ | ✅ | ✅ |
|
||||
| `eth_getLogs` | ✅ | ✅ | ❌ | ✅ | ✅ |
|
||||
| `eth_getStorageAt` | ✅ | ✅ | ✅ | ✅ | ❌ |
|
||||
| `eth_getTransactionByBlockHashAndIndex` | ✅ | ✅ | ✅ | ✅ | ✅ |
|
||||
| `eth_getTransactionByBlockNumberAndIndex` | ✅ | ✅ | ✅ | ✅ | ✅ |
|
||||
| `eth_getTransactionByHash` | ✅ | ❌ | ✅ | ✅ | ✅ |
|
||||
| `eth_getTransactionCount` | ✅ | ✅ | ✅ | ❌ | ✅ |
|
||||
| `eth_getTransactionReceipt` | ✅ | ❌ | ❌ | ✅ | ✅ |
|
||||
| `eth_getUncleByBlockHashAndIndex` | ✅ | ✅ | ✅ | ✅ | ✅ |
|
||||
| `eth_getUncleByBlockNumberAndIndex` | ✅ | ✅ | ✅ | ✅ | ✅ |
|
||||
| `eth_getUncleCountByBlockHash` | ✅ | ✅ | ✅ | ✅ | ✅ |
|
||||
| `eth_getUncleCountByBlockNumber` | ✅ | ✅ | ✅ | ✅ | ✅ |
|
||||
| `eth_maxPriorityFeePerGas` | ✅ | ✅ | ✅ | ✅ | ✅ |
|
||||
| `eth_mining` | ✅ | ✅ | ✅ | ✅ | ✅ |
|
||||
| `eth_newBlockFilter` | ✅ | ✅ | ✅ | ✅ | ✅ |
|
||||
| `eth_newFilter` | ✅ | ✅ | ✅ | ✅ | ✅ |
|
||||
| `eth_newPendingTransactionFilter` | ✅ | ✅ | ✅ | ✅ | ✅ |
|
||||
| `eth_protocolVersion` | ✅ | ✅ | ✅ | ✅ | ✅ |
|
||||
| `eth_sendRawTransaction` | ✅ | ✅ | ✅ | ✅ | ✅ |
|
||||
| `eth_sendTransaction` | ✅ | ✅ | ✅ | ✅ | ✅ |
|
||||
| `eth_sign` | ✅ | ✅ | ✅ | ✅ | ✅ |
|
||||
| `eth_signTransaction` | ✅ | ✅ | ✅ | ✅ | ✅ |
|
||||
| `eth_signTypedData` | ✅ | ✅ | ✅ | ✅ | ✅ |
|
||||
| `eth_subscribe` | ✅ | ✅ | ✅ | ✅ | ✅ |
|
||||
| `eth_syncing` | ✅ | ✅ | ✅ | ✅ | ✅ |
|
||||
| `eth_uninstallFilter` | ✅ | ✅ | ✅ | ✅ | ✅ |
|
||||
| `eth_unsubscribe` | ✅ | ✅ | ✅ | ✅ | ✅ |
|
||||
| ----------------------------------------- | --------------- | ------------------ | -------- | --------------- | --------------- |
|
||||
| `eth_accounts` | ✅ | ✅ | ✅ | ✅ | ✅ |
|
||||
| `eth_blockNumber` | ✅ | ✅ | ✅ | ✅ | ✅ |
|
||||
| `eth_call` | ✅ | ✅ | ✅ | ❌ | ❌ |
|
||||
| `eth_chainId` | ✅ | ✅ | ✅ | ✅ | ✅ |
|
||||
| `eth_createAccessList` | ✅ | ✅ | ✅ | ❌ | ❌ |
|
||||
| `eth_estimateGas` | ✅ | ✅ | ✅ | ❌ | ❌ |
|
||||
| `eth_feeHistory` | ✅ | ✅ | ✅ | ✅ | ✅ |
|
||||
| `eth_gasPrice` | ✅ | ✅ | ✅ | ✅ | ✅ |
|
||||
| `eth_getBalance` | ✅ | ✅ | ✅ | ❌ | ✅ |
|
||||
| `eth_getBlockByHash` | ✅ | ✅ | ✅ | ✅ | ✅ |
|
||||
| `eth_getBlockByNumber` | ✅ | ✅ | ✅ | ✅ | ✅ |
|
||||
| `eth_getBlockReceipts` | ✅ | ✅ | ❌ | ✅ | ✅ |
|
||||
| `eth_getBlockTransactionCountByHash` | ✅ | ✅ | ✅ | ✅ | ✅ |
|
||||
| `eth_getBlockTransactionCountByNumber` | ✅ | ✅ | ✅ | ✅ | ✅ |
|
||||
| `eth_getCode` | ✅ | ✅ | ✅ | ✅ | ✅ |
|
||||
| `eth_getFilterChanges` | ✅ | ✅ | ✅ | ✅ | ✅ |
|
||||
| `eth_getFilterLogs` | ✅ | ✅ | ❌ | ✅ | ✅ |
|
||||
| `eth_getLogs` | ✅ | ✅ | ❌ | ✅ | ✅ |
|
||||
| `eth_getStorageAt` | ✅ | ✅ | ✅ | ✅ | ❌ |
|
||||
| `eth_getTransactionByBlockHashAndIndex` | ✅ | ✅ | ✅ | ✅ | ✅ |
|
||||
| `eth_getTransactionByBlockNumberAndIndex` | ✅ | ✅ | ✅ | ✅ | ✅ |
|
||||
| `eth_getTransactionByHash` | ✅ | ❌ | ✅ | ✅ | ✅ |
|
||||
| `eth_getTransactionCount` | ✅ | ✅ | ✅ | ❌ | ✅ |
|
||||
| `eth_getTransactionReceipt` | ✅ | ❌ | ❌ | ✅ | ✅ |
|
||||
| `eth_getUncleByBlockHashAndIndex` | ✅ | ✅ | ✅ | ✅ | ✅ |
|
||||
| `eth_getUncleByBlockNumberAndIndex` | ✅ | ✅ | ✅ | ✅ | ✅ |
|
||||
| `eth_getUncleCountByBlockHash` | ✅ | ✅ | ✅ | ✅ | ✅ |
|
||||
| `eth_getUncleCountByBlockNumber` | ✅ | ✅ | ✅ | ✅ | ✅ |
|
||||
| `eth_maxPriorityFeePerGas` | ✅ | ✅ | ✅ | ✅ | ✅ |
|
||||
| `eth_mining` | ✅ | ✅ | ✅ | ✅ | ✅ |
|
||||
| `eth_newBlockFilter` | ✅ | ✅ | ✅ | ✅ | ✅ |
|
||||
| `eth_newFilter` | ✅ | ✅ | ✅ | ✅ | ✅ |
|
||||
| `eth_newPendingTransactionFilter` | ✅ | ✅ | ✅ | ✅ | ✅ |
|
||||
| `eth_protocolVersion` | ✅ | ✅ | ✅ | ✅ | ✅ |
|
||||
| `eth_sendRawTransaction` | ✅ | ✅ | ✅ | ✅ | ✅ |
|
||||
| `eth_sendTransaction` | ✅ | ✅ | ✅ | ✅ | ✅ |
|
||||
| `eth_sign` | ✅ | ✅ | ✅ | ✅ | ✅ |
|
||||
| `eth_signTransaction` | ✅ | ✅ | ✅ | ✅ | ✅ |
|
||||
| `eth_signTypedData` | ✅ | ✅ | ✅ | ✅ | ✅ |
|
||||
| `eth_subscribe` | ✅ | ✅ | ✅ | ✅ | ✅ |
|
||||
| `eth_syncing` | ✅ | ✅ | ✅ | ✅ | ✅ |
|
||||
| `eth_uninstallFilter` | ✅ | ✅ | ✅ | ✅ | ✅ |
|
||||
| `eth_unsubscribe` | ✅ | ✅ | ✅ | ✅ | ✅ |
|
||||
|
||||
#### `net` namespace
|
||||
|
||||
| RPC / Segment | Sender Recovery | Transaction Lookup | Receipts | Account History | Storage History |
|
||||
|-----------------|-----------------|--------------------|----------|-----------------|-----------------|
|
||||
| `net_listening` | ✅ | ✅ | ✅ | ✅ | ✅ |
|
||||
| `net_peerCount` | ✅ | ✅ | ✅ | ✅ | ✅ |
|
||||
| `net_version` | ✅ | ✅ | ✅ | ✅ | ✅ |
|
||||
| --------------- | --------------- | ------------------ | -------- | --------------- | --------------- |
|
||||
| `net_listening` | ✅ | ✅ | ✅ | ✅ | ✅ |
|
||||
| `net_peerCount` | ✅ | ✅ | ✅ | ✅ | ✅ |
|
||||
| `net_version` | ✅ | ✅ | ✅ | ✅ | ✅ |
|
||||
|
||||
#### `trace` namespace
|
||||
|
||||
| RPC / Segment | Sender Recovery | Transaction Lookup | Receipts | Account History | Storage History |
|
||||
|---------------------------------|-----------------|--------------------|----------|-----------------|-----------------|
|
||||
| `trace_block` | ✅ | ✅ | ✅ | ❌ | ❌ |
|
||||
| `trace_call` | ✅ | ✅ | ✅ | ❌ | ❌ |
|
||||
| `trace_callMany` | ✅ | ✅ | ✅ | ❌ | ❌ |
|
||||
| `trace_get` | ✅ | ❌ | ✅ | ❌ | ❌ |
|
||||
| `trace_rawTransaction` | ✅ | ✅ | ✅ | ❌ | ❌ |
|
||||
| `trace_replayBlockTransactions` | ✅ | ✅ | ✅ | ❌ | ❌ |
|
||||
| `trace_replayTransaction` | ✅ | ❌ | ✅ | ❌ | ❌ |
|
||||
| `trace_transaction` | ✅ | ❌ | ✅ | ❌ | ❌ |
|
||||
| ------------------------------- | --------------- | ------------------ | -------- | --------------- | --------------- |
|
||||
| `trace_block` | ✅ | ✅ | ✅ | ❌ | ❌ |
|
||||
| `trace_call` | ✅ | ✅ | ✅ | ❌ | ❌ |
|
||||
| `trace_callMany` | ✅ | ✅ | ✅ | ❌ | ❌ |
|
||||
| `trace_get` | ✅ | ❌ | ✅ | ❌ | ❌ |
|
||||
| `trace_rawTransaction` | ✅ | ✅ | ✅ | ❌ | ❌ |
|
||||
| `trace_replayBlockTransactions` | ✅ | ✅ | ✅ | ❌ | ❌ |
|
||||
| `trace_replayTransaction` | ✅ | ❌ | ✅ | ❌ | ❌ |
|
||||
| `trace_transaction` | ✅ | ❌ | ✅ | ❌ | ❌ |
|
||||
|
||||
#### `txpool` namespace
|
||||
|
||||
| RPC / Segment | Sender Recovery | Transaction Lookup | Receipts | Account History | Storage History |
|
||||
|----------------------|-----------------|--------------------|----------|-----------------|-----------------|
|
||||
| `txpool_content` | ✅ | ✅ | ✅ | ✅ | ✅ |
|
||||
| `txpool_contentFrom` | ✅ | ✅ | ✅ | ✅ | ✅ |
|
||||
| `txpool_inspect` | ✅ | ✅ | ✅ | ✅ | ✅ |
|
||||
| `txpool_status` | ✅ | ✅ | ✅ | ✅ | ✅ |
|
||||
| -------------------- | --------------- | ------------------ | -------- | --------------- | --------------- |
|
||||
| `txpool_content` | ✅ | ✅ | ✅ | ✅ | ✅ |
|
||||
| `txpool_contentFrom` | ✅ | ✅ | ✅ | ✅ | ✅ |
|
||||
| `txpool_inspect` | ✅ | ✅ | ✅ | ✅ | ✅ |
|
||||
| `txpool_status` | ✅ | ✅ | ✅ | ✅ | ✅ |
|
||||
|
||||
Reference in New Issue
Block a user