0G SDK Walkthrough I Udhaykumar Balakrishnan
Thu, Oct 2, 2025, 12:00 AM
Udhaykumar Balakrishnan presents a hands-on walkthrough of the 0G SDK, showing developers how to integrate decentralized storage and compute into their applications. This tutorial covers both the 0G Storage SDK for uploading and downloading files across a global decentralized network, and the 0G Compute SDK for running AI inference on a decentralized marketplace of models. The session begins with an introduction to 0G Storage, explaining how it provides fast, secure, horizontally scalable storage designed for AI workloads. Using the TypeScript starter kit, Udhaykumar demonstrates how to set up the SDK, configure RPCs and private keys, upload files with a root hash identifier, and download them from the network. Developers learn how the SDK handles chunking, Merkle trees, and verifiability checks seamlessly. In the second half, the workshop dives into 0G Compute, a decentralized AI marketplace where providers can list models and users can query them without API keys or subscriptions. Udhaykumar walks through the starter kit, shows how to set up a broker and ledger, list available models like Llama 3.3 and DeepSeek, and run inference queries with verifiable results. The tutorial also demonstrates balance checks, funding, and refunds directly through the SDK. With clear code examples, live demos, and references to documentation and starter kits, this walkthrough provides everything developers need to start building dApps and AI-powered projects on 0G. 00:02 Introduction to 0G SDK 00:49 What is 0G Storage? Decentralized storage overview 01:13 Developer hub & SDK options (Go & TypeScript) 01:34 Cloning and using the TypeScript starter kit 02:27 Client setup with RPCs, signer & indexer 02:52 ZGFile for uploads & indexing explained 03:41 Uploading files with root hash identifiers 04:26 Downloading & verifying files 04:47 Environment setup: RPCs, private keys & tokens 05:16 Running the server & Swagger endpoints 05:44 Upload demo with example file (panda image) 06:04 Using root hash for file retrieval 06:50 File successfully uploaded & downloaded 07:22 Transition to 0G Compute SDK 07:46 What is 0G Compute? Decentralized AI marketplace 08:07 SDK setup & starter kit walkthrough 08:49 Installing dependencies & initializing broker 09:33 Creating ledger accounts & funding 09:55 Listing available AI services (Llama 3.3, DeepSeek) 10:18 Acknowledging providers & retrieving metadata 10:41 Running inference queries with headers & endpoints 11:02 Verifying responses & fee settlement 11:42 Live demo of compute SDK & Swagger endpoints 12:30 Listing AI services & provider addresses 13:36 Running inference with DeepSeek model 13:56 Closing: links, docs & happy building _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 🇮🇳 *ETHGlobal New Delhi* This workshop is specifically for ETHGlobal New Delhi, a 3-day hackathon held September 19-21 at the India International Convention & Expo Centre, bringing together the most skilled web3 developers, designers and product builders from all around the globe for a weekend-long adventure to advance the Ethereum ecosystem! Watch the full ETHGlobal New Delhi 2025 playlist here: https://www.youtube.com/playlist?list=PLXzKMXK2aHh7zCFW3hBqatZ18rQaYeEJL _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ✅ *Follow 0g* X: https://x.com/0G_labs ✅ *Follow ETHGlobal* X: https://x.com/ETHGlobal Warpcast: https://warpcast.com/ethglobal Website: https://ethglobal.com YouTube: https://www.youtube.com/c/ETHGlobal _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _Are you interested in Ethereum development and entrepreneurship?_ 👉 Sign up for the next ETHGlobal event: https://ethglobal.com/events 🎁 Get exclusive access and perks with ETHGlobal Plus! https://ethglobal.com/plus 📣 Want us to throw an event in your city? Tell us where! https://ethglobal.com/city