Ropsten Ethereum Faucet: Smart Contract
Published in
6 min readJan 26, 2020
Motivation
This series of tutorial documents my process of building an Ethereum faucet on the Ropsten Testnet. This is the 2nd article of the series and it explains how the Faucet Smart Contract works.
- Ropsten Ethereum Faucet: How it works
- Ropsten Ethereum Faucet: Smart Contract
- Ropsten Ethereum Faucet: JSON Web Service
- Ropsten Ethereum Faucet: Web App
The source codes for this project are in the project’s Github repository and the faucet smart contract is accessible here.
Setting up the Faucet Smart Contract
To compile the faucet smart contract, visit the Remix Ethereum IDE. Create a new smart contract file and name it faucet.sol.
Paste the faucet source code into faucet.sol.