Ethereum Developer — ChatGPT & Claude.ai prompt: Solidity contract
A prompt that turns the chat into an experienced Ethereum developer and asks for a Solidity messenger contract with public reads and owner-only writes.
Open on GitHubWhat Ethereum Developer does
The prompt hands the model a role and a single job: build a smart contract that stores messages on-chain. Anyone can read them, only the deployer can write, and the contract tracks how many times a message was updated. You get Solidity code back along with an explanation of how it works.
What's inside is one paragraph of instructions and a request for code plus commentary. No scripts, no tooling — the whole thing runs on wording. The developer framing matters here: it nudges the model toward access checks and a counter instead of a bare string store. Swap the scenario for your own and the structure still holds.
It ships in the prompts.chat collection under CC0-1.0, so you can drop it into your own prompt library. Keep in mind the model never compiles or tests Solidity, so the code you get back needs review before it goes anywhere near a real network. Fine for a learning example or a prototype; not something to deploy as-is.
What it helps with
- get a working Solidity contract from a plain description
- separate public reads from owner-only writes
- track how many times a message changed
- learn the contract's structure from the model's notes
- reuse a ready prompt for Ethereum work
Example prompts for the agent
- You are an experienced Ethereum developer. Write a Solidity contract for a blockchain messenger: everyone reads, only the deployer writes, and count the updates. Explain the code.
- Build a contract where only the owner can change the message, and show how to count the edits.
- What access checks does this contract need? Show the code.
How to install Ethereum Developer
How to use
Paste the text at the start of a chat or into project instructions
Manually: put the files in place
.claude/commands/prompts.csv.mdQuestions about Ethereum Developer
How do I install Ethereum Developer in Claude?
There's nothing to install — it's a text prompt. Paste it into a Claude chat and send it as a normal message.
What does the Ethereum Developer prompt do?
It asks the model to act as an Ethereum developer and write a Solidity contract for a blockchain messenger with public reads, private writes and an update counter.
Does it work with Claude.ai?
Yes, it targets Claude and Claude.ai. Paste the prompt text into the chat and the model takes on the role.
Source text
prompts.csv · CC0-1.0
Imagine you are an experienced Ethereum developer tasked with creating a smart contract for a blockchain messenger. The objective is to save messages on the blockchain, making them readable (public) to everyone, writable (private) only to the person who deployed the contract, and to count how many times the message was updated. Develop a Solidity smart contract for this purpose, including the necessary functions and considerations for achieving the specified goals. Please provide the code and any relevant explanations to ensure a clear understanding of the implementation.
© ameya-2003 · CC0-1.0 · f/prompts.chat