OpenViSTAI · Agents · Blockchain · Crypto
Menu
Developer Tools

Solidity Shell

Solidity Shell is a JavaScript command-line REPL for interactively evaluating Solidity. It starts with a temporary Ganache instance and supports remote compiler selection, lightweight session recording, contract interface fetching, and inspection commands for deployed contract data.

Independent OpenViST project profile, based on linked sources.

Solidity Shell — OpenViST project profile in Developer Tools.
OpenViST project illustration. See the linked sources for product details.
Understand the project

Practical overview

When it fits

Use it when you want a command-line Solidity workspace for quick evaluation or focused contract inspection, including a documented fork-mode workflow for reading contract storage.

Who it is for

  • Solidity developers who want to evaluate expressions and define contracts or functions in an interactive session.
  • Developers investigating contract interfaces, bytecode, opcodes, storage layout, or storage through a Ganache-backed provider.

Documented uses

  • Evaluate Solidity expressions and inspect returned values in a REPL.
  • Save, restore, undo, or reset interactive sessions.
  • Select a Solidity compiler version through a pragma that attempts to load a matching remote compiler.
  • Fetch an interface declaration from an Etherscan ABI specification and use it in the shell.
  • Inspect contract bytecode, opcodes, storage layout, or storage, including storage on a fork.
Before you choose

Requirements & limits

The repository provides the npm installation command `npm install -g solidity-shell`.

  • The tool is a CLI REPL rather than a general-purpose code editor.
  • Compiler versions are selected by pragma, with matching remote compiler loading attempted by the shell.
  • Ganache is part of the documented session workflow; fork use requires a fork URL.
  • The README warns against concurrent shells when relying on previous-session restoration or saved settings.
  • HTTPS URL imports are described as experimental.

Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.

Source-based practical guide

Install and start the Solidity Shell

Install the npm package globally and open an interactive Solidity session.

Before you start

  • A command-line environment with npm available.

Steps

  1. Run the command below.

    Documented command
    npm install -g solidity-shell
  2. Run solidity-shell from a command prompt.

  3. Enter Solidity expressions or declarations; use .help for shell commands and .exit to leave.

Expected outcome

An interactive Solidity session in which Solidity input can be evaluated.

Guide limitations

  • The README shows the shell starting a temporary Ganache instance.
  • The guide does not establish compatibility with particular operating systems or npm versions.
Source-based practical guide

Inspect contract storage on a Ganache fork

Display storage slots for a contract at the latest block in fork mode.

Before you start

  • Solidity Shell installed and runnable from a command line.
  • A fork URL, such as the documented Infura-style URL with an API token.
  • A contract address and storage slot range to inspect.

Steps

  1. Start the shell with solidity-shell --fork .

  2. At the prompt, run .inspect storage 0 10 to request storage beginning at slot 0 for 10 slots.

Expected outcome

The shell displays contract storage for the requested range, as illustrated for the latest block.

Guide limitations

  • The example relies on a fork provider URL; the README does not establish provider availability or access terms.
  • The documented example covers a storage read, not contract deployment or transaction execution.
Evidence and transparency

Sources & review

Source record details
Source availability
Active
Sources checked
17 October 2026
Original website title
tintinweb/solidity-shell · Official homepage title · retained in its source language