Skip to main content
glnc

COMMAND

The glnc REPL

glnc interactive drops you into a small REPL where every glnc command works as a bare invocation, no glnc prefix needed. Useful when you're spelunking and don't want to re-type the binary name on every line. Aliased to glnc i.

Synopsis

glnc interactive
glnc REPL · v1.0.9 (type help or exit)
glnc > balance vitalik.eth
⬢ ETHEREUM (59 tokens) $5,901,512
glnc > gas
Chain base p50 p90
ethereum 12.4 1.2 3.1 gwei
glnc > exit

glnc i is the short alias. Anything that works at the shell level works here, including the --json and --watch flags.

Why the REPL

Three reasons. Address pasting: pasting a long EVM address into the REPL has no shell quoting concerns. Iteration: jump from balance 0x... to tx 0x... on the same hash without re-typing context. Discovery: the REPL prints short help on unknown commands, which is faster than --help when you've forgotten a flag name.

REPL commands

Every top-level glnc command works inside the REPL. There are also a few REPL-only niceties:

glnc interactive
glnc > help # short reference
glnc > clear # clear the screen
glnc > !! # repeat the last command
glnc > exit # quit (or Ctrl+D)

Watch mode in the REPL

--watch works inside the REPL exactly as at the shell. The alternate screen buffer is entered for the watch session and restored when you Ctrl+C back to the prompt. Snapshots persist to ~/.glnc/snapshots.json across sessions.