# My First Solidity Contract **Published by:** [icona](https://paragraph.com/@happycity/) **Published on:** 2022-05-08 **URL:** https://paragraph.com/@happycity/my-first-solidity-contract ## Content contract Faucet { // Give out ether to anyone who asks function withdraw(uint withdraw_amount) public { // Limit withdrawal amount 1 eth = 1 * 10的18次方 require(withdraw_amount <= 100000000000000000); // Send the amount to the address that requested it payable(msg.sender).transfer(withdraw_amount); } // Accept any incoming amount fallback () external payable {} } ## Publication Information - [icona](https://paragraph.com/@happycity/): Publication homepage - [All Posts](https://paragraph.com/@happycity/): More posts from this publication - [RSS Feed](https://api.paragraph.com/blogs/rss/@happycity): Subscribe to updates - [Twitter](https://twitter.com/caishaowu1): Follow on Twitter