structlog: Structured Logging in Python (2026)
python-pptx in 2026: Automate PowerPoint Reports with Python
python-docx: Create and Edit Word Documents with Python (2026)
pypdf: Merge, Split and Edit PDFs with Python (2026)
openpyxl: Automate Excel Files with Python (2026)
Hypothesis: Property-Based Testing in Python (2026)
tiktoken: Count LLM Tokens in Python (2026)
pydantic-settings: Typed Env Config in Python (2026)
orjson: Fast JSON in Python (2026)
PyArrow Tables + Parquet in Python (2026)
SQLAlchemy 2.0 ORM in Python (2026): Mapped Models + Session
Build Semantic Search with ChromaDB in Python (2026)
Build ML Demos with Gradio in Python (2026)
Build Interactive Python Web UIs with NiceGUI (2026)
Build Interactive Web Apps with FastHTML (2026)
Type-Check Python Fast with Astral ty (2026)
Stream Large Responses with FastAPI JSON Lines (2026)
Build Interactive UIs with FastAPI + HTMX (2026)
Deploy FastAPI on Cloudflare Python Workers (2026)
Serve a SPA with FastAPI app.frontend() (2026)
Safe SQL & HTML with Python 3.14 t-strings (PEP 750)
Hybrid Search in LanceDB with Vector + BM25 (Python 2026)
Compose Agents with Pydantic AI v2 Capabilities (2026)
Build Terminal UIs with Textual in Python (2026)
Portable DataFrames with Ibis and DuckDB in Python (2026)
Code Agents with Hugging Face smolagents in Python (2026)
Constrained LLM Generation with Outlines in Python (2026)
One DataFrame API for Pandas and Polars with Narwhals (2026)
Turn PDFs into LLM-Ready Markdown with Docling (2026)
Trace LLM Apps with Langfuse in Python (2026)
Blockchain Full Course for Beginners (3 Hours) — Python Blockchain, Solidity, Foundry, ethers.js dApp – Source Code
First you build a blockchain in plain Python, covering hashing, chained blocks, proof of work, signatures, a toy coin, Merkle trees and consensus between nodes. Then the course moves to Solidity on a local anvil chain, testing contracts with Foundry and calling them from ethers.js. It finishes with a tip jar dApp, a voting exercise and security basics. No real funds are used at any point.
- Duration
- 3:13:35
- Tools
- Python 3.14.7, ecdsa 0.19.2, Foundry 1.8.4 (forge, cast, anvil), solc 0.8.37, Node.js 20.19.2, ethers 6.17.0, VS Code 1.140
Watch the course
Chapters
- 0:00:0001. Welcome: the finished dApp and the plan
- 0:06:5002. Setting up Python, Foundry and Node
- 0:11:5003. What a blockchain is (and isn't)
- 0:17:4804. Hashing with SHA-256
- 0:28:2005. Blocks and chaining
- 0:35:3906. Tamper detection
- 0:43:3007. Proof of work and difficulty
- 0:53:3108. Keys and digital signatures
- 1:03:2209. A toy coin with signed transactions
- 1:18:2110. Merkle trees and inclusion proofs
- 1:26:2711. Many nodes: forks and consensus
- 1:36:0612. Ethereum concepts on a local chain
- 1:46:0013. Solidity basics: a message board
- 1:57:1614. A simple token with Foundry tests
- 2:07:4715. Calling contracts with ethers.js
- 2:20:0316. Final project part 1: TipJar contract
- 2:30:2817. Final project part 2: the dApp page
- 2:44:0118. Practice project: a one-vote-per-address poll
- 2:56:0819. Security basics: finding bugs with tests
- 3:06:5820. What's next: an honest road map
Download source code
File: blockchain-full-course-code.zip
Size: 347.8 KB (356,168 bytes)
SHA-256:22e81dafbfa985542b247877691a3000ba0ff65362eb68ba19ac2114e4407eae
Licence: code is released under the MIT licence, copyright PyInns. See LICENSE and README inside the zip. Free learning code, not production code.
abs() in Python 2026: Absolute Value, Complex Numbers & Modern Use Cases
aiter() in Python 2026: Asynchronous Iterator Protocol & Modern Async Usage
all() in Python 2026: Check If All Elements Are True + Modern Patterns & Use Cases
anext() in Python 2026: Asynchronous Next + Modern Async Iterator Control
any() in Python 2026: Check If Any Element Is True + Modern Patterns & Use Cases
ascii() in Python 2026: Safe String Representation & Modern Debugging Use Cases
bin() in Python 2026: Binary Representation, Bit Manipulation & Modern Use Cases
bool() in Python 2026: Truthy/Falsy Conversion + Modern Patterns & Use Cases
breakpoint() in Python 2026: Modern Debugging with PDB, IDEs & Best Practices
Built-in Functions in Python 2026 – Complete Guide & Best Practices
bytearray() in Python 2026: Mutable Binary Sequences + Modern Use Cases & Best Practices
bytes() in Python 2026: Immutable Binary Sequences + Modern Use Cases & Best Practices
callable() in Python 2026: Check If Object Is Callable + Modern Patterns & Use Cases
chr() in Python 2026: Unicode Character from Integer + Modern Encoding Use Cases
classmethod() in Python 2026: Class Methods, Alternative Constructors & Modern Best Practices