Experimental public laboratory

xolosArmy Network · Build in public

x402eCash

Public Lab for x402 on XEC

Exploring machine-native commerce on eCash: HTTP 402 payments, Tonalli authorization, paid APIs and policy-controlled autonomous agents.

  • XEC
  • Tonalli
  • Agent-to-Agent Payments
  • Paid APIs
  • Autonomous Economy

Protocol primer

What is x402?

x402 is an open, transport-agnostic internet payment standard. Version 2 separates core payment types and logic from their representation over transports such as HTTP, MCP and A2A.

Request

A client or agent requests a protected resource.

Requirements

The resource server signals payment requirements, including acceptable scheme, network, amount, asset and destination.

Payload

The client selects an accepted option and creates the appropriate signed payment payload.

Retry

The client retries through the transport with payment information attached.

Verify & settle

The resource server verifies locally or through a facilitator and follows the selected scheme's settlement flow.

Return resource

After successful processing, the protected result and settlement response can be returned.

Protocol language follows the official x402 v2 specification at the inspected commit. x402-XEC currently uses v1-era shapes; this site does not present them as v2-compatible yet.

Research substrate

Why XEC?

The research question is practical: how can native UTXO money participate in machine-readable payment workflows while keeping authorization, policy and custody boundaries explicit?

01

Native UTXO money

XEC provides a direct transaction model for studying exact-value, on-chain settlement without introducing a synthetic application balance.

02

Small-value economics

eCash is relevant to micropayment-style experiments where the cost and operational shape of small transfers matter. No performance number is assumed here.

03

Read and verify

Chronik supplies indexing and read interfaces for controlled UTXO discovery, transaction inspection and eventual confirmation evidence.

04

Wallet boundary

Tonalli is the intended user-agent boundary: exact details are displayed, approval is explicit, and key material remains wallet-owned.

05

Policy before money

The CAE and Agentic Contract V1 model intent, policy, human approval, signing, broadcast and confirmation as separate states.

06

Machine-native workflows

HTTP, paid APIs and later MCP/A2A adapters provide a path to investigate commerce between software agents without pretending it is live today.

Verified components

What xolosArmy Network has already built

Each card is scoped to repository evidence. “Implemented” means code exists at the linked revision; it does not automatically mean production deployment or live-fund execution.

Implemented · Experimental

x402-XEC protocol scaffold

Strict invoice and authorization schemas, deterministic resource binding, replay controls, local facilitator verification, Axios and Express adapters, offline payment preparation and transaction construction.

Inspect x402-XEC at 8696c28
Tested · Dry run

Browser HTTP 402 dry-run

The recorded flow received 402, requested mock approval, attached PAYMENT-SIGNATURE, retried and returned the protected resource. The result explicitly reports broadcasted: false.

Read the recorded result
Integrated · Authorization dry run

Tonalli authorization boundary

Tonalli exposes an explicit approval modal and wallet-owned signing for the authorization message. The adapter rejects prepared-transaction signing as unsupported.

Inspect the Tonalli adapter
Implemented

Agentic Contract V1

A strict state machine separates intent, policy decision, wallet approval request, human approval, signed transaction, broadcast and confirmation. Optional x402 context is metadata—not permission.

Read the canonical contract
Implemented · Money execution frozen

CAE / Tonalli Agents

Fail-closed decisions, kill switch, destination allowlists, cumulative daily limits and replay controls are implemented. Even an approved policy path stops before signing and broadcast.

Inspect Cycle 1 security
Adjacent experimental infrastructure

Tonalli Commerce Relay

Order, identity, reputation, evidence and dispute scaffolding explores a broader XEC commerce lifecycle. Real XEC escrow, broadcast and confirmation tracking remain pending.

Read production-readiness boundaries

System view

Architecture with boundaries

The diagram is a target integration map, not a live execution trace. Solid gold, solid blue and dashed neutral boundaries intentionally distinguish current evidence from integration and future real-money work.

x402eCash conceptual architecture A vertical flow from a human or AI agent through transport, x402 requirements, agent policy, Tonalli approval, x402-XEC planning and the eCash network. Colors identify built, integration and future boundaries. Human / AI AgentREQUEST + INTENT HTTP · MCP · A2AHTTP TESTED · MCP/A2A PENDING x402 ResourcePAID PRODUCTION API PENDING Payment RequirementsV1-ERA XEC SCAFFOLD Agent Intent / CAE PolicyFAIL-CLOSED CONTRACT V1 Tonalli Approval BoundaryAUTHORIZATION DRY RUN x402-XECEXPERIMENTAL IMPLEMENTATION XEC Transaction PlanningOFFLINE CONSTRUCTION IMPLEMENTED Chronik / eCash NetworkREAD OPT-IN · LIVE SETTLEMENT PENDING

Evidence snapshot · 2026-08-25

Status matrix

Current source truth wins. “Pending” and “not enabled” are deliberate engineering statuses, not omissions hidden behind marketing language.

Current implementation status for x402eCash capabilities
CapabilityStatusEvidence / boundary
HTTP 402 protocol scaffold for XECExperimental implementationPackage workspace
Core invoice and HTTP resource bindingImplementedCanonical hash model
Replay protectionImplementedAtomic nonce boundary; the in-memory store remains single-process.
Local facilitator verificationImplementedFixture-backed default, real read adapter opt-in
Offline XEC transaction constructionImplementedNo network or broadcast API
Read-only Chronik adaptersImplemented · opt-inExplicit endpoint required; fixtures remain the default.
Browser HTTP 402 E2ETested in dry-runbroadcasted: false; mock approval and signature.
Tonalli approval UIImplementedExact public metadata is displayed
Tonalli authorization-message signingDry-run integrationAll-zero funding outpoint placeholder; no transaction created.
Real Tonalli transaction signing for x402Not yet provensignPreparedTransaction returns unsupported.
Automatic x402 mainnet paymentNot enabledBroadcast is separate, opt-in and not wired to Axios or the demo.
Autonomous agent real-fund spendingFrozenMoney-freeze tests
x402 v2 semantic alignmentPendingCurrent scaffold uses v1-era shapes and provisional xec:mainnet.
Standardized XEC network identifierPendingUpstream v2 requires CAIP-2; inspected upstream support docs contain no XEC entry.
MCP transport integrationResearch / pendingUpstream v2 transport reference
A2A payment integrationResearch / pendingUpstream v2 transport reference
Paid production APIPendingThis GitHub Pages portal is static and has no settlement backend.
Bazaar / discovery integrationPendingUpstream extension inspected

No invented dates

Evidence-driven roadmap

The ordering follows dependency and safety boundaries: modernize the protocol contract first, then prove signing and controlled settlement before adding paid services or agent transports.

A

Protocol modernization

  • Compare x402-XEC with current x402 v2.
  • Migrate wire semantics where required.
  • Establish a standardized XEC network identifier and document the (scheme, network) pair.
  • Update compatibility and security tests.
B

Tonalli execution boundary

  • Preserve explicit approval.
  • Add real prepared-transaction signing inside Tonalli.
  • Keep wallet secrets outside x402-XEC.
  • Bind invoice, resource, amount and payTo exactly.
C

Controlled XEC E2E

  • Read-only UTXO discovery and deterministic plan.
  • Tiny controlled value with explicit approval.
  • Exact signing and separately authorized broadcast.
  • Chronik verification, confirmation and reproducible evidence.
D

First paid API

  • Create a real x402-protected resource using XEC.
  • Deploy the settlement backend separately.
  • Keep this GitHub Pages portal honest about its static role.
E

Agent payments

  • Connect AgentIntentV1 to CAE.
  • Bind x402 requirements to Tonalli policy and approval.
  • Deliver the protected resource only after verified payment state.
F

MCP / A2A

  • Track current upstream transport specifications.
  • Build adapters only after the v2 XEC scheme is stable.
  • Preserve the same policy and custody boundaries across transports.
G

Discovery

  • Explore Bazaar metadata for XEC-paid resources.
  • Validate catalog claims against live evidence.
  • Publish no discoverable endpoint before the paid API exists.

Build in public

Evidence Ledger

Milestones are classified as code, dry-run, staging authorization or frozen. A live classification requires transaction and network evidence; none is claimed below.

Dated x402eCash research evidence ledger
DateMilestoneClassificationImmutable evidence
2026-07-01Browser HTTP 402 flow completed with protected resource returned and broadcasted: false.Dry-runResult · 21f20d4 tested
2026-07-02Tonalli browser wallet boundary added with explicit authorization approval and wallet-owned message signing.Codea743f904
2026-07-02Tonalli payment approval modal added; approval does not transmit or pay a transaction.Codeb74631b5
2026-07-03Trusted staging authorization route added with origin/path allowlisting and an authorization-only result.Staging authorization4d5ee146
2026-07-18Commerce Relay documented order and trust scaffolding while real escrow and XEC broadcast remained pending.Adjacent scaffold5a820dce
2026-07-30Agentic Contract V1 merged with strict intent-to-confirmation ordering and display-safe x402 handoff.Codecfe4cb15
2026-07-30CAE Cycle 1 merged with fail-closed policy and explicit money-execution freeze.Frozen7b90c805
2026-08-25Official x402 v2 specification and HTTP, MCP, A2A, CAIP-2 and Bazaar sources re-inspected for this portal.Upstream researchf8a3682d

Inspected repositories

Research direction

Evidence before autonomy.

The next meaningful proof is not a dashboard counter. It is a v2-aligned, explicitly approved, tiny-value XEC payment with reproducible signing, broadcast and Chronik confirmation evidence.

Follow the lab ↗