A small Ethereum DApp for saving and retrieving a string on the Sepolia testnet.
- Connects to MetaMask
- Saves a string to a smart contract
- Retrieves the latest saved string
- Shows transaction history for the connected wallet
- HTML, CSS, and JavaScript
- ethers.js
- MetaMask
- Sepolia testnet
- Open
index.htmlin a browser. - Make sure MetaMask is installed and unlocked.
- Connect to Sepolia. If you need test ETH, get some from the Google Sepolia Faucet (the Chainstack Faucet mentioned in the blog no longer works reliably).
- Save a string and view the transaction on Etherscan.
The contract address is hardcoded in script.js, so if you deploy a new contract you will need to update it there.
A Hands-on Guide to Building Your First Decentralized Application by Davide Zambiasi on the Hyperskill blog.