pandas 3 Migration Guide: Copy-on-Write, str Dtype, pd.col and Faster read_csv (2026) Python multiprocessing Tutorial: Pool, ProcessPoolExecutor, Queues and Locks (2026) YOLO26 Object Detection in Python with Ultralytics: Detect, Count, Track and Export (2026) Remove Background from Image in Python with rembg: Models, Batch, Masks and CLI (2026) FastAPI File Upload Tutorial: UploadFile, Multiple Files, Validation and Size Limits (2026) Ollama Python Tutorial: Run Local LLMs with Chat, Streaming, Structured Outputs, Tools and Embeddings (2026) Python sqlite3 Tutorial: Tables, Transactions, JSON and Upserts with the Built-in Database (2026) Convert Python to EXE with PyInstaller: One-File Apps, Data Files and Hidden Imports (2026) Two-Factor Authentication in Python with pyotp: TOTP, QR Codes and FastAPI (2026) Hash Passwords in Python with Argon2: pwdlib, argon2-cffi and bcrypt Migration (2026) Encrypt and Decrypt in Python with Fernet: Strings, Files and Passwords (2026) psutil Tutorial: Monitor CPU, Memory, Disk and Processes in Python (2026) PyMuPDF Tutorial: PDF to Image, Extract Text and Images in Python (2026) MoviePy 2 Tutorial: Edit Videos with Python (Trim, Text, Merge, Audio) 2026 FastAPI Dependency Injection with Depends: Annotated, Yield and Overrides (2026) HTML to PDF in Python with WeasyPrint and Jinja2: Invoices and Reports (2026) Extract Tables from PDF in Python with pdfplumber: CSV, Excel and pandas (2026) OCR in Python: Extract Text from Images and Scanned PDFs with RapidOCR (2026) Text to Speech in Python with Piper: Offline Natural Voices, WAV Files and a TTS API (2026) Speech to Text in Python with faster-whisper: Transcribe Audio and Make Subtitles (2026) Send Email with Python: smtplib, HTML, Attachments and Bulk Mail (2026) Python QR Code Generator: Styled QR Codes with qrcode (2026) Pillow 13: Resize, Crop and Watermark Images in Python (2026) Parallel Programming with Dask in Python 2026: Intro Guide MarkItDown: Convert Files to Markdown for LLMs in Python (2026) Plotly Express: Interactive Charts in Python (2026) pandera: Validate pandas DataFrames in Python (2026) jsonschema: Validate JSON Data in Python (2026) Faker: Generate Fake Test Data in Python (2026) RapidFuzz: Fuzzy String Matching in Python (2026) View all in this category →

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

  1. 0:00:0001. Welcome: the finished dApp and the plan
  2. 0:06:5002. Setting up Python, Foundry and Node
  3. 0:11:5003. What a blockchain is (and isn't)
  4. 0:17:4804. Hashing with SHA-256
  5. 0:28:2005. Blocks and chaining
  6. 0:35:3906. Tamper detection
  7. 0:43:3007. Proof of work and difficulty
  8. 0:53:3108. Keys and digital signatures
  9. 1:03:2209. A toy coin with signed transactions
  10. 1:18:2110. Merkle trees and inclusion proofs
  11. 1:26:2711. Many nodes: forks and consensus
  12. 1:36:0612. Ethereum concepts on a local chain
  13. 1:46:0013. Solidity basics: a message board
  14. 1:57:1614. A simple token with Foundry tests
  15. 2:07:4715. Calling contracts with ethers.js
  16. 2:20:0316. Final project part 1: TipJar contract
  17. 2:30:2817. Final project part 2: the dApp page
  18. 2:44:0118. Practice project: a one-vote-per-address poll
  19. 2:56:0819. Security basics: finding bugs with tests
  20. 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.