Solidity Tutorials and Guides

Start your journey with our comprehensive Solidity tutorials and guides. Whether you're new to blockchain development or looking to advance your smart contract skills, these resources will help you learn Solidity programming, understand Ethereum, and build secure decentralized applications.

Commit-Reveal Scheme in Solidity
Commit-Reveal Scheme in Solidity

Learn how to implement the commit-reveal scheme in Solidity to prevent front-running attacks in blockchain games. Complete guide with code examples, security best practices, and real-world applications.

πŸ• 14 min readRead more
Deploy Your First Smart Contract to an L2, with Scaffold-ETH 2
Deploy Your First Smart Contract to an L2, with Scaffold-ETH 2

Austin Griffith and Elliot Friedman take a counter contract from an empty folder to a live deployment on Arbitrum: scaffold, tinker locally, fund a deployer, deploy for a fraction of a cent, then bridging, the address table precompile, and forced transactions. Full video and edited transcript.

πŸ• 15 min readRead more
ERC20 Approve Pattern: Secure Token Allowances Guide
ERC20 Approve Pattern: Secure Token Allowances Guide

A concise, developer-focused guide to the ERC20 approve pattern. Learn how token allowances work, common pitfalls, and best practices for secure dApp development and user safety. Includes Solidity examples and actionable tips.

πŸ• 8 min readRead more
A Developer's Guide to Liquid Staking Tokens (LSTs)
A Developer's Guide to Liquid Staking Tokens (LSTs)

Staked your ETH but miss using its value in DeFi? Discover Liquid Staking Tokens (LSTs)! This guide explains how LSTs like stETH and rETH work, the difference between rebasing and reward-bearing tokens, and their impact on DeFi. Essential for Solidity devs exploring advanced staking.

πŸ• 10 min readRead more
Time-Weighted Staking Rewards & Dynamic APY in Solidity
Time-Weighted Staking Rewards & Dynamic APY in Solidity

Go beyond basic staking! Learn to implement time-weighted rewards to incentivize long-term stakers and dynamic APYs that respond to market conditions in your Solidity contracts. A practical guide for Web3 devs aiming for fairer and more sustainable tokenomics.

πŸ• 8 min readRead more