Skip to main content

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.

npm version

  • Frontend: React, Vue, Svelte apps
  • Backend: Node.js, Next.js API routes
  • Features: Browser extension support, React hooks
  • Repository: glin-ai/glin-sdk

Get Started with TypeScript →

Rust SDK

Ideal for high-performance tools and backend services.

Crates.io

  • 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

Get Started with Rust →

✨ Core Features

All GLIN SDKs provide these essential features:

FeatureTypeScriptRust
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:

  1. Installation → - Install the SDK for your language
  2. Quick Start → - Build your first app
  3. Examples → - Learn from working examples

🎓 Learning Path

For Frontend Developers

  1. Install TypeScript SDK
  2. Learn "Sign in with GLIN"
  3. Integrate with React
  4. Build a contract interaction UI

For Backend Developers

  1. Choose TypeScript or Rust
  2. Learn account management
  3. Build a blockchain indexer
  4. Deploy and interact with contracts

For CLI Tool Developers

  1. Install Rust SDK
  2. Learn async patterns
  3. 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.