0G SDK Walkthrough
summary
Step‑by‑step walkthrough shows how to wire the 0G SDKs into an app using TypeScript/Go starter kits and Swagger UI, create RPC/private‑key clients, build Merkle trees and return a Merkle tree root hash on upload, then download and verify the panda image by that root hash; the Compute demo creates and funds a ledger, lists Llama 3.3 and DeepSeek, obtains provider headers, sends queries and verifies responses, and exercises a pay‑per‑use ledger with refunds that actually completes and returns balances.
AI-written summary · about
chapters (16)
- 0:00Introduction to 0G Storage (Decentralized, Fast, Scalable)
- 0:58Setting Up 0G Storage SDK (TypeScript/Go Starter Kits)
- 2:14Swagger vs CLI Implementation Options
- 2:49SDK Client Setup (RPC, Private Key, Indexer Configuration)
- 3:24File Upload Process (Merkle Tree, Root Hash Generation)
- 4:01File Download & Verification
- 4:35Live Demo: Uploading/Downloading Files (Panda Image Example)
- 6:52Conclusion & Advanced Usage
- 7:52Introduction to 0G Compute (Decentralized AI Marketplace)
- 8:15SDK Setup & Starter Kit (REST API vs CLI)
- 9:19Ledger Account Creation & Funding
- 9:51Listing Available AI Models (Llama 3.3, DeepSeek)
- 10:24Model Authentication & Metadata Retrieval
- 10:58Sending Queries & Verifying Responses
- 11:32Live Demo: Querying DeepSeek LLM via Swagger UI
- 13:49Balance Management & Refunds








