Expand description
§Interactive Mode
This module implements an interactive REPL for the Scope CLI where
context is preserved between commands. The chain defaults to auto,
meaning the CLI will infer the relevant chain from each 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 chainStructs§
- Interactive
Args - Arguments for the interactive command.
- Session
Context - Session context that persists between commands in interactive mode.
Functions§
- run
- Runs the interactive REPL.