GLIN SDK Overview
Welcome to the GLIN SDK documentation! This guide will help you build applications on GLIN Network using TypeScript or Rust.
🎯 What is GLIN SDK?
GLIN SDK is a comprehensive set of tools for interacting with GLIN Network, a decentralized AI training platform built on Substrate. Whether you're building a frontend app, backend service, CLI tool, or blockchain indexer, we have an SDK for you.
📦 Available SDKs
TypeScript/JavaScript SDK
Perfect for web applications and Node.js backends.
- Frontend: React, Vue, Svelte apps
- Backend: Node.js, Next.js API routes
- Features: Browser extension support, React hooks
- Repository: glin-ai/glin-sdk
Rust SDK
Ideal for high-performance tools and backend services.
- CLI Tools: Command-line utilities like glin-forge
- Indexers: High-performance blockchain indexers
- Backend: Rust backend services
- Features: Type-safe, zero-cost abstractions
- Repository: glin-ai/glin-sdk-rust
✨ Core Features
All GLIN SDKs provide these essential features:
Feature | TypeScript | Rust |
---|---|---|
Network Connection | ✅ | ✅ |
Account Management | ✅ | ✅ |
Contract Deployment | ✅ | ✅ |
Contract Interaction | ✅ | ✅ |
Transaction Handling | ✅ | ✅ |
Event Subscriptions | ✅ | ✅ |
Metadata Parsing | ✅ | ✅ |
Plus language-specific extensions:
- TypeScript: Browser extensions, React hooks
- Rust: CLI tools, high-performance indexing
🚀 Quick Start
Get started in 5 minutes:
- Installation → - Install the SDK for your language
- Quick Start → - Build your first app
- Examples → - Learn from working examples
🎓 Learning Path
For Frontend Developers
- Install TypeScript SDK
- Learn "Sign in with GLIN"
- Integrate with React
- Build a contract interaction UI
For Backend Developers
- Choose TypeScript or Rust
- Learn account management
- Build a blockchain indexer
- Deploy and interact with contracts
For CLI Tool Developers
- Install Rust SDK
- Learn async patterns
- Build a CLI tool
🔗 Network Endpoints
Connect to GLIN Network:
Testnet: wss://testnet.glin.ai
Mainnet: wss://rpc.glin.ai (coming soon)
Local: ws://localhost:9944
💬 Get Help
📄 License
All GLIN SDKs are open source under the Apache-2.0 license.