Skip to main content
prompt GP ChatGPT

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 GitHub

What 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

Questions 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

Similar prompts

All prompts for Programming languages →

From the same set77

The whole set →
IT Expert This prompt turns a chat into an IT specialist: it diagnoses technical problems and walks through the fix step by step. Handy when you need to know what to do about an error. GP ChatGPT ★ 174,597repo stars Machine Learning Engineer A prompt that turns the chat into a machine learning engineer: it explains ML concepts in plain terms, walks through model building and points to further reading. GP ChatGPT ★ 174,597repo stars Tech Writer Turns your rough list of app steps into a readable how-to article. Handy when the actions are clear but the write-up isn't. GP ChatGPT ★ 174,597repo stars Scientific Data Visualizer A prompt that turns a chat into a visualization assistant for research data: charts, maps, dashboards. Useful when you have measurements and need a readable plot. GP ChatGPT ★ 174,597repo stars Tech Reviewer This prompt turns a chat into a tech reviewer: name a device or service and get a breakdown with pros, cons, features and comparisons to rivals. GP ChatGPT ★ 174,597repo stars Web Design Consultant A web design consultant prompt: describe an organization and its site, and the model proposes an interface and features that serve its business goals. GP ChatGPT ★ 174,597repo stars UX/UI Developer This prompt turns a chat into a UX/UI developer: describe your product and get ideas for improving the user experience. GP ChatGPT ★ 174,597repo stars Linux Terminal A prompt that turns the chat into a Linux terminal: you type a command, the model replies with the output only. GP ChatGPT ★ 174,597repo stars

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor