Skip to main content

Module interactive

Module interactive 

Source
Expand description

§Interactive Mode

scope interactive (also scope tui and scope shell) opens the unified TUI in crate::cli::tui. This module keeps its arguments and the SessionContext that persists between commands. The chain defaults to auto, meaning each command infers the chain from its input (e.g., 0x… → Ethereum/EVM, T… → Tron, base58 → Solana). Users can pin a chain with chain solana and unlock with chain auto.

§Usage

scope interactive

scope:auto> address 0x742d35Cc6634C0532925a3b844Bc9e7595f1b3c2
# Chain: ethereum (auto-detected)

scope:auto> address DRpbCBMxVnDK7maPM5tGv6MvB3v1sRMC86PZ8okm21hy
# Chain: solana (auto-detected)

scope:auto> chain solana
# Chain pinned to: solana

scope:solana> address 7xKXtg...
# Uses solana chain

Structs§

InteractiveArgs
Arguments for the interactive command.
SessionContext
Session context that persists between commands in interactive mode.

Functions§

run
Opens the unified TUI with settings. reload reads them again after setup. Returns how it ended.
run_monitor
scope monitor <args>: the TUI, with the monitor wizard filled from the arguments (#47).