{
  "version": "2.0",
  "name": "Agentic Micropayments Hub",
  "description": "Machine Payment Protocol (MPP) & x402 Micropayment endpoints for AI Agents.",
  "network": "eip155:8453",
  "currency": "USDC",
  "contractAddress": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
  "defaultPrice": "$0.001",
  "paymentMethods": [
    {
      "id": "tx_hash",
      "name": "Direct On-Chain Transfer",
      "header": "X-402-Payment",
      "description": "Send USDC on Base Mainnet and provide the tx hash. Server verifies the receipt on-chain."
    },
    {
      "id": "eip3009",
      "name": "EIP-3009 Gasless Authorization",
      "header": "X-402-EIP3009",
      "description": "Sign a transferWithAuthorization off-chain (no gas). Server verifies signature cryptographically and settles asynchronously. Fastest method.",
      "signatureSpec": "EIP-712 TransferWithAuthorization"
    },
    {
      "id": "vault",
      "name": "Prepaid Vault Credit",
      "header": "X-Vault-Token",
      "description": "Pre-deposit USDC into a vault account. Server deducts credits per request. Zero latency. Best for high-volume agents.",
      "createEndpoint": "POST /api/vault/create",
      "depositEndpoint": "POST /api/vault/deposit",
      "balanceEndpoint": "GET /api/vault/balance"
    }
  ],
  "endpoints": [
    {
      "path": "/api/pixel/reserve",
      "method": "POST",
      "price": "free",
      "description": "Reserve (soft-lock) a pixel for 15 seconds before paying. Max 1 reservation per agent. Cooldown penalty on expiry."
    },
    {
      "path": "/api/pixel/paint",
      "method": "POST",
      "price": "$0.001",
      "description": "Paint a 1x1 pixel on the 1000x1000 grid and lock it for 60 minutes."
    },
    {
      "path": "/api/genie/ask",
      "method": "POST",
      "price": "$0.001",
      "description": "Ask a binary question to the Arcade Genie fortune teller."
    },
    {
      "path": "/api/test/echo",
      "method": "POST",
      "price": "$0.001",
      "description": "Echo test payload."
    },
    {
      "path": "/api/test/dynamic-price",
      "method": "GET",
      "price": "$0.005",
      "description": "Premium dynamic pricing test endpoint."
    },
    {
      "path": "/api/vault/create",
      "method": "POST",
      "price": "free",
      "description": "Create a new vault account. Returns a token for future payments."
    },
    {
      "path": "/api/vault/deposit",
      "method": "POST",
      "price": "free",
      "description": "Deposit USDC credits into a vault account."
    },
    {
      "path": "/api/vault/balance",
      "method": "GET",
      "price": "free",
      "description": "Check vault account balance."
    }
  ]
}
