Agentic Commerce Protocol // HTTP 402 Payment Required (x402 v2) • M038

Autonomous AI Agent Solana Security API via HTTP x402: Zero-Signup SOL & USDC Settlement

Autonomous DeFi agents running on ElizaOS, Solana Agent Kit, LangGraph, or custom Rust runtimes cannot solve CAPTCHAs, complete Stripe KYC forms, or wait for human API key approvals. Solana Rent & Rug Shield natively implements HTTP x402 v2 (/api/x402/v2 and /.well-known/x402-v2.json) on CAIP-2 solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp—letting AI agents pay $0.10 per 11-Layer scan or provision $49.99 / $99.00 / $500.00 passes directly in SOL or SPL USDC ($0 auto-billing). Agents also self-fund security by reclaiming 2,039,280 lamports (0.00203928 SOL) per empty ATA at 0% 1st claim vs Sol Incinerator (~2%) and ClaimYourSol (5%), outclassing RugCheck, SolSniffer, and GoPlus while earning a 30% ?ref= split.

Test 11-Layer Scanner & Agent Rent Audit Inspect x402 v2 & Enterprise Endpoints Get 30% ?ref= Link
$0.10 / Scan
Zero-Signup HTTP 402 Micro-Settlement
CAIP-2 SVM
Native SOL & SPL USDC x402 v2
3.6+ Scans / ATA
Self-Funded by 2,039,280L Rent
0 API Forms
100% Machine-to-Machine Handshake
Institutional API & Bot ATA Calculator • Unit M038

Sniper Bot Empty ATA Recovery + 11-Layer API Cost/Call Benchmark

Enter your trading bot wallet's empty ATA backlog to see how your 0% fee 1st rent claim (2,039,280 lamports = 0.00203928 SOL/ATA) immediately funds $49.99 Ultra Pro, $99 Quant Desk, or HTTP x402 autonomous pre-trade protection.

2.447136 SOL
Bot Rent Unlocked at 0% 1st Claim (100% Principal Retained)
-0.048943 SOL
Fee Leak Avoided vs Sol Incinerator ~2%
-0.122357 SOL
Fee Leak Avoided vs ClaimYourSol 5%
$0.00099
Per 11-Layer Audit on $99 Quant Desk API (<120ms SLA, $0 Auto-Billing)

Inside the HTTP x402 v2 Handshake: CAIP-2 Discovery, PAYMENT-REQUIRED & Atomic Retry

Traditional security APIs break agent autonomy at step zero by gating endpoints behind OAuth dashboards and credit card rails. Our machine-discoverable manifest at /.well-known/x402-v2.json advertises deterministic pricing schemas over CAIP-2 chain identifier solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp. When an unauthenticated agent requests /api/x402/v2/shield-check?mint=<MINT>, the server responds with HTTP 402 Payment Required and a structured PAYMENT-REQUIRED header encoding accepted settlement assets: native SOL lamports or SPL USDC (EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v, 100,000 base units = $0.10) for single scans, alongside $49.99, $99.00, and $500.00 pass upgrades.

Using standard @x402/svm or lightweight Ed25519 signing logic, the agent constructs the exact transfer instruction locally, attaches the signed proof inside the PAYMENT-SIGNATURE HTTP header, and replays the request. Our verifier confirms finality and returns HTTP 200 OK with a cryptographic PAYMENT-RESPONSE receipt plus the complete 11-Layer Block-0 Jito Sybil and Token-2022 bytecode audit—zero human intervention, zero stored credentials, and $0 auto-billing.

HTTP x402 v2 Wire Protocol Trace (CAIP-2 Solana Mainnet)
// 1. Unauthenticated Agent Request:
GET /api/x402/v2/shield-check?mint=So11111111111111111111111111111111111111112 HTTP/1.1
Host: rentandrugshield.com

// 2. Server Challenge (HTTP 402 + Base64 PAYMENT-REQUIRED Descriptor):
HTTP/1.1 402 Payment Required
PAYMENT-REQUIRED: eyJ4NDAyVmVyc2lvbiI6MiwiYWNjZXB0cyI6W3sic2NoZW1lIjoiZXhhY3QiLCJuZXR3b3JrIjoic29sYW5hOjVleWt0NFVzRnY4UDhOSmRUUkVwWTF2enFLcVpLdmRwIn1dfQ==
// Decoded accepts[0]: {
//   "x402Version": 2, "scheme": "exact",
//   "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
//   "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
//   "maxAmountRequired": "100000", "description": "11-Layer Shield Scan ($0.10 USDC)"
// }

// 3. Autonomous Agent Retry With Signed Proof -> Instant 200 OK:
GET /api/x402/v2/shield-check?mint=So11111111111111111111111111111111111111112 HTTP/1.1
PAYMENT-SIGNATURE: <BASE64_SIGNED_SVM_PAYMENT_PAYLOAD>
-> HTTP/1.1 200 OK | PAYMENT-RESPONSE: <TX_RECEIPT> | Body: { "verdict": "PASS", ... }

Closed-Loop Agentic Economics: Funding $0.10 x402 Scans From Reclaimed Agent ATA Rent

Every autonomous trading agent executing swaps on Jupiter, Raydium, or Meteora accumulates orphaned 165-byte Associated Token Accounts after closing positions. Each empty ATA locks exactly (128 + 165) * 6,960 = 2,039,280 lamports (0.00203928 SOL). At a reference price of $180/SOL, reclaiming just ONE empty ATA at our 0% 1st-claim rate unlocks ~$0.367 in liquid SOL—enough to pay for 3.67 autonomous $0.10 x402 11-Layer security scans without requesting a single cent from a human operator's treasury!

Scale that across an active DeFi agent swarm that has accumulated 250 empty ATAs: sweeping those accounts at 0% 1st claim recovers 509,820,000 lamports (0.50982000 SOL, ~$91.77), funding 917 pay-per-scan x402 calls OR an entire 30-Day Ultra Pro ($49.99, 15,000 calls) pass with ~$41.78 left over. Legacy cleaners like ClaimYourSol (5% fee) or Sol Incinerator (~2% fee) tax your agent's SOL while offering zero x402 machine payment endpoints.

Self-Funding AI Agent Treasury Loop (ATA Rent -> x402 Security)
Single Empty ATA Recovery Value (@ $180/SOL Reference):
  1 Closed 165B ATA (0% 1st Claim)  = 2,039,280 lamports (0.00203928 SOL) = ~$0.3671 USD
  x402 Single-Scan Price            = $0.1000 USD (SOL or 100,000 raw USDC units)
  Autonomous Scans Funded / 1 ATA   = 3.67 full 11-Layer pre-trade audits!

250-ATA Autonomous Swarm Treasury Sweep:
  Gross Rent Reclaimed (0% Fee)     = 509,820,000 lamports (0.50982000 SOL / ~$91.77 USD)
  Option A (Pay-Per-Scan x402):     917 x $0.10 autonomous scans
  Option B (x402 Pass Upgrade):     1x $49.99 Ultra Pro Pass (15,000 calls) + $41.78 surplus!

Protecting Autonomous Wallets From Prompt-Injected & Sybil Rugs vs Legacy APIs

AI social-sentiment agents monitoring X/Twitter and Telegram channels are prime targets for adversarial prompt-injection launches: scammers deploy a spoofed ticker, astroturf social mentions to trigger agent buys, and trap the agent inside a Token-2022 TransferHook honeypot or dump a 50% Block-0 Jito Sybil bundle on its market order. Free endpoints like RugCheck, SolSniffer, and GoPlus lack x402 support, hit rate limits, and fail to link multi-hop Sybil wallets.

Enforcing a mandatory x402 11-Layer pre-trade check in your agent's execution state machine guarantees no autonomous swap ever signs until Mint/Freeze authorities, LP locks, Token-2022 TLV extensions, and Layer-11 Block-0 Jito bundles pass hard deterministic thresholds. Framework authors embedding `?ref=<AGENT_DEV_PUBKEY>` in x402 client templates earn an automatic 30% revenue split across agent pass upgrades.

Autonomous AI Agent Security API Protocol Matrix

