0G SDK Walkthrough
summary
Hands-on SDK walkthrough that actually builds and runs: clones the TypeScript starter kit, configures RPCs, signer and indexer, uploads a panda image, receives a root hash identifier plus a chain transaction, then downloads and verifies the file end-to-end. On compute it initializes a broker and ledger, auto-funds an account, lists services (including Llama 3.3 and DeepSeek), acknowledges providers, fetches auth headers, sends inference queries, verifies responses, and shows fee settlement and refund flows working in the live Swagger demos.
AI-written summary · about
chapters (27)
- 0:00Start
- 0:02Introduction to 0G SDK
- 0:49What is 0G Storage? Decentralized storage overview
- 1:13Developer hub & SDK options (Go & TypeScript)
- 1:34Cloning and using the TypeScript starter kit
- 2:27Client setup with RPCs, signer & indexer
- 2:52ZGFile for uploads & indexing explained
- 3:41Uploading files with root hash identifiers
- 4:26Downloading & verifying files
- 4:47Environment setup: RPCs, private keys & tokens
- 5:16Running the server & Swagger endpoints
- 5:44Upload demo with example file (panda image)
- 6:04Using root hash for file retrieval
- 6:50File successfully uploaded & downloaded
- 7:22Transition to 0G Compute SDK
- 7:46What is 0G Compute? Decentralized AI marketplace
- 8:07SDK setup & starter kit walkthrough
- 8:49Installing dependencies & initializing broker
- 9:33Creating ledger accounts & funding
- 9:55Listing available AI services (Llama 3.3, DeepSeek)
- 10:18Acknowledging providers & retrieving metadata
- 10:41Running inference queries with headers & endpoints
- 11:02Verifying responses & fee settlement
- 11:42Live demo of compute SDK & Swagger endpoints
- 12:30Listing AI services & provider addresses
- 13:36Running inference with DeepSeek model
- 13:56Closing: links, docs & happy building
related talks
27mBeginner Workshop, Building a dapp Quickly
25msub0 Asia 2024 - Jonathan Dunne (Talisman)
10mGet to Market Faster with Blockchain Links
05mThe Paradigm Shift to Verifiable Computing and Self Sovereign ID
33mDay 1 13 Jason Mayes
07h 09mDay 1
39mSelf-Sovereign Identity: How Will it Look in Practice?
29mNODL: How to set up a node
