Skip to content

VALINA Wallet

❌ Down vunknown πŸ‘€ Blockchain Team

Overview

Multi-chain wallet service for managing GRAT tokens and blockchain interactions across the ecosystem.

Provides wallet functionality for users and services to manage digital assets, sign transactions, and interact with Valina Chain.

πŸ“¦ Source Repository


Key Features

  • Multi-chain support

  • GRAT token management

  • Transaction signing

  • Key management

  • Hardware wallet integration


Architecture

Secure enclave-based key management with HSM integration. Supports Ethereum, Solana, and custom chains

System Overview

%%{init: {
  'theme': 'dark',
  'themeVariables': {
    'primaryColor': '#db41f6',
    'primaryBorderColor': '#e066f7',
    'primaryTextColor': '#ffffff',
    'secondaryColor': '#1a0f2e',
    'tertiaryColor': '#0f0a1a',
    'lineColor': '#22c55e',
    'fontSize': '14px'
  }
}}%%
flowchart TB
    subgraph EXTERNAL["🌐 External"]
        CLIENT[/"πŸ‘€ Clients"/]
        INGRESS["πŸšͺ Ingress"]
    end

    subgraph NS["valina Namespace"]
        direction TB
        subgraph SVC["πŸ“¦ VALINA Wallet"]
            DEPLOY["βš™οΈ Deployment<br/>0 replicas"]
        end
    end

    subgraph DATA["πŸ’Ύ Data Layer"]
        DB0["⚑ Redis (session cache)"]
    end

    subgraph EXT["πŸ”— External Services"]
        EXT0["☁️ Ethereum RPC"]
        EXT1["☁️ Solana RPC"]
        EXT2["☁️ IPFS"]
        EXT3["☁️ Alchemy"]
    end

    CLIENT --> INGRESS --> DEPLOY
    DEPLOY --> DATA
    DEPLOY --> EXT

Component Architecture

%%{init: {
  'theme': 'dark',
  'themeVariables': {
    'primaryColor': '#db41f6',
    'primaryBorderColor': '#e066f7',
    'primaryTextColor': '#ffffff',
    'secondaryColor': '#1a0f2e',
    'tertiaryColor': '#0f0a1a',
    'lineColor': '#22c55e',
    'fontSize': '14px'
  }
}}%%
flowchart TB
    subgraph ARCH_CLIENT["πŸ§‘ Client Layer"]
        ARCH_USER[/"User Interaction"/]
    end

    subgraph ARCH_CORE["πŸ’Ž VALINA Wallet Core"]
        direction TB
        subgraph ARCH_FEATURES["✨ Features"]
            ARCH_F0["Multi-chain support"]
            ARCH_F1["GRAT token management"]
            ARCH_F2["Transaction signing"]
            ARCH_F3["Key management"]
            ARCH_F4["Hardware wallet integration"]
        end

        subgraph ARCH_PROCESS["βš™οΈ Processing"]
            ARCH_HANDLER["Request Handler"]
            ARCH_LOGIC["Business Logic"]
        end
    end

    subgraph ARCH_DATA["πŸ’Ύ Data Layer"]
        ARCH_DB0["Redis (session cache)"]
    end

    ARCH_USER --> ARCH_CORE
    ARCH_HANDLER --> ARCH_LOGIC
    ARCH_LOGIC --> ARCH_DATA

Container Details

Property Value
Image 3xzyle/valina-wallet:v1.0.0
Replicas 0 / 0 ready
CPU Request 100m
CPU Limit 500m
Memory Request 128Mi
Memory Limit 512Mi

Volume Mounts

Volume Mount Path
wallet-keys β†’ /app/keys
wallet-data β†’ /app/data

Flows and Processes

Process Flow

%%{init: {
  'theme': 'dark',
  'themeVariables': {
    'primaryColor': '#db41f6',
    'primaryBorderColor': '#e066f7',
    'primaryTextColor': '#ffffff',
    'secondaryColor': '#1a0f2e',
    'tertiaryColor': '#0f0a1a',
    'lineColor': '#22c55e',
    'fontSize': '14px'
  }
}}%%
flowchart LR
    subgraph FLOW_IN["πŸ“₯ Input"]
        BC_TX["πŸ“ Transaction"]
        BC_WALLET["πŸ‘› Wallet"]
        BC_CHAIN["⛓️ Chain Data"]
    end

    subgraph FLOW_PROC["βš™οΈ Processing"]
        BC_SIGN["πŸ” Sign"]
        BC_VALIDATE["βœ… Validate"]
        BC_SUBMIT["πŸ“€ VALINA Wallet Submit"]
        BC_CONFIRM["⏳ Confirm"]
    end

    subgraph FLOW_OUT["πŸ“€ Output"]
        BC_RECEIPT["βœ… Receipt"]
        BC_BALANCE["πŸ’° Balance"]
        BC_HISTORY["πŸ“œ History"]
    end

    BC_TX --> BC_SIGN
    BC_WALLET --> BC_SIGN
    BC_CHAIN --> BC_VALIDATE
    BC_SIGN --> BC_VALIDATE --> BC_SUBMIT --> BC_CONFIRM
    BC_CONFIRM --> BC_RECEIPT
    BC_CONFIRM --> BC_BALANCE
    BC_CONFIRM --> BC_HISTORY

Request Lifecycle

%%{init: {
  'theme': 'dark',
  'themeVariables': {
    'primaryColor': '#db41f6',
    'primaryBorderColor': '#e066f7',
    'primaryTextColor': '#ffffff',
    'secondaryColor': '#1a0f2e',
    'tertiaryColor': '#0f0a1a',
    'lineColor': '#22c55e',
    'fontSize': '14px'
  }
}}%%
sequenceDiagram
    autonumber
    participant C as πŸ‘€ Client
    participant I as πŸšͺ Ingress
    participant S as βš™οΈ VALINA Wallet
    participant D as πŸ’Ύ Database
    participant R as ⚑ Redis Cache

    C->>+I: HTTP Request
    I->>+S: Route to Service
    Note over S: Health Check βœ“
    S->>R: Check Cache
    alt Cache Hit
        R-->>S: Return Cached
    else Cache Miss
        S->>+D: Query Data
        D-->>-S: Return Result
        S->>R: Update Cache
    end
    S-->>-I: Response
    I-->>-C: HTTP Response

Custom Flows

  • Wallet Creation

  • Transaction Signing

  • Balance Query

  • NFT Minting

  • Chain Switching


Integration and APIs

Health Check

/health:8760

Dependencies

Service Purpose
Valina Chain Dependency
AEGIS (transaction approval) Dependency

Data Stores

  • Redis (session cache)

External Services

  • Ethereum RPC

  • Solana RPC

  • IPFS

  • Alchemy


Security and Compliance

Security Context

Setting Value
Security Level Standard
Run as Non-Root ⚠️ No
Read-Only Root FS ❌ No

Security Best Practices

Standard Security

This service uses default security settings. Consider hardening.



Monitoring and Operations

Health Probes

Readiness Probe

Setting Value
Endpoint /health:8760
Initial Delay 5s
Period 10s
Timeout 1s

Liveness Probe

Setting Value
Endpoint /health:8760
Initial Delay 10s
Period 30s
Timeout 5s

No Prometheus metrics configured. Add prometheus.io/scrape: "true" annotation.

Operations Commands

# Check deployment status
kubectl get deployment valina-wallet -n valina

# View logs
kubectl logs -l app.kubernetes.io/name=valina-wallet -n valina -f

# Scale replicas
kubectl scale deployment/valina-wallet -n valina --replicas=3

# Restart deployment
kubectl rollout restart deployment/valina-wallet -n valina

πŸ”§ AI-Powered Diagnostics

πŸ”§ Diagnostics

βœ… No issues detected


πŸ“Š SLO Dashboard

SLOTargetCurrentError BudgetStatus
🟒 Availability 99.9% 99.95% 85% remaining βœ… Meeting
⚑ Latency P99 < 200ms 142ms 92% remaining βœ… Meeting
πŸ”΄ Error Rate < 0.1% 0.02% 98% remaining βœ… Meeting

πŸ“ˆ Live Metrics

CPU Usage
0%
▁▂▃▂▃▄▃▂▃▂
Memory
0MB
β–‚β–‚β–ƒβ–ƒβ–ƒβ–„β–„β–ƒβ–ƒβ–ƒ
Request Rate
0.0k/s
β–ƒβ–„β–…β–†β–…β–†β–‡β–†β–…β–†
Error Rate
0.00%
▁▁▁▂▁▁▁▁▁▁

πŸ”’ Security Scan

0
Critical
0
High
2
Medium
5
Low

Security Status: Passing

Last scanned: 2026-01-12 10:00 UTC Scanner: Trivy v0.50.0


πŸ‘₯ RBAC & Permissions

Resource Permissions Scope
ServiceAccount default Namespace
ClusterRole view Cluster-wide (read)

Pod Security Standards

Policy Status
Privileged ⚠️ Allowed
Run as Root ⚠️ Allowed
Host Network ❌ Blocked
Host PID ❌ Blocked

πŸ“– API Documentation

No OpenAPI Spec

Add API documentation via annotation: valina.ai/openapi-url: "https://..."


πŸ“œ Version History

Added Solana support
Multi-sig preparation

⚑ Latency Heatmap

P50
45ms
P90
98ms
P99
142ms
Max
285ms
SLO (200ms)
🟑 95.0%
Good

24-Hour Latency Heatmap

Hourly P99 🟒🟒🟒🟒🟒🟒🟒🟒🟒🟒🟒🟒🟒🟒🟒🟒🟒🟒🟒🟒🟒🟒🟒🟒
🟒 <50% 🟑 50-75% 🟠 75-100% πŸ”΄ >SLO

πŸ”” Active Alerts

βœ… All Clear 0 active alerts

🌐 Traffic Flow

πŸ“₯ Inbound Traffic

nginx-ingress β†’ 1.2k rps | 45ms | 0.02% err
api-gateway β†’ 850.0 rps | 12ms | 0.00% err

πŸ“€ Outbound Traffic

No outbound traffic detected

πŸ’° Cost Attribution

Monthly Cost $5.85
Efficiency Score 72%

Resource Breakdown

CPU
Memory
Storage
Net
πŸ’» CPU: $3.00 🧠 Memory: $2.40 πŸ’Ύ Storage: $0.30 🌐 Network: $0.15

πŸ“š Runbooks

πŸ”₯ High CPU Usage

Steps to diagnose and mitigate high CPU consumption

cpuperformance
⚑ High Latency

Troubleshooting guide for latency spikes

latencynetworking
πŸ”„ Pod Restarts

Investigation steps for frequent pod restarts

restartsoom

πŸ“ž On-Call

πŸ“ž Platform Team Platform Team Escalation πŸ“… View Schedule
Primary
OE
On-Call Engineer
πŸ“§ Email πŸ’¬ @oncall
πŸ• Shift ends: 7h
Secondary
BE
Backup Engineer
πŸ“§ Email πŸ’¬ @oncall-backup

πŸ“… Change Timeline

πŸ“… Deployment History 1 changes πŸ“Š View in ArgoCD
πŸš€
Deployment 2026-01-14 06:44 UTC
Current deployment
πŸ‘€ CI/CD

🐀 Canary Status

🐀 No active canary deployment

πŸ”΄ Error Drill-down

βœ… No errors in the last 24 hours πŸ“‹ View Logs

⚑ Quick Actions


Future Enhancements

  • Multi-sig wallets

  • Mobile SDK


Configuration Reference

Labels

Label Value
app valina-wallet
component wallet

Environment Variables

Variable Value
AEGIS_URL http://aegis-approval.aegis.svc.cluster.local:8750
RUST_LOG val_wallet=info,tower_http=debug

Annotations

Annotation Value
valina.ai/architecture Secure enclave-based key management with HSM integration. Su…
valina.ai/changelog Added Solana support,Multi-sig preparation
valina.ai/databases Redis (session cache)
valina.ai/dependencies redis
valina.ai/dependents valina-rust-backend,rwa-integration-api
valina.ai/external-services Ethereum RPC,Solana RPC,IPFS,Alchemy
valina.ai/features Multi-chain Support,Hardware Wallet Integration,Transaction …
valina.ai/flows Wallet Creation,Transaction Signing,Balance Query,NFT Mintin…
valina.ai/openapi-url https://wallet.valina.ai/api/openapi.json
valina.ai/owner @3xzyle
valina.ai/purpose Blockchain wallet service providing secure key management an…
valina.ai/repository https://github.com/3xzyle/VALINA-AI
valina.ai/roadmap Multi-sig wallets,Mobile SDK


Auto-Generated Documentation

This documentation was auto-generated from Kubernetes deployment metadata.

Enhance this doc by adding annotations:

annotations:
  valina.ai/description: "Detailed service description"
  valina.ai/purpose: "Service purpose statement"
  valina.ai/features: "Feature 1, Feature 2, Feature 3"
  valina.ai/flows: "Auth Flow, Data Processing Flow"
  valina.ai/dependencies: "redis, postgres, auth-service"
  valina.ai/api-endpoints: "/api/v1/resource, /health"
  valina.ai/economics: "Ties to GRAT treasury via..."
  valina.ai/owner: "Platform Team"
  valina.ai/repository: "https://github.com/org/repo"
  valina.ai/changelog: "v1.2.0 Added feature X, v1.1.0 Initial release"
  valina.ai/roadmap: "SSO integration, Multi-region support"
  valina.ai/notices: "Requires v2.0 by Q2 2026"

Created: 2026-01-05T10:47:43Z | Generated: 2026-01-14T06:44:10.497159096+00:00