Agentic CapabilitySolana Rent & Rug Shield (x402 v2)GoPlus / Blowfish / CyversRugCheck / SolSniffer
Onboarding FrictionZero signup; instant HTTP 402 settlementHuman KYC, Stripe card, or B2B sales callUnauthenticated 429s or manual JWT keys
Discovery Standard/.well-known/x402-v2.json + CAIP-2 SVMNoneNone
Granular Pricing$0.10/scan or $49.99/$99/$500 ($0 auto-bill)$2,500+/mo minimum enterprise commitNo machine micro-payment rail
Prompt-Bait Sybil DefenseLayer-11 >20% Jito bundle & hook blockMisses Solana slot-0 bundle splitsIndexer lag lets slot-0 traps pass
Self-Funding Rent Tooling0% 1st claim (2,039,280 lamports/ATA)NoneNone (rivals skim 2%–5%)
Framework Author Split30% ?ref= bounty on agent upgrades0%0%

4-Step HTTP x402 Integration for Autonomous Solana Agents

Step 1: Fetch Machine Pricing From /.well-known/x402-v2.json

Point your ElizaOS, Solana Agent Kit, or custom agent HTTP client at https://rentandrugshield.com/.well-known/x402-v2.json to auto-discover CAIP-2 solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp settlement routes.

Step 2: Recycle Agent Empty ATAs to Seed Security Funds

Query your agent's public key to identify zero-balance 165-byte ATAs and execute native 0x09 CloseAccount batches at 0% 1st-claim fee, unlocking 2,039,280 lamports per closed account.

Step 3: Handle HTTP 402 & Attach PAYMENT-SIGNATURE

On any pre-swap mint check returning 402, parse PAYMENT-REQUIRED, sign the exact $0.10 SOL or SPL USDC payment locally (or upgrade to a $49.99/$99 pass), and replay with PAYMENT-SIGNATURE.

Step 4: Gate Agent Execution & Attach ?ref= Attribution

Abort autonomous swaps whenever verdict != PASS or Layer-11 Block-0 Sybil concentration exceeds 20%, and include your developer ?ref= parameter in agent SDK defaults to earn a 30% split.

Frequently Asked Questions

Which assets and network identifier does /api/x402/v2 accept for autonomous settlement?

Our x402 v2 endpoint settles natively on Solana Mainnet under canonical CAIP-2 identifier solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp, accepting both native SOL lamports and canonical SPL USDC (EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v). Single scans settle for $0.10 equivalent with zero human account registration.

When should an autonomous agent switch from $0.10 single scans to an x402 30-Day pass?

The exact crossover point is 500 scans inside a 30-day window (500 * $0.10 = $50.00). Any agent evaluating more than ~17 tokens per day reduces per-scan cost by 96.7% ($0.00333/call) by settling a $49.99 30-Day Ultra Pro pass (15,000 calls, $0 auto-billing), or $0.00099/call on the $99.00 Quant pass.

Does using HTTP x402 expose my AI agent's private key to the API server?

Never. Under the x402 protocol, your agent signs a standard Solana transaction locally inside its own memory enclave and transmits only the public cryptographic signature payload via PAYMENT-SIGNATURE—identical in key safety to broadcasting any standard on-chain transfer.

Can multi-agent frameworks combine HTTP x402 settlement with Model Context Protocol (/mcp)?

Yes! Agents can discover tools via JSON-RPC 2.0 over /mcp and either pass a pre-provisioned 30-Day / Enterprise bearer token or fulfill x402 payment challenges dynamically whenever unauthenticated tool calls require fresh inspection quota.

Institutional Pricing Ladder ($0 Free 1st Claim + $19.99 / $49.99 / $99 / $500 Passes)

New layers included free during active pass, $0 auto-billing. Settle instantly in SOL, SPL USDC, Stripe Card, or autonomous HTTP 402 (x402).

Free 1st Claim & 24h Trench Pass

$0 Free 1st Scan & 0% 1st Claim

