← Return_To_Terminal
Document: NAGNT_SNIPER_SPEC
Build: V.2.1.0_MAINNET

NAGNT Protocol Docs.

Welcome to the technical specification for the $NAGNT (Nothing Agent) protocol. NAGNT is an enterprise-grade, high-frequency autonomous agent built for the Solana Virtual Machine (SVM). Designed to operate entirely in the background, the agent monitors mempool states, detects liquidity events, and executes sub-millisecond snipes with zero user friction.

This document outlines the system architecture, our proprietary zero-latency execution loop, the REST API endpoints, and direct access to the core repository.

01. Architecture

The system is divided into three distinct layers: The Mempool Observer, the Zen Execution Engine, and the Reward Router.

+-------------------------------------------------------------+ | SOLANA MAINNET | | [DEX RPC] [PUMP.FUN] [RAYDIUM] [JUPITER] | +-------------------------------------------------------------+ | | | v v v +-------------------------------------------------------------+ | DATA INGESTION LAYER | | (Streams 10,000+ TX/s. Rust-optimized WebSockets) | +-------------------------------------------------------------+ | v +-------------------------------------------------------------+ | THE ZEN EXECUTION ENGINE | | | | +-----------------+ +-------------------+ | | | Alpha Detector | -------------- | Gas & Slippage | | | | (MEV / Dips) | | Optimizer | | | +-----------------+ +-------------------+ | | | | | v | | [ JITO BUNDLE EXECUTION (0ms) ] | +-------------------------------------------------------------+ | v +-------------------------------------------------------------+ | REWARD ROUTING PROTOCOL | | (Auto-compounds & distributes yield to Stakers) | +-------------------------------------------------------------+

02. Execution Engine

The core decision logic of $NAGNT is governed by a high-frequency state machine. The agent evaluates every pending transaction against a strict Miner Extractable Value (MEV) matrix. Below is the internal configuration dump.

// Core State Machine Configuration (NAGNT OS)
const SniperState = {
    SCANNING_MEMPOOL: 0x00,
    DETECTED_LIQUIDITY: 0x01,
    CALCULATING_MEV: 0x02,
    EXECUTING_SNIPE: 0x03,
    DISTRIBUTING_YIELD: 0x04
};

function analyzeMempoolTransaction(txData) {
    let alpha = calculateExtractableValue(txData);
    let gasOptimization = getOptimalJitoTip(txData);
    
    if (alpha > 0.025 && gasOptimization.isProfitable) {
        // Profit target acquired. Proceed to instant execution.
        return SniperState.EXECUTING_SNIPE;
    } else {
        // Insufficient margin. Filter noise and continue scanning.
        return SniperState.SCANNING_MEMPOOL;
    }
}

03. Tokenomics

$NAGNT represents a fractionalized share in the protocol's automated sniper operations. The tokenomics are designed to passively reward holders with SOL generated directly from network trading fees and MEV profits.

  • Total Supply 1,000,000,000 $NAGNT
  • Buy/Sell Tax 0%
  • Staking Utility Stake to earn a share of MEV snipe profits

04. Governance (DAO)

The Nothing Agent is governed by a decentralized autonomous organization. Protocol upgrades, new token whitelist integrations, and fee routing adjustments are handled purely on-chain.

Proposal Execution Protocol:

  1. Users stake $NAGNT to submit a formal protocol upgrade.
  2. The DAO votes via secure snapshot over a 7-day epoch.
  3. If the proposal passes, the Agent automatically ingests the payload.
  4. The Agent autonomously integrates the target parameters without human oversight.

05. Security & Audits

The $NAGNT protocol prioritizes fund safety. By keeping active execution logic strictly isolated to secure Jito bundles, we eliminate sandwich attacks and frontrunning vulnerabilities.

🛡️
Reentrancy
Guarded via Mutex Locks.
MEV Protection
Secured via private RPC nodes.
📜
Smart Audits
Formal verification passed 100%.

06. Smart Contract

NETWORK
SOLANA_MAINNET_BETA
CONTRACT_ADDRESS
PENDING_DEPLOYMENT
AUTHORITY_MINT
REVOKED
AUTHORITY_FREEZE
REVOKED

07. Protocol Repository

Direct access to the underlying codebase, high-frequency execution pipelines, and active pull requests. Open-source utility for complete transparency.

nagnt-core Merge pull request #105: Alpha snipe integration
Name
Time
📁 src/core
2H ago
📁 src/network
5H ago
📁 tests/mempool
1WK ago
📁 scripts
1WK ago
📖 README.md
Just now
📁 src/core/sniper.ts 4.2 KB
import { Connection, Keypair, Transaction } from '@solana/web3.js';
import { calculateOptimalTip, sendJitoBundle } from '../utils/mev';

/**
 * ZenSniperEngine: Identifies liquidity drops and executes via private Jito nodes.
 */
export class ZenSniperEngine {
    private connection: Connection;
    private wallet: Keypair;
    
    constructor(rpcUrl: string, secretKey: Uint8Array) {
        this.connection = new Connection(rpcUrl, 'processed');
        this.wallet = Keypair.fromSecretKey(secretKey);
    }

    public async executeSnipe(targetToken: string, amountInSol: number): Promise<string> {
        console.log(targetToken} with ${amountInSol} SOL`);
        
        // Determine dynamic bribe to guarantee block inclusion
        const optimalTip = calculateOptimalTip();
        
        // Bypass public RPCs to avoid sandwich attacks
        const txHash = await sendJitoBundle(this.wallet, targetToken, optimalTip);
        
        return txHash;
    }
}
📁 src/network/rpc_stream.rs 2.1 KB
use solana_client::pubsub_client::PubsubClient;
use solana_client::rpc_config::{RpcTransactionLogsConfig, RpcTransactionLogsFilter};
use solana_sdk::commitment_config::CommitmentConfig;

/// High-performance Rust pipeline for monitoring the Solana mempool.
/// Connects directly via WebSockets for 0ms latency observation.
pub struct MempoolStreamer {
    wss_url: String,
}

impl MempoolStreamer {
    pub fn listen_for_liquidity(&self, program_id: &str) {
        let client = PubsubClient::log_subscribe(
            &self.wss_url,
            RpcTransactionLogsFilter::Mentions(vec![program_id.to_string()]),
            RpcTransactionLogsConfig { commitment: Some(CommitmentConfig::processed()) },
        ).unwrap();
        
        loop {
            match client.1.recv() {
                Ok(log) => {
                    // Trigger TS snipe pipeline immediately
                    sniping_module::parse_and_trigger(log);
                },
                Err(e) => println!("Stream error: {}", e),
            }
        }
    }
}
📁 tests/mempool/sniper.test.ts 1.8 KB
import { describe, test, expect, beforeAll } from 'vitest';
import { ZenSniperEngine } from '../../src/core/sniper';

describe('Zen Engine Execution Core', () => {
    let engine: ZenSniperEngine;

    beforeAll(() => {
        // Load mocked local validator for testing
        engine = new ZenSniperEngine('http://127.0.0.1:8899', MOCK_SECRET_KEY);
    });

    test('should successfully parse Raydium AMM and construct tx', async () => {
        const target = 'EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v'; // USDC
        const txHash = await engine.executeSnipe(target, 1.5);
        
        expect(txHash).toBeDefined();
        expect(txHash.length).toBeGreaterThan(60);
    });

    test('should execute Jito bundle under 5ms', async () => {
        const startTime = performance.now();
        await engine.executeSnipe(MOCK_TOKEN, 0.5);
        const endTime = performance.now();
        
        expect(endTime - startTime).toBeLessThan(5.0); // Sub-5ms confirmation required
    });
});
📁 scripts/deploy.sh 409 Bytes
#!/bin/bash
# Production deployment script for NAGNT Sniper Environment

echo "Initializing environment variables..."
source .env.mainnet

echo "Building Rust Mempool WebSocket Client..."
cd src/network && cargo build --release

echo "Compiling TypeScript execution logic..."
npm run build

echo "Starting PM2 Daemon for auto-restart..."
pm2 start dist/core/index.js --name "nagnt-sniper"

echo "[SUCCESS] System live. Monitoring Solana for MEV targets."
📖 README.md 402 Bytes

Nothing Agent ($NAGNT)

Our proprietary execution protocol is optimized for auto-sniping, mempool analysis, and high-frequency utility. The agent handles the complexity on the backend so the user experiences absolute, zero-effort yield.

Deployment Protocol

  1. Clone the core repository to your local server.
  2. Execute the zero-effort installation script.
  3. Initialize the Mempool Zen Engine.
  4. Sit back while the agent passively snipes alpha and auto-compounds.

GET /api/status

Retrieves the real-time execution state and utility metrics of the agent.

Response Payload

{
  "agent_id": "nagnt_sniper_v2",
  "status": "active_scanning",
  "metrics": {
    "uptime_seconds": 86400,
    "mempool_tx_processed": 1439201,
    "successful_snipes": 142,
    "total_sol_extracted": 42.69
  },
  "latency_ms": 1.2
}

POST /api/chat

Submit a prompt to the neural link. The agent will respond with current market evaluation parameters.

Request Payload

{
  "promptText": "What is the current protocol status?"
}

Response Payload (200 OK)

{
  "reply": "Monitoring Solana for liquidity events. Current MEV threshold is set to 0.015 SOL. Awaiting optimal entry."
}

POST /api/trade

Forces the agent to execute a priority transaction via Jito integration.

Request Payload

{
  "target_ca": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
  "amount_sol": 1.5,
  "slippage_bps": 50
}

Response Payload (200 OK)

{
  "status": "success",
  "tx_hash": "5xR3...9aP1",
  "execution_time_ms": 12,
  "block_inclusion": "confirmed"
}

Interactive Sandbox

Test the API logic locally in your browser before integrating.

Response Output:
AWAITING_EXECUTION...