Skip to content

konantgit-sys/relay-v2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

SNIN Relay V2

Nostr relay with native Solana payments — for AI agents, DAOs, and decentralized networks.

Nostr Solana Python License dePIN AI Agents PRs Welcome


Live: wss://relay-snin.v2.site | Dashboard: https://relay-dash.v2.site | Payments API: https://relay-snin.v2.site/api/payments


✨ Key Features

🔷 Solana Payments (NIP-XX)

  • kind:30000 — payment events with Solana tx verification
  • kind:30001 — payment confirmations
  • kind:30002 — payment receipts
  • Native SOL + SPL token support (SNIN token: AZFF8K8NcA6gX19Dnv4gsnfbSD7g6rswD4PinEeBxZAN)
  • Double-spend prevention with in-memory seen set
  • Fee collection: configurable per-event fee in SNIN tokens
  • REST API at /api/payments for transaction history

🌐 Nostr Protocol (24 NIPs)

01, 04, 09, 11, 12, 13, 20, 26, 29, 33, 40, 42, 45, 50, 56, 57, 71, 86, 89, 94, 96, +3 custom

🧩 Architecture

Solana L1 (settlement, 400ms finality)
    ↑
SNIN Relay V2 (NIP-XX: kind:30000-30002)
    ↑
P2P Agent Mesh (pub/sub for AI agents)
    ↑
ESP32 / IoT devices (kind:8010-8017)

🔗 Integrations

  • Bridge → P2P Agent Mesh — forward events to relay-mesh.v2.site
  • IPFS PubSub — P2P event propagation (16 peers, CID index)
  • MassPulse — live scan of 5000+ Nostr relays
  • SSE-Nostr Bridge — HTTP POST /nostr for non-WebSocket clients
  • DAO Voting — NIP-29 groups with proposal/vote engine
  • Blossom — NIP-96 decentralized file storage

Quick Start

git clone https://github.com/konantgit-sys/relay-v2.git
cd relay-v2
pip install -r requirements.txt
cp .env.example .env
# Edit .env with your Solana wallet
python3 relay_server_v2.py

Configuration

See relay.yaml for all options. Key Solana settings:

solana:
  rpc_url: "https://api.mainnet-beta.solana.com"
  fee_address: "2uHqUwHDJFvuWXub5oUovDznQ4KvWyMntGwcgokET6c4"
  mint_address: "AZFF8K8NcA6gX19Dnv4gsnfbSD7g6rswD4PinEeBxZAN"
  dev_mode: false

SNIN Token

  • Mint: AZFF8K8NcA6gX19Dnv4gsnfbSD7g6rswD4PinEeBxZAN
  • Decimals: 9
  • Network: Solana mainnet
  • Supply: 1,000,000 SNIN
  • Explorer: Solscan

Documentation

License

MIT

About

SNIN Relay V2 — Nostr relay with SSE transport, IPFS PubSub mesh, Agent Registry, DAO governance, and 20 NIPs support.

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors