Skip to content

Repository files navigation

⚡ SPECTRA v2

Frictionless AI-Orchestrated DeFi on Stellar


Built for Stellar Build Station Team License Status


React Stellar Soroban TypeScript JavaScript Sarvam AI Vite Styled Components Freighter Li.Fi


📋 Table of Contents

  1. The Vision
  2. Market Problem
  3. Business Model
  4. Architecture Overview
  5. The Architectural Transition
  6. AI Orchestration Engine
  7. Gasless Execution Layer
  8. Smart Contracts: Profile & NFT SaaS
  9. Exchange & Cross-Chain Bridge
  10. Frontend Architecture
  11. Project Structure
  12. Environment Setup
  13. Deployed Smart Contracts
  14. Blockchain Innovation
  15. Team Falcons

The Vision

Spectra v2 is a fully on-chain, AI-orchestrated DeFi operating system built on the Stellar blockchain. It allows users to express financial intent in plain language — "Swap 50 XLM for EURC" — and have an autonomous AI agent parse, validate, preview with live charts, and execute the transaction gaslessly on Stellar Testnet, all without the user ever writing a single piece of code or navigating a complex DEX UI.

The core thesis: The wallet is the platform. The agent is the interface. The blockchain is the backend.

graph TD
    A["User Types Intent in Any Language"] --> B["Sarvam AI 30B LLM"]
    B --> C{"Parse Intent"}
    C -->|swap| D["Stellar Path Payment"]
    C -->|bridge| E["Li.Fi Cross-Chain Aggregator"]
    C -->|mint| F["Soroban NFT Contract"]
    D --> G["Horizon Testnet"]
    E --> H["Base / EVM Chains"]
    F --> G
    G --> I["Gasless Fee-Bump Relay"]
    I --> J["Transaction Confirmed"]
    J --> K["Live Explorer Link in Chat"]
Loading

Market Problem

The DeFi space sits at a critical inflection point. Despite $50B+ in daily on-chain volume, retail adoption remains stubbornly low due to three hard blockers:

pie title DeFi User Drop-off Points (2024 Research)
    "Wallet/Gas Complexity" : 38
    "Confusing DEX UIs" : 27
    "Fear of Signing Transactions" : 21
    "Network/Asset Confusion" : 14
Loading

Core Pain Points

Problem Current Reality Spectra Solution
Gas Friction Users need XLM/ETH just to start Fee-Bump relay sponsors all fees
Intent Translation Users must know token symbols, slippage, AMM curves Sarvam AI parses natural language
Cross-Chain Complexity 4-6 manual bridge steps Single agent command routes through Li.Fi
Blind Signing Users sign without price context TradingView chart appears inline before confirmation
Account Abstraction Smart wallets require setup Freighter native + gasless relayer works day one

Market Opportunity

graph LR
    A["Global DeFi Market<br/>$100B+ TVL"] --> B["Retail-Accessible DeFi<br/>Currently < 5% users"]
    B --> C["Language-Native AI DeFi<br/>Spectra's Target"]
    C --> D["2.5B+ Multilingual<br/>Mobile Users in Emerging Markets"]
Loading

Emerging markets — India, Southeast Asia, Africa — represent the largest untapped DeFi audience. They're mobile-first, multilingual, and underserved by existing English-centric DeFi tooling. Spectra's Sarvam AI integration (built in India, optimized for Indic languages) speaks their language — literally.


Business Model

Spectra operates a Subscription-Gated SaaS model on-chain, where access tiers are tokenized as Stellar Classic Assets and verified through Soroban smart contracts — no centralized database required.

graph TD
    subgraph "Free Tier - Alpha"
        A1[Read-only Terminal]
        A2[Public Data Feeds]
        A3[10 Daily Agent Usages]
    end

    subgraph "Pro Tier - Vector [150 XLM/MO]"
        B1[Full Agent Execution]
        B2[Private Data Channels]
        B3[15 Daily Agent Usages]
        B4[AIPRO Token in Wallet]
    end

    subgraph "Enterprise Tier - Nexus [300 XLM/MO]"
        C1[Root Terminal Access]
        C2[Unlimited Data Pipelines]
        C3[30 Daily Agent Usages]
        C4[AIENT Token in Wallet]
        C5[Priority Relayer Routing]
    end

    User -->|Connect Freighter| Alpha
    Alpha --> |Mint AIPRO via Horizon| Vector
    Vector --> |Upgrade to AIENT via Horizon| Nexus
    Nexus -->|Return AIENT to Issuer| Vector
Loading

Tokenomic Flow

sequenceDiagram
    participant U as User Wallet
    participant SC as Spectra Frontend
    participant H as Horizon Testnet
    participant I as Issuer Account
    participant SB as Soroban (Profile)

    U->>SC: Click "Mint Subscription Badge"
    SC->>H: Load user account + sequence
    SC->>U: Sign ChangeTrust + Payment XDR (Freighter)
    U-->>SC: Signed XDR
    SC->>I: Co-sign with Issuer Secret
    I->>H: Submit multi-sig transaction
    H-->>U: 1.0 AIENT credited to wallet
    SC->>SB: Read profile & tier (Soroban RPC)
    SC-->>U: UI unlocked for Nexus tier
Loading

Revenue Streams:

  • Monthly subscription in XLM (deflationary utility)
  • Agent usage fees (per-query at scale)
  • Relayer fee margin (sponsored tx fees + small spread)
  • Cross-chain bridge aggregation commission (via Li.Fi fee structure)

Architecture Overview

Spectra v2 is built as a layered, modular architecture separating AI cognition, blockchain execution, and SaaS verification into distinct, composable layers.

graph TB
    subgraph UI["Presentation Layer (React + Styled Components)"]
        P1[Agent Terminal - GlassTerminal.jsx]
        P2[Exchange UI - SwapBox.jsx]
        P3[Mint Console - MintConsole.jsx]
        P4[Profile Dashboard]
        P5[Cross-Chain Selector]
    end

    subgraph AI["AI Orchestration Layer"]
        AI1[Sarvam AI 30B - Intent Parser]
        AI2[Multilingual NLP Engine]
        AI3[Intent Schema Validation]
        AI4[Retry + Rate Limit Manager]
    end

    subgraph EXEC["Execution Layer"]
        E1[Stellar Horizon - Path Payments]
        E2[Gasless Fee-Bump Relayer]
        E3[Li.Fi Bridge Aggregator]
        E4[Freighter Wallet Signing]
    end

    subgraph CHAIN["Soroban Smart Contract Layer"]
        SC1[SpectraProfile.sol - On-chain identity]
        SC2[NFT Contract - Tier badge verification]
        SC3[Soroban RPC Client]
    end

    subgraph SAAS["SaaS Verification Layer"]
        S1[Tier Verification via Horizon Balances]
        S2[AIENT / AIPRO Asset State Machine]
        S3[Rate Limit Context]
    end

    UI --> AI
    AI --> EXEC
    EXEC --> CHAIN
    CHAIN --> SAAS
    SAAS --> UI
Loading

The Architectural Transition

This section documents the critical engineering decision at the heart of Spectra v2: the migration from a fully Soroban-smart-contract-based execution model to a hybrid AI-orchestrated + relayer-aggregator model that preserves Soroban contracts only where they add irreplaceable value.

Phase 1: Original Architecture (Soroban-First)

In the original design, every on-chain action — swapping tokens, paying subscription fees, reading balances — was routed through Soroban smart contracts using the Stellar SDK's contract invocation client.

graph LR
    A[User Intent] --> B[Frontend]
    B --> C[Soroban Contract Invoke]
    C --> D[RPC Simulation]
    D --> E[Freighter Sign]
    E --> F[Submit via RPC]
Loading

Problems encountered:

  • Soroban SAC (Stellar Asset Contracts) were often unfunded or undeployed on Testnet
  • Error(WasmVm, MissingValue) — contract functions missing from deployed WASM
  • Error(Contract, #1) — re-entrant calls failing due to simulation vs actual state mismatch
  • Error(Contract, #10) — zero balance edge cases in SAC transfer operations
  • Soroban RPC simulation lag caused 3-8 second delays per operation

Phase 2: The Hybrid Pivot

After extensive debugging, the team made a deliberate, principle-driven architectural decision:

"Use Soroban smart contracts where they provide irreplaceable value (identity, SaaS proofs, NFT verification). Use Stellar's classical Horizon API for everything else — it is battle-tested, instant, and 100% reliable on Testnet."

graph TB
    subgraph BEFORE["Before: Everything Through Soroban"]
        B1[Swap] --> B2[SAC invoke_contract]
        B3[Balance] --> B4[SAC token.balance]
        B5[Mint NFT] --> B6[Soroban NFT.mint]
        B7[Profile] --> B8[Soroban Profile.create]
    end

    subgraph AFTER["After: Hybrid Model"]
        A1[Swap] --> A2[Horizon Path Payment]
        A3[Balance] --> A4[Horizon accounts API]
        A5[Mint SaaS Badge] --> A6[Horizon Classic Asset Payment]
        A7[Profile] --> A8[Soroban Profile.create ✓ Preserved]
        A9[NFT Verification] --> A10[Soroban NFT.user_token_id ✓ Preserved]
    end
Loading

Decision Matrix: What Stays on Soroban

Operation Soroban Horizon Classical Reason
User Profile (create/update/read) ✅ Preserved Censorship-resistant on-chain identity
NFT Tier Verification ✅ Preserved Tamper-proof badge ownership proof
Token Swaps (XLM/USDC/EURC) ❌ Removed ✅ Path Payment Faster, more reliable, less gas
XLM Balance Read ❌ Removed /accounts/{id} Instant, no simulation needed
Subscription Mint/Burn ❌ Removed ✅ Classic Asset Ops Simpler multi-sig pattern
Cross-Chain Bridge ❌ N/A ❌ N/A ✅ Li.Fi Aggregator

AI Orchestration Engine

The Sarvam AI 30B model serves as Spectra's cognitive core — the layer that translates raw human intent into structured, executable blockchain transactions.

sequenceDiagram
    participant U as User
    participant GT as GlassTerminal (React)
    participant SA as Sarvam AI 30B
    participant RL as Rate Limit Guard
    participant EXEC as Execution Engine

    U->>GT: "Swap 10 XLM for USDC" (any language)
    GT->>RL: Check rate limit (free tier: 10/day)
    RL-->>GT: Permitted
    GT->>SA: POST /v1/chat/completions
    Note over SA: Parse intent with 15s timeout<br/>2 retries with exponential backoff
    SA-->>GT: { action: "swap", amount: "10", token: "USDC" }
    GT->>GT: Render Intent Card
    GT->>GT: Show TradingView Chart (BINANCE:XLMUSDT)
    U->>GT: Click "Confirm Execution"
    GT->>EXEC: "Execute swap XLM to USDC"
    EXEC-->>GT: "{ hash: abc123... }"
    GT->>U: "Success + Stellar Expert Link"
Loading

Intent Schema

The AI engine outputs a strictly typed JSON object validated against a DeFi action schema:

{
  "action": "swap | mint | burn | bridge | transfer | stake | lend | borrow",
  "amount": "10",
  "token": "USDC"
}

Multilingual Support: The Sarvam 30B model natively processes prompts in Hindi, Marathi, Tamil, Spanish, French, German and returns structured English JSON regardless of input language — enabling DeFi access for billions of non-English speakers.

Rate Limiting Architecture

graph LR
    A[User Query] --> B{Tier Check}
    B -->|Alpha| C[10 queries/day]
    B -->|Vector| D[15 queries/day]
    B -->|Nexus| E[30 queries/day]
    C --> F[RateLimitContext]
    D --> F
    E --> F
    F --> G{Within Limit?}
    G -->|Yes| H[Sarvam API Call]
    G -->|No| I[Show Upgrade Prompt]
Loading

Gasless Execution Layer

Spectra's Gasless Relayer is one of its most significant blockchain innovations. Users on Testnet — and in production — never need to hold XLM specifically for gas fees.

Fee-Bump Transaction Pattern (CAP-0015)

sequenceDiagram
    participant U as User Wallet
    participant SC as Spectra Frontend
    participant R as Treasury Relayer
    participant H as Stellar Horizon

    U->>SC: Sign inner transaction (0 fee)
    SC->>R: Send signed XDR to relayer
    R->>R: Wrap in Fee-Bump transaction
    Note over R: Treasury account pays 120,000 stroops<br/>User pays ZERO gas
    R->>H: Submit FeeBump(treasury, inner_tx)
    H-->>R: Transaction confirmed
    R-->>SC: { hash, status: "SUCCESS" }
    SC-->>U: Explorer link in chat
Loading

Implementation: gaslessExecution.ts

// Wraps any user-signed XDR in a Stellar Fee-Bump transaction
export async function relayGaslessTransaction(signedXdr: string): Promise<GaslessRelayResult> {
  const feeBumpTx = TransactionBuilder.buildFeeBumpTransaction(
    treasuryKeypair,
    '120000', // 0.012 XLM sponsored per transaction
    innerTransaction,
    networkPassphrase
  );
  feeBumpTx.sign(treasuryKeypair);
  return await server.submitTransaction(feeBumpTx);
}

This leverages Stellar's native CAP-0015 Fee-Bump mechanism — no custom relay contracts, no L2 infrastructure, no trusted intermediary smart contracts. Pure protocol-level account abstraction.


Smart Contracts: Profile & NFT SaaS

While execution was migrated to classical Stellar, two Soroban contracts remain as the trust anchors of the Spectra platform:

1. SpectraProfile — On-Chain Identity

graph TD
    A[User Connects Freighter] --> B[createProfile / updateProfile]
    B --> C[Soroban RPC Simulation]
    C --> D[User Signs XDR]
    D --> E[Relayer Submits via Fee-Bump]
    E --> F[Profile Stored on Soroban]
    F --> G[Profile readable by any dApp]

    style F fill:#7B2FBE,color:#fff
Loading

The Profile contract stores:

  • name, email, phone, bio — user identity
  • avatarId — chosen avatar (0-9)
  • exists — boolean flag for first-time creation gating

Contract Address (Testnet): CAIVPYSHCJTMYFOCLLNJXY33377SWJLEIIYQY53UFSU6HJDTEVMATCIJ
Contract Address (Mainnet): CAX2HIJ7DMKQV6W2T3O7I2C2KN24EEWVOHNJRXS6KT7OLAHD3ETDEOLP

Why Soroban for Profile? Because on-chain identity is the one data type that must be censorship-resistant, universally readable by any Stellar dApp, and provably owned by the wallet. A Horizon asset can't store structured data. A database can be deleted. A Soroban contract cannot.

2. NFT Contract — SaaS Tier Verification

The NFT contract provides cryptographic proof of subscription tier ownership:

graph LR
    A[Freighter Wallet] -->|Has 1.0 AIENT| B[Tier = 2 Nexus]
    A -->|Has 1.0 AIPRO| C[Tier = 1 Vector]
    A -->|Neither| D[Tier = 0 Alpha]
    B --> E[Soroban NFT.user_token_id]
    E --> F[Badge Unlocked in UI]
    D --> G[Upgrade Prompt]
Loading

Verification Flow:

sequenceDiagram
    participant F as Frontend
    participant H as Horizon Testnet
    participant SB as Soroban NFT

    F->>H: GET /accounts/{publicKey}
    H-->>F: Account balances[]
    F->>F: Find AIENT or AIPRO balance from issuer
    F->>SB: readContract(NFT, "user_token_id", [address])
    SB-->>F: tokenId (u32)
    F->>F: Render locked/unlocked badge state
Loading

Why Hybrid? Tier verification stays on Soroban (tamper-proof). Tier minting uses classical Horizon multi-sig asset payments (reliable, instant, no simulation errors).

NFT Contract Address (Testnet): CDBW7YZY4IPEDIBUP6WNHAAKNNGN5GGQBQZ3NXAVACMRBFC33IVTKW4X
NFT Contract Address (Mainnet): CAKTKA6XVEPVK3NSDPJMHGH3NVAS4NMCYQECKJDLS5HBEFQXBJH6HLJC
SaaS Contract Address (Testnet): CCTD2FI3HP6EBBYOYBYJUENVOFYND7Q42HMSYLQ6LWN3GIC7YDF4S3YS
SaaS Contract Address (Mainnet): CA5OG7UIOGTZSB7E4JZTK7L5G65LVQCY2B2SETJSKR7CNQFSKMCOHMOF


Exchange & Cross-Chain Bridge

On-Chain Swap via Stellar Path Payment

The exchange engine uses Stellar's native Horizon Path Payment Strict Send — the most efficient on-chain swap primitive available:

graph LR
    A[User: Swap 10 XLM for USDC] --> B[strictSendPaths API]
    B --> C{Find Liquidity Paths}
    C -->|Path found| D[pathPaymentStrictSend Operation]
    C -->|No path| E[Error: No Liquidity]
    D --> F[Freighter Signs]
    F --> G[Horizon Submits]
    G --> H[USDC credited to wallet]
Loading

Supported Assets (Testnet):

Asset Type Identifier SAC Contract
XLM Native native CDLZFC3SYJYDZT7K67VZ75HPJVIEUVNIXF47ZG2FB2RMQQVU2HHGCYSC
USDC Classic USDC:GBBD47... CCW67CDAYNMDVWZVKX6BPPX6FUI4NSI6QL6N6HWM6Z7S6TWXA7YAC4K5
EURC Classic EURC:GB3Q6... CCUUDM434BMZMYWYDITHFXHDMIVTGGD6T2I5UKNX5BSLXLW7HVR4MCGZ

Cross-Chain Bridge Architecture

graph TB
    A["User: Bridge 50 XLM to Base"] --> B["GlassTerminal Agent"]
    B --> C["bridgeToEvm function"]
    C --> D["Li.Fi Aggregator API"]
    D --> E{"Route Discovery"}
    E --> F["Stellar to Base-Sepolia"]
    F --> G["Wormhole / LayerZero / Stargate"]
    G --> H["EVM Wallet receives asset"]

    subgraph Chains["Registered Chains"]
        R1["Stellar Testnet"]
        R2["Base Sepolia"]
        R3["Arbitrum Sepolia"]
        R4["Optimism Sepolia"]
    end

    D --> R1
    D --> R2
Loading

Li.Fi Integration: lib/bridge/lifiAggregator.js — queries Li.Fi's aggregation API to discover optimal cross-chain routes across all major bridges, returning best-price paths without the user needing to know which bridge protocol is used.


Frontend Architecture

Spectra's UI is built on a Neobrutalist × Dark Glass design system — a deliberate aesthetic that signals technical credibility while remaining visually arresting.

graph TD
    subgraph AppShell["App Shell"]
        A["React Router v6"]
        B["AuthContext - Wallet and Profile State"]
        C["ErrorContext - Global Error Boundary"]
        D["RateLimitContext - Agent Usage Tracking"]
    end

    subgraph Pages["Pages"]
        P1["/home - 3D Spline Landing"]
        P2["/agent - AI Terminal"]
        P3["/exchange - Swap and Bridge"]
        P4["/mint - Subscription NFT Engine"]
        P5["/profile - On-chain Identity"]
        P6["/journal - Transaction History"]
        P7["/about - Manifesto"]
    end

    subgraph Components["Key Components"]
        C1["GlassTerminal - AI Chat and Intent Execution"]
        C2["SwapBox - DEX Interface"]
        C3["MintConsole - SaaS Badge Minting"]
        C4["PricingMatrix - Tier Comparison"]
        C5["CrossChainSelector - Bridge UI"]
        C6["ProfileDashboard - On-chain Profile CRUD"]
    end

    A --> B
    B --> C
    C --> D
    A --> P1
    A --> P2
    A --> P3
    A --> P4
    A --> P5
    A --> P6
    A --> P7
    P2 --> C1
    P3 --> C2
    P3 --> C5
    P4 --> C3
    P4 --> C4
    P5 --> C6
Loading

Design System

  • Typography: Geist + Geist Mono (Vercel's typeface, perfect for terminal aesthetics)
  • Color Language: Deep blacks (#0A0A0C), electric violet (#B026FF), emerald success (#10B981)
  • Glassmorphism: backdrop-filter: blur(16px) panels with translucent borders
  • Animation: Keyframe geometric spinners, pulse glows for active states
  • Charts: TradingView embedded widget — live market data before every trade confirmation

Project Structure

spectrav2/
├── src/
│   ├── api/
│   │   ├── sarvamAgent.js          # Sarvam 30B intent parser (NLP → JSON)
│   │   └── x402Client.ts           # HTTP 402 payment protocol client
│   │
│   ├── config/
│   │   └── contracts.js            # SAC addresses, network config, token decimals
│   │
│   ├── context/
│   │   ├── AuthContext.jsx          # Wallet state, tier, profile, upgradeTier/cancelTier
│   │   ├── ErrorContext.jsx         # Global error boundary + dialog
│   │   └── RateLimitContext.jsx     # Agent usage rate tracking per tier
│   │
│   ├── lib/
│   │   ├── stellar/
│   │   │   ├── client.js            # Soroban RPC client + contract invoker
│   │   │   ├── gaslessExecution.ts  # CAP-0015 Fee-Bump relayer
│   │   │   ├── relayer.js           # Relay routing utilities
│   │   │   └── contracts/
│   │   │       ├── profile.js       # Soroban SpectraProfile read/write
│   │   │       ├── nft.js           # Soroban NFT mint/burn/verify
│   │   │       ├── exchange.js      # Horizon Path Payment swap
│   │   │       ├── token.js         # Soroban token balance reader
│   │   │       ├── bridge.js        # EVM bridge initiation
│   │   │       └── feedback.js      # On-chain feedback contract
│   │   │
│   │   └── bridge/
│   │       ├── lifiAggregator.js    # Li.Fi multi-chain bridge aggregator
│   │       ├── intentParser.js      # Bridge-specific intent parser
│   │       └── registryService.js   # Supported chain + token registry
│   │
│   ├── services/
│   │   ├── mintAsset.js             # Horizon multi-sig mint/burn transactions
│   │   └── tierVerification.js      # Horizon balance → tier level resolver
│   │
│   ├── components/
│   │   ├── agent/
│   │   │   └── GlassTerminal.jsx    # Full AI agent chat + execution terminal
│   │   ├── exchange/
│   │   │   ├── SwapBox.jsx          # Token swap UI
│   │   │   └── CrossChainSelector.jsx # Bridge chain/token selector
│   │   ├── mint/
│   │   │   ├── MintConsole.jsx      # Badge mint/cancel interface
│   │   │   └── PricingMatrix.jsx    # Tier comparison card grid
│   │   └── layout/
│   │       └── ErrorDialog.jsx      # Glassmorphic error alert modal
│   │
│   └── pages/
│       ├── Agent.jsx                # /agent route wrapper
│       ├── Exchange.jsx             # /exchange — swap + TradingView charts
│       ├── Mint.jsx                 # /mint route wrapper
│       ├── ProfileDashboard.jsx     # /profile — Soroban identity CRUD
│       ├── Journal.jsx              # /journal — transaction log
│       ├── About.jsx                # Project manifesto
│       └── Home.jsx                 # Landing (3D Spline scene)
│
├── contracts/
│   └── src/
│       └── SpectraProfile.sol       # Solidity reference (Soroban Rust version deployed)
│
├── scripts/
│   └── setup-issuer.js              # Issuer account funding + trustline setup
│
├── .env.example                     # All required env variables documented
└── vite.config.js                   # Vite + proxy config (Sarvam AI CORS bypass)

Environment Setup

# Clone
git clone https://github.com/Precise-Goals/Spectrav2.git
cd Spectrav2

# Install
bun install

# Configure
cp .env.example .env

Required Environment Variables

Variable Description Example
VITE_SARVAM_API_KEY Sarvam AI subscription key sarvam_...
VITE_STELLAR_RPC_URL Soroban RPC endpoint https://soroban-testnet.stellar.org
VITE_STELLAR_HORIZON_URL Horizon API base https://horizon-testnet.stellar.org
VITE_STELLAR_NETWORK_PASSPHRASE Network passphrase Test SDF Network ; September 2015
VITE_PROFILE_CONTRACT_ID SpectraProfile Soroban ID (Testnet) CAIVPYSHCJTMYFOCLLNJXY33377SWJLEIIYQY53UFSU6HJDTEVMATCIJ
VITE_SAAS_CONTRACT_ID SaaS Subscription Contract ID (Testnet) CCTD2FI3HP6EBBYOYBYJUENVOFYND7Q42HMSYLQ6LWN3GIC7YDF4S3YS
VITE_NFT_CONTRACT_ID NFT Membership Contract ID (Testnet) CDBW7YZY4IPEDIBUP6WNHAAKNNGN5GGQBQZ3NXAVACMRBFC33IVTKW4X
VITE_EXCHANGE_CONTRACT_ID Exchange Router Contract ID (Testnet) CD5TDYCBYOFRGYATA3RXOQRV4THQKMSGF7IL32RXW7JKSCJFJFGGSTHP
VITE_STELLAR_FEEDBACK_CONTRACT Feedback Contract ID (Testnet) CC3IK6Q2JMANZI7Z44HP2YK65XACFAPD43S2ASPLXPGBA4VFFXBZWTQP
VITE_STELLAR_BRIDGE_CONTRACT Bridge Contract ID (Testnet) CAZ7LB5RJW2VLZDAZQVBRYFYONDX7LQNZ43Z3E7XO6UGXKYZXXDM6W6J
VITE_SAAS_ISSUER_PUBLIC_KEY SaaS asset issuer G-address GCD4U6CSLLVD6MC7EIDOPVBZ3PJUHDEUAM75RB5ZKZLIBG57OP5ZZQO4
VITE_SAAS_ISSUER_SECRET_KEY Issuer signing key (backend) S...
VITE_STELLAR_TREASURY_SECRET Gasless relayer treasury S...
VITE_STELLAR_SAC_XLM XLM SAC contract address CDLZFC3SYJYDZT7K67VZ75HPJVIEUVNIXF47ZG2FB2RMQQVU2HHGCYSC
VITE_STELLAR_SAC_USDC USDC SAC contract address CCW67CDAYNMDVWZVKX6BPPX6FUI4NSI6QL6N6HWM6Z7S6TWXA7YAC4K5
VITE_STELLAR_SAC_EURC EURC SAC contract address CCUUDM434BMZMYWYDITHFXHDMIVTGGD6T2I5UKNX5BSLXLW7HVR4MCGZ
# Run development server
bun dev

# Production build
bun run build

Deployed Smart Contracts

Spectra v2 smart contracts are deployed and verified on both Stellar Testnet and Stellar Mainnet. Below are the official contract addresses from our deployment environment:

Soroban Smart Contracts

Contract Name Description Testnet Address Mainnet Address
SpectraProfile On-chain Identity & Profile Storage CAIVPYSHCJTMYFOCLLNJXY33377SWJLEIIYQY53UFSU6HJDTEVMATCIJ CAX2HIJ7DMKQV6W2T3O7I2C2KN24EEWVOHNJRXS6KT7OLAHD3ETDEOLP
SaaS Subscription Subscription Management & Tiers CCTD2FI3HP6EBBYOYBYJUENVOFYND7Q42HMSYLQ6LWN3GIC7YDF4S3YS CA5OG7UIOGTZSB7E4JZTK7L5G65LVQCY2B2SETJSKR7CNQFSKMCOHMOF
NFT Verification NFT Membership Tier Verification CDBW7YZY4IPEDIBUP6WNHAAKNNGN5GGQBQZ3NXAVACMRBFC33IVTKW4X CAKTKA6XVEPVK3NSDPJMHGH3NVAS4NMCYQECKJDLS5HBEFQXBJH6HLJC
Exchange Router On-chain Swap & Trade Execution CD5TDYCBYOFRGYATA3RXOQRV4THQKMSGF7IL32RXW7JKSCJFJFGGSTHP CBM2FZ6G4MPP44CDPXOOZOEAX7VUQQ2SKFY3GVY6BPCXFQTXQEK3IBUE
Stellar Feedback Decentralized Reviews & Ratings CC3IK6Q2JMANZI7Z44HP2YK65XACFAPD43S2ASPLXPGBA4VFFXBZWTQP CCPE6UP2OZFANSEHX4TX74SLR6MF5NZVLWI6FBKNEKRD63V7ZPEBDI5N
Stellar Bridge Cross-chain Asset Bridging CAZ7LB5RJW2VLZDAZQVBRYFYONDX7LQNZ43Z3E7XO6UGXKYZXXDM6W6J N/A

Stellar Asset Contracts (SAC) — Testnet

Token / Asset SAC Contract Address Type / Issuer
XLM CDLZFC3SYJYDZT7K67VZ75HPJVIEUVNIXF47ZG2FB2RMQQVU2HHGCYSC Native (native)
USDC CCW67CDAYNMDVWZVKX6BPPX6FUI4NSI6QL6N6HWM6Z7S6TWXA7YAC4K5 Classic (USDC:GA5ZSEJYB37JRC5AVCIA5MOP4RHTM335X2KGX3IHOJAPP5RE34K4KZVN)
EURC CCUUDM434BMZMYWYDITHFXHDMIVTGGD6T2I5UKNX5BSLXLW7HVR4MCGZ Classic (EURC:GB3Q6...)

Blockchain Innovation

What Makes Spectra Architecturally Unique

graph TD
    subgraph "Innovation 1: Gasless UX"
        I1A[User signs tx with 0 fee] --> I1B[Treasury fee-bumps via CAP-0015]
        I1B --> I1C[User never needs gas tokens]
    end

    subgraph "Innovation 2: AI-First DeFi"
        I2A[Natural language input] --> I2B[Sarvam 30B parses intent]
        I2B --> I2C[Typed tx parameters extracted]
        I2C --> I2D[Chart preview before signing]
    end

    subgraph "Innovation 3: Hybrid Contract Model"
        I3A[Profile + NFT: Soroban] --> I3B[Censorship-resistant identity]
        I3C[Swaps + Balances: Horizon] --> I3D[Zero simulation errors]
        I3E[Subscriptions: Classic Assets] --> I3F[Instant multi-sig mint/burn]
    end

    subgraph "Innovation 4: Multilingual Web3"
        I4A[Hindi / Marathi / Tamil] --> I4B[Sarvam AI understands]
        I4B --> I4C[Returns English JSON tx]
        I4C --> I4D[DeFi for 2.5B+ users]
    end
Loading

Comparison with Existing Solutions

Feature Spectra v2 Uniswap MetaMask Swaps Squid Router
Natural Language Input ✅ Any language
Gasless Execution ✅ Fee-Bump relay
On-chain Identity ✅ Soroban Profile
SaaS on Blockchain ✅ Tokenized tiers
Chart Before Sign ✅ Inline TradingView Separate tab
Cross-Chain Bridge ✅ Li.Fi aggregator Partial
Multilingual NLP ✅ Sarvam 30B

Team Falcons

Built for Stellar Build Station Pune — India's premier Stellar hackathon event.

graph LR
    T[Team Falcons] --> S1[Full-Stack Development]
    T --> S2[Blockchain Architecture]
    T --> S3[AI / NLP Integration]
    T --> S4[Product Design]
    T --> S5[Smart Contract Engineering]

    S1 --> P[Spectra v2]
    S2 --> P
    S3 --> P
    S4 --> P
    S5 --> P
Loading

Team Falcons is a group of builders passionate about the intersection of AI and decentralized finance. We believe the next billion DeFi users won't come from Silicon Valley — they'll come from Mumbai, Pune, Bangalore, and beyond. They speak Hindi. They don't know what a gas fee is. And they deserve access to the same financial primitives as anyone else.

Spectra is our answer.


Technical Acknowledgements

Stellar — For CAP-0015 Fee-Bump transactions enabling gasless UX

Sarvam AI — For India-native multilingual LLM powering the agent

Li.Fi — For cross-chain route discovery and aggregation

TradingView — For inline pre-trade market context

Freighter — For native Stellar signing integration


Built with ⚡ by Team Falcons

Stellar Build Station Pune · 2026

GitHub

About

We are completely deprecating the legacy Falitric code and pivoting fully to Spectra - a unified, high-fidelity platform that integrates a decentralized asset exchange, an autonomous agentic wallet, and an exclusive subscription-gated NFT minting protocol.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages