Blog — page 11
Technical writing on Web3, AI, Bitcoin, and building software. Written by Uvin Vindula.
170 articles
NFT Smart Contract Development: ERC-721 and ERC-1155 Guide
A complete guide to building NFT smart contracts with ERC-721 and ERC-1155. Covers on-chain SVG metadata, batch minting with ERC-721A, royalties with ERC-2981, gas optimization, security patterns, and deployment checklists.
Flash Loan Attacks: How They Work and How to Defend Against Them
A deep technical breakdown of flash loan attacks in DeFi — how attackers exploit atomic composability to manipulate prices, drain protocols, and hijack governance. Covers real exploits (Euler Finance, Beanstalk), oracle manipulation vectors, and battle-tested defense patterns with working Solidity code for TWAP oracles, timelocks, and circuit breakers.
Building a Decentralized Exchange (DEX) with Solidity
A complete guide to building a Uniswap V2 style automated market maker (AMM) DEX from scratch — factory, pair, and router contracts in Solidity. Covers constant product formula, liquidity provision, swap execution, fee collection, slippage protection, and comprehensive Foundry testing. Security-first approach based on real DeFi client work.
Vercel AI SDK: Streaming AI Responses in Next.js
A production guide to streaming AI responses in Next.js using the Vercel AI SDK with Claude as the provider. Covers useChat, useCompletion, streamText, tool calling, custom providers, error handling, token counting, and cost control. Based on real implementations where streaming cut perceived latency by 80% and tool calling replaced brittle prompt chains. Includes the exact patterns I use to ship AI features at iamuvin.com and in client projects.
Impermanent Loss Explained with Real Numbers and Math
Impermanent loss explained with actual dollar amounts, step-by-step math, and worked ETH/USDC examples. Learn exactly how much you lose, when IL gets dangerous, and strategies to minimize it as a liquidity provider.
Token Vesting Contracts: Implementation Guide
A complete guide to building token vesting contracts in Solidity — cliff vesting, linear vesting, multi-beneficiary schedules, and revocable vs irrevocable designs. Covers OpenZeppelin VestingWallet, custom extensions, Foundry testing, and frontend integration with wagmi. Based on real token launch work.
How to Build a Document Analysis System with Claude
A practical guide to building production document analysis with Claude — from PDF text extraction and vision-based OCR for scanned documents, to structured data extraction for invoices and contracts. Covers chunking strategies for large documents, confidence scoring, and the Next.js API architecture that ties it all together.
React Server Components: A Practical Guide for Real Projects
A hands-on guide to React Server Components from someone who uses them on every project. Covers the Server vs Client decision tree, data fetching patterns, composition strategies, streaming, and real performance numbers from EuroParts Lanka and iamuvin.com.
How to Build a Multi-Sig Wallet Smart Contract
A complete guide to building a production-grade multi-signature wallet smart contract in Solidity — from architecture and approval flows to execution logic and owner management. Includes a full working contract, Foundry test scenarios, and honest guidance on when to use Gnosis Safe instead of rolling your own.
Building AI-Powered Search for E-commerce Applications
How I built AI search systems that understand what customers actually mean — not just what they type. From EuroParts Lanka where customers describe car problems in plain language to FreshMart where shoppers search by recipe instead of ingredient. Semantic search, hybrid ranking, and the architecture that makes it work at production scale.
Automated Market Makers Explained: How AMMs Actually Work
A deep dive into automated market makers — the constant product formula, concentrated liquidity, impermanent loss with real numbers, and a Solidity AMM implementation from scratch.
wagmi and viem: The Modern Web3 Frontend Stack
A hands-on guide to building Web3 frontends with wagmi and viem — why I switched from ethers.js, how to set up wallet connections with RainbowKit, read and write contract data with full type safety, handle multi-chain configurations, and the real patterns I use on every client dApp. Based on production projects shipping on Ethereum, Arbitrum, Base, and Optimism.