11 smart contract resources to learn Web3
Smart contract: a program stored on a blockchain that runs when a transaction calls it and moves funds by fixed rules.
11 resources
CryptoZombies
CryptoZombies · Beginner · Tutorials
Free, in-browser lessons that teach Solidity by building a zombie game; nothing to install.
Solidity Documentation
soliditylang.org · Intermediate · Articles
The language reference: syntax, types, contract structure and compiler behavior.
Solidity by Example
solidity-by-example.org · Beginner · Tutorials
Short, runnable Solidity examples, from Hello World and mappings to re-entrancy and ERC-20.
OpenZeppelin Contracts
OpenZeppelin · Intermediate · Articles
Docs for OpenZeppelin Contracts, the audited Solidity library of ERC-20, ERC-721, access-control and upgradeable building blocks that teams reuse instead of rewriting.
Ethernaut
OpenZeppelin · Intermediate · Challenges
OpenZeppelin's wargame: each level is a deliberately vulnerable contract you exploit, which teaches how attacks such as re-entrancy work.
Smart Contract Best Practices
Consensys · Intermediate · Articles
Consensys Diligence's guide to common smart-contract attacks, such as re-entrancy and front-running, and the coding patterns that prevent them. No longer actively maintained.
The Ultimate Solidity Course
RareSkills · Intermediate · Courses
A free Solidity course for people who already program: storage, ERC-20 and ERC-721, re-entrancy, proxies, gas optimization and walkthroughs of Uniswap V2 and Compound V3.
The Foundry Book
Foundry · Intermediate · Books
The Foundry manual: Forge to build and test contracts in Solidity, Cast to call chains from the terminal and Anvil to run a local node.
Mastering Ethereum (free edition)
GitHub · Advanced · Books
The Ethereum companion by Andreas Antonopoulos and Gavin Wood: the EVM, Solidity and Vyper contracts, tokens, oracles and dapps. Free on GitHub.
Chainlink Documentation
Chainlink · Intermediate · Articles
Docs for Chainlink, the oracle network that brings price feeds and other off-chain data to smart contracts, with integration guides in Solidity.
Ethereum on GitHub
GitHub · Intermediate · Open source
The ethereum organization on GitHub: the Solidity compiler, go-ethereum, the EIP and ERC proposals and the protocol specifications.