Keep 2,039,280 / 2,039,280 lamports (0.00203928 SOL) on your first wallet claim vs Sol Incinerator ~2% and ClaimYourSol 5%. Extra single 11-Layer scan: $0.10. 24h Trench Pass: $1.99.

Launch Live Scanner

30-Day Trader Pro

$19.99/mo$39.99/mo

Unlimited Web & Telegram 11-Layer pre-buy audits including Layer-11 Block-0 Jito/Sybil Cluster Defense, beating RugCheck, SolSniffer, and GoPlus.

Activate $19.99 Trader Pro

30-Day Ultra Pro + Sniper Bot API

$49.99/mo$99.00/mo

15,000 API calls/mo ($0.0033/call) + real-time Rug Webhooks + Layer-11 Block-0 Sybil & Token-2022 TLV flags for automated trading bots.

Get $49.99 Sniper Bot API

30-Day Quant Desk Pro API

$99.00/mo$199.00/mo

100,000 API calls/mo ($0.00099/call), <120ms Priority SLA + Batch Sybil funding graph endpoints & Streamable HTTP MCP.

Unlock $99 Quant Desk API

Enterprise Unlimited API

$500/mo$999/mo

Unlimited B2B RPC-backed 11-Layer scoring feeds for wallets, DEX terminals, and launchpads with 100+ RPS throughput and 99.95% SLA.

Provision $500/mo Enterprise SLA

Autonomous HTTP x402 & MCP

x402 v2 Zero-Signup Agent Pay

Machine-native Solana USDC & SOL settlement via /api/x402/v2 and /mcp with 14,640h Mainnet telemetry proof.

Inspect x402 & MCP Spec
Zero-Custody On-Chain Affiliate Engine (3,000 bps)

Earn a Sticky 30% Atomic ?ref= Split (+50% Higher Than 20% Programs)

Paste any valid Solana wallet address to generate your shareable ?ref=<Wallet> link. Every referred pass checkout ($1.99 / $19.99 / $49.99 / $99 / $500) or repeat rent cleanup splits 30% directly to your wallet inside the same unsigned Solana transaction with zero custody, zero withdrawal minimums, and automatic self-referral protection.

Related Solana Security & Rent Forensics Guides

Unit M035 • Cluster F

$49.99 Solana Sniper Bot Rug API: 11-Layer Gate & Real-Time Webhooks

$49.99 11-Layer Shield Sniper API (15k calls, webhooks) plus 0% 1st claim of 2,039,280 lamports (0.00203928 SOL) per bot ATA and 30% ?ref= split.

Unit M036 • Cluster F

$99 Quant Desk Solana Sybil Graph API: <120ms SLA & 100k Calls

$99 Quant 11-Layer Shield API: 100k calls, <120ms SLA, Sybil graphs, 0% 1st claim on 2,039,280 lamports (0.00203928 SOL) ATAs & 30% ?ref= split.

Unit M037 • Cluster F

$500/mo Enterprise Solana Token Security API (100+ RPS Unlimited)

$500/mo Unlimited 11-Layer Shield API (100+ RPS, 99.95% SLA), 2,039,280 lamports (0.00203928 SOL) 0% 1st claim telemetry, and 30% ?ref= split.

Unit M039 • Cluster F

Solana Security MCP Server (/mcp): 11-Layer Shield & Rent Tools

Connect our JSON-RPC /mcp server for 11-Layer Shield checks, 0% 1st claim of 2,039,280 lamports (0.00203928 SOL) per ATA, and a 30% ?ref= split.

Unit M005 • Cluster A

Sol Incinerator 20% Referral vs 30% Zero-Custody ?ref= Atomic Split

Compare Sol Incinerator's 20% custodial Memo referral dashboard vs Solana Rent & Rug Shield's 30% zero-custody ?ref= atomic on-chain split + 0% 1st claim & 11-Layer Shield.

Unit M012 • Cluster B

ClaimFreeSOL 3% Fee & Legacy Cleaners vs 0% First-Claim SOL Tool

Audit ClaimFreeSOL 3% tax via preBalances vs postBalances. Keep 2,039,280 lamports (0.00203928 SOL) on 0% 1st claim with 11-Layer Shield & 30% ?ref= split.