Skip to content

LumeraProtocol/sdk-go

Repository files navigation

Lumera Go SDK

Official Go SDK for the Lumera Protocol - a next-generation blockchain platform for AI and decentralized storage.

Features

  • 🔗 Unified APIs — Single interface unifying Lumera gRPC, SuperNode SDK, and SnApi
  • 📦 Type-Safe — Full Go type definitions for all Lumera modules
  • 🚀 High-Level API — Simple methods for complex operations
  • 🔐 Secure — Built on Cosmos SDK's proven cryptography
  • 📝 Well-Documented — Comprehensive examples and documentation

Unified APIs

This SDK unifies three distinct Lumera interfaces behind one easy client:

Installation

go get github.com/LumeraProtocol/sdk-go

Quick Start

package main

import (
    "context"
    "log"
    
    "github.com/cosmos/cosmos-sdk/crypto/keyring"
    lumerasdk "github.com/LumeraProtocol/sdk-go/client"
)

func main() {
    ctx := context.Background()
    
    // Initialize keyring (for queries-only flows, any key name/address placeholders are fine)
    kr, err := keyring.New("lumera", "test", "/tmp", nil)
    if err != nil {
        log.Fatal(err)
    }
    
    // Create client
    client, err := lumerasdk.New(ctx, lumerasdk.Config{
        ChainID:  "lumera-testnet-2",
        GRPCAddr: "localhost:9090",
        Address:  "lumera1abc...",
        KeyName:  "my-key",
    }, kr)
    if err != nil {
        log.Fatal(err)
    }
    defer client.Close()
    
    // Query an action via Lumera gRPC API
    action, err := client.Blockchain.Action.GetAction(ctx, "action-123")
    if err != nil {
        log.Fatal(err)
    }
    
    log.Printf("Action: %+v", action)
}

Note: For Cascade file operations (SuperNode SDK + SnApi), see:

Examples

See the examples directory for complete working examples:

Documentation

Development

# Clone the repository
git clone https://github.com/LumeraProtocol/sdk-go.git
cd sdk-go

# Install dependencies
go mod download

# Run tests
make test

# Run linters
make lint

# Build examples
make examples

Contributing

Contributions are welcome! Please read our Contributing Guide for details.

License

Apache 2.0 - see LICENSE file for details.

Links

About

Official Go SDK for Lumera Protocol

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published