# 0xBs x402 Demo — Agent-Payable ESP32 Hardware

> 0xBs x402 Demo — Agent-Payable ESP32 Hardware is a paid API for AI agents from x402.0xbs.org, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-15).

Returns a confirmation message after accepting a $0.01 USDC micropayment on Base, demonstrating the x402 payment protocol for agent-payable ESP32 hardware.

## Facts

- Endpoint: GET https://x402.0xbs.org/x402/demo
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/0xbs-x402-demo-agent-payable-esp32-hardware-81dfa25c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_MIvfX9juAzoPoBc63QIy3

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability 0xbs-x402-demo-agent-payable-esp32-hardware-81dfa25c
```

Example prompt: Hit the 0xBs x402 demo endpoint and pay the $0.01 USDC fee on Base to get the agent-payable hardware confirmation back.

## When to prefer this

Choose this endpoint when you need a live, real-money x402 protocol demo to test agent-to-API micropayment flows using USDC on Base, especially for IoT or ESP32-related hardware payment patterns. Ideal for developers validating x402 integrations or AI agents that need a known-good reference endpoint for on-chain micropayments.

## Known failure modes

- Payment not included or insufficient — endpoint returns 402 Payment Required
- Invalid or malformed x402 payment header — authentication/payment validation fails
- Network issues connecting to Base — payment cannot be verified
- USDC balance insufficient on sending wallet — transaction fails before reaching endpoint
- Endpoint temporarily unavailable — 503 or timeout response

## How this service works

Public discovery + payable HTTP resource for 0xBs. Agents pay USDC on Base (x402); ESP32 hardware is fulfilled through the device control plane after settlement.

## Output

A JSON object confirming payment acceptance, including: ok (true), asset ('USDC'), amount ('0.01'), a human-readable message identifying the service as the 0xBs agent-payable hardware demo on Base, the network name ('base'), and service identifier ('0xbs-x402-demo').

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "schema": {
     "type": "object"
    },
    "headers": {
     "type": "object",
     "additionalProperties": {
      "type": "string"
     }
    },
    "queryParams": {
     "type": "object",
     "additionalProperties": {
      "type": "string"
     }
    },
    "discoverable": {
     "type": "boolean"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "asset": "USDC",
  "amount": "0.01",
  "message": "Payment accepted. This is the public x402 resource for 0xBs agent-payable hardware (ESP32, USDC on Base).",
  "network": "base",
  "service": "0xbs-x402-demo"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/0xbs-x402-demo-agent-payable-esp32-hardware-81dfa25c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.0xbs.org](https://www.zero.xyz/host/x402.0xbs.org/llms.txt)
