Preview · v0.1

eth-lang.

A language for asking Ethereum questions. Write Solidity and Vyper inline, call contracts with types taken from their ABIs, and describe the chain as objects, links and actions. Every query runs against its own local EVM or a fork of mainnet, and nothing is ever broadcast.

Each example below is a file in the repo. The output next to it is what eth-lang run printed.

THE WHOLE LANGUAGE

Six forms on top of VibeLang

Everything outside these forms is ordinary VibeLang: try runs an effect, e catch (err) => … recovers, and errors are typed. Addresses, 1 ether and 7 days are literals.

FormWhat it declares
contract N solidity { }An inline Solidity contract, compiled and typed from its ABI. Also vyper { }, or from "./File.sol".
abi N { }An interface from function signatures, one per line.
chain N { rpc … }A network to fork. Mainnet, Base, Optimism, Arbitrum and Sepolia come built in.
object N { key … }An ontology object type: a key, properties and links, optionally backed by a contract.
action N on Obj ( )A validated change, with require … else "why" rules and a rollback preview.
query N on Chain ( )A runnable program. Its return value is the result.

Try it

Run a file from the command line, or start the playground and point any MCP client at it. Agents get run, check, lower, skill and examples tools, and the one-page SKILL.md as instructions.

# run every query in a file, or one with arguments
eth-lang run examples/ontology.eth
eth-lang run examples/mainnet.eth --entry Wallet --args '{"owner":"0x…"}' --json

# a local playground: web page at / and MCP at /mcp
eth-lang serve --port 8787

A hosted playground at playground.tevm.sh/mcp is coming once its sandbox hardening lands.