Skip to main content

Module helpers

Module helpers 

Source
Expand description

Common helpers for reth-bench commands.

Functionsยง

load_jwt_secret ๐Ÿ”’
Load JWT secret from either a file or use the provided string directly.
parse_duration ๐Ÿ”’
Parses a duration string, treating bare integers as milliseconds.
parse_gas_limit ๐Ÿ”’
Parses a gas limit value with optional suffix: K for thousand, M for million, G for billion.
read_input ๐Ÿ”’
Read input from either a file path or stdin.