Capture the Ether Part 1: what is it and how to start

StErMi
2 min readDec 4, 2021

If you want to learn how to develop secure smart contracts you should definitely start to complete Solidity challenges like Capture the ether.

There are tons out there going from easy/medium to hard difficulty.

Capture the Ether is a good start for novice solidity developers. In this blog post, I’m going to explain what it is and how to set up a Hardhat project to test all the challenges both locally and on the Ropsten network.

Introduction to Capture the Ether

What is Capture the Ether?

Capture the Ether is a game in which you hack Ethereum smart contracts to learn about security.

It’s meant to be both fun and educational.

This game is brought to you by @smarx, who blogs about smart contract development at Program the Blockchain.

How do you win?

The game consists of a series of challenges in different categories. You earn points for every challenge you complete. Harder challenges are worth more points.

Each challenge is in the form of a smart contract with an isComplete function (or public state variable). The goal is always to make isComplete() return true.

If you’re into that sort of thing, there’s a leaderboard.

What do you need to know first?

The warmup category is designed to introduce the basic tools you need, but if you’re brand new to Ethereum smart contract development, head over to Program the Blockchain first and do some background reading.

If you find you’re missing some tools or knowledge, check out the resources page or consider asking for help.

My personal setup

Credits

First of all, I would like to thank Christoph Michel, I’ve forked his own capture-the-ether repository to bootstrap my repository with its task to use burn wallet accounts.

Project setup instructions

What’s next

Part 2 of the series will be all about solving the Lotteries challenges of Capture the Ether so stay tuned!

Did you like this content? Follow me for more!

--

--

StErMi

#web3 dev + auditor | @SpearbitDAO security researcher, @yAcademyDAO resident auditor, @developer_dao #459, @TheSecureum bootcamp-0, @code4rena warden