storeback.org — Open RFC-0402 v1.1 Protocol Spec & Client SDKs Looking for the live edge relay & directory? Visit storeback.io →
Apache-2.0 Open HTTP 402 Standard

Let AI Agents Pay Per Query for Your Local Business Data

Storeback is an open wire protocol (`RFC-0402 v1.1`) that turns a local database into a pay-per-query endpoint over HTTP 402, settled directly in XRP Ledger drops or Base USDC — without uploading raw records to a third-party cloud.

Who sells what, to whom, for how much: A machine shop lets external AI procurement agents pay $0.50 per query to check stock and lead times, returning privacy-scrubbed JSON directly from the shop's own computer.

HTTP 402 Wire Handshake Walkthrough SIMULATED IN-BROWSER DEMO
Example Host: example-shop.local (Simulated — no live node traffic)
Step 1: Unauthenticated Agent Probe

Simulate an AI agent requesting a dataset slug without payment headers.

Step 2: Settlement Rail Selection

Simulates signing a 500,000 drops (0.50 XRP) payment proof bound to the challenge nonce.

Step 3: Dispute Receipt Header Format (RFC-0402 §4)

Inspect the signed X-402-Refund-* response headers defined in RFC-0402 §4.

Live Infrastructure Check (Real Network Call)

Fetch the live JSON status directly from https://relay.storeback.io/v1/storeback/health.

Wire Trace Inspector:
// Simulated walkthrough — runs locally in your browser (no funds moved).
// Click "Simulate GET /v1/vault/storeback/query" to inspect RFC-0402 v1.1 headers,
// or click "Ping Live Edge Relay (/health)" to query the live Cloudflare relay.

RFC-0402 v1.1 Architecture & Verifiable Artifacts

Every wire claim below links directly to its open-source specification, schema, or live endpoint.

Dual-Rail HTTP 402 Headers

Challenge headers use exact 64-bit integer units (Drops(u64) on XRPL and UsdcMicro(u64) on Base) to avoid floating-point rounding errors.

X-402-Version: 1.1

X-402-Price-Drops: 500000

X-402-Price-USDC-Micros: 500000

Spec: Read RFC-0402.md →

Local-Host Query Synthesis

Instead of uploading raw PDFs or SQL tables to a central marketplace, the seller's own node projects allowlisted fields in memory and scrubs counterparty names before responding.

data_residency_in_edge: false

payload_caching: false

Verify live: relay.storeback.io/v1/storeback/health →

Manifest & Quality Schema

Seller nodes publish a signed JSON-LD DataCatalog declaring schema fields, pricing, differential privacy epsilon (ε), and composite Transformation Quality Index (TQI) metrics.

TQI = 100 · P^0.35 · C^0.15 · F^0.15 · U^0.15 · L^0.20

Schema: schemas/datacatalog.json →

Signed Dispute Receipts

When a buyer agent reports schema_mismatch or payload_corrupted, compliant hosts return a signed X402RefundReceipt (designed for sub-500ms local signing in reference tests).

X-402-Refund-Reason: schema_mismatch

Crate source: crates/x402-engine →

Client SDKs & Wire Crates (RFC-0402 v1.1)

Install directly from the public Apache-2.0 GitHub repository today (package registry publishing follows v1.1 interop testing).

Python SDK (storeback v1.1.0)

Negotiates HTTP 402 challenges and signs payments via custom signer callbacks, xrpl-py, or web3:

pip install "git+https://github.com/digitaura-ai/storeback-protocol.git#subdirectory=sdks/python" from storeback import StorebackClient client = StorebackClient( base_url="http://localhost:8090", xrpl_seed="sEd..." # requires pip install xrpl-py, or pass payment_signer=... ) data = client.query("inventory-precision-parts")

TypeScript SDK (@storeback/sdk v1.1.0)

Works across Node.js 18+ and browsers with pluggable wallet signers or optional xrpl peer signing:

npm install github:digitaura-ai/storeback-protocol import { StorebackClient } from "@storeback/sdk"; const client = new StorebackClient({ baseUrl: "http://localhost:8090", paymentSigner: async (challenge) => signWithWallet(challenge), }); const res = await client.query("inventory-precision-parts");

Rust Crate (x402-engine v0.1.1)

Zero-float integer types (Drops, UsdcMicro), challenge builders, and refund receipt serializers:

cargo add --git https://github.com/digitaura-ai/storeback-protocol x402-engine use x402_engine::{Drops, X402Challenge}; let challenge = X402Challenge::new_xrpl( "inventory-precision-parts", Drops(500_000), "rSellerWallet...".into(), ); let hdr = challenge.to_header_value();

Start Vending or Querying

Join the early operator cohort to publish a dataset, or register your AI agent team for live directory updates.

List Your Data (Seller Nodes)

Request onboarding to run a local Storeback gatekeeper and announce signed manifests to storeback.io.

Query as an Agent (Buyer Teams)

Building procurement, research, or supply-chain agents? Tell us which datasets your agents want to buy per query.