0%

CODE EXAMPLE

Example implementation showing how to integrate X402IQ cognitive capabilities with IQ Protocol and ΞIQ payments into your application.

// Import the X402IQ SDK with IQ Protocol support (conceptual example)
import { X402IQClient, CognitiveNode, IQProtocol } from "@x402iq/sdk";

// Initialize client with IQ Protocol
const iq = new X402IQClient({
  network: "x402-main",
  apiKey: process.env.X402_API_KEY,
  iqProtocol: new IQProtocol({
    tokenSymbol: "ΞIQ",
    defaultBalance: 402
  })
});

// Register cognitive node
const node = new CognitiveNode({
  id: "node-alpha-12",
  capabilities: ["context-analysis", "decision-making"],
});

// Example: Analyze a data stream and get an intelligent recommendation
async function analyzeData() {
  const input = {
    event: "server_overload",
    data: { cpu: 97, memory: 86, region: "eu-west" },
  };

  // Pay with ΞIQ and send data to X402IQ for contextual understanding
  const result = await iq.process(input, {
    intent: "stabilize_network",
    priority: "critical",
    payment: {
      amount: 1.5, // ΞIQ
      protocol: "IQ"
    }
  });

  console.log("X402IQ Decision:");
  console.log(result.decision);
  console.log("Confidence:", result.confidence);
  console.log("Suggested Action:", result.action);
  console.log("ΞIQ Remaining:", result.balance);
}

analyzeData();

OUTPUT (EXAMPLE RESULT)

X402IQ Decision:

"Reroute traffic via Node 8 and throttle batch processes."

Confidence: 92%

Suggested Action: network_rebalance(eu-west → us-east)

This example demonstrates how a developer might use the X402IQ SDK to send real-time contextual data into the cognitive network.

The AI layer interprets the event, analyzes patterns from connected nodes, and returns an autonomous decision — complete with confidence scoring and suggested action.

This illustrates the core philosophy of X402IQ: "From data → to understanding → to intelligent action."

For more details, you can check our GitHub.

ARCHITECTURE

How X402IQ Fits into the Web

X402IQ acts as a connective tissue between clients, servers, and verification nodes turning ordinary web requests into atomic, economic exchanges.

CLIENT LAYER

+

GATEWAY LAYER

+

X402IQ NETWORK

+

SETTLEMENT LAYER

+

SDK LAYER

+

FLOW EXAMPLE

A client requests a dataset → server replies with a 402 and ΞIQ price → ΞIQ payment is attached via IQ Protocol → node verifies transaction → data unlocked.

This architecture doesn't reinvent the web. It extends it — adding a missing layer that lets information and value move together.

THE X402 PROTOCOL IS BUILT ON THREE CORE PRINCIPLES

COGNITIVE ROUTING

Data is routed based on meaning and relevance, not just static addresses. ΞIQ tokens enable intelligent resource allocation.

DYNAMIC AUTHENTICATION

Security tokens adapt to context, ensuring real-time integrity and trust through IQ Protocol verification.

ADAPTIVE LEARNING LAYER

The network continuously improves itself through pattern recognition and feedback loops, powered by ΞIQ.

X402IQ extends this foundation by embedding AI directly into the protocol layer — enabling intelligent automation, decision-making, and predictive analytics natively within the network. The IQ Protocol and ΞIQ tokens make cognitive computing accessible, verifiable, and autonomous.

USE CASES

For Sellers

Monetize your APIs and content directly through HTTP 402 using the IQ Protocol. Receive ΞIQ payments with minimal setup and pay-per-use pricing.

For Buyers

Access paid services without accounts or manual payments using ΞIQ. Ideal for AI agents and automated systems.

For AI Agents

Autonomous real-time API request payments powered by ΞIQ tokens. True machine-to-machine interaction with cognitive understanding and intelligent resource allocation.

TECHNOLOGY

Native Payments for a Machine-Driven Web

The X402IQ protocol layer brings instant, verifiable transactions directly into the language of the web. Instead of separate gateways or APIs, value exchange now happens through the same rails that move data.

The IQ Protocol

X402IQ operates on the IQ Protocol, powered by the ΞIQ (Xi IQ) token — an intelligent unit of value that represents access to cognitive network resources.

The Greek letter Ξ (Xi) symbolizes cognitive computing, where each ΞIQ enables intelligent processing, AI-powered decision-making, and autonomous transactions across the decentralized network.

Process:

A client requests data.

The server replies with 402 Payment Required, including cost in ΞIQ.

The client resends the request with ΞIQ payment proof attached.

The X402IQ network verifies the IQ Protocol transaction and unlocks the response.

Key Components:

IQ Protocol

Native ΞIQ token for cognitive payments and intelligent resource access

Payment header

Carries ΞIQ payment proof and cryptographic verification

Verification nodes

Confirm IQ Protocol transactions on the X402IQ network

Receipt header

Returns signed ΞIQ transaction confirmation

SDKs

For developers to integrate IQ Protocol with a single line of code

"HTTP had 200 OK for success. Now it has 402 Paid for value."

STATS

AI LAYER

Cognitive decision-making embedded in protocol layer

0 REGISTRATION

No accounts, email, or OAuth required

HTTP 402

Built on standard HTTP 402 Payment Required

BLOCKCHAIN AGNOSTIC

Open standard not tied to any specific blockchain

40 ms

Average transaction time

0.0005 USD

Smallest supported transfer

1.2M+

Verified testnet payments

ΞIQ TOKEN

IQ Protocol token for cognitive payments and intelligent processing

6 SDKs

Supported environments (Python, JS, Rust, Go, Swift, Node)

0 INTERMEDIARIES

Fully peer-to-peer processing

THOUSANDS

TPS

This protocol may or may not be notable.

X402IQ BEGAN AS AN AI LAYER BUILT ON THE X402 PROTOCOL.

X402IQ builds the service layer and core infrastructure that uses the X402 protocol, powered by the IQ Protocol and ΞIQ tokens — a ready-to-use service layer that any project can integrate to enable native, instant payments across the web

The protocol turned the revived HTTP 402 Payment Required into a real, working mechanism: A small, verified ΞIQ transaction happens instantly, right inside the HTTP request.

Apps, AI agents, and connected systems can pay for access to data, compute, or cognitive services automatically using ΞIQ (no accounts, no invoices, no human steps).

It's a small shift in protocol that opens an entirely new kind of economy — one where intelligence and value flow together seamlessly.

The Intelligent Layer of
the X402 Protocol.

EmjupSsJtZWjaNKiqacMEJCmK8HBACN4hL2R6YeSpump
Copied!