{
  "serviceId": "address-standardization",
  "displayName": "Address Standardization",
  "description": "Rule-based postal address normalization: uppercase a free-text US address, expand standard abbreviations and split out the state and ZIP when present (usps-basic-v1). It does not validate or geocode the address, and adds no ZIP that is not in the input. POST /v1/address with {address}. Deterministic. Pay per request in USDC; no account, no API key.",
  "category": "government",
  "resourceUrl": "https://test.agent.pocket.network/v1/address-standardization",
  "priceUsd": "0.005000",
  "priceVersion": 1,
  "rails": [
    {
      "id": "base",
      "network": "eip155:84532",
      "chainId": 84532,
      "tokenAddress": "0x036CbD53842c5426634e7929541eC2318f3dCF7e",
      "tokenDecimals": 6,
      "payToAddress": "0xF732ea490c5766071785a2310523f7fA2CEbB829"
    }
  ],
  "paymentNetworks": [
    "eip155:84532"
  ],
  "paymentProtocols": [
    "x402"
  ],
  "protocols": [
    "rest"
  ],
  "inputSchema": {
    "type": "object",
    "description": "The request body for POST /v1/address.",
    "properties": {
      "address": {
        "type": "string",
        "description": "A free-text postal address."
      }
    },
    "required": [
      "address"
    ]
  },
  "outputSchema": {
    "type": "object",
    "description": "For POST /v1/address, a JSON object with original, standardized, state, zip and the ruleset used. The exact shape is the service's own and is not pinned here; errors return a JSON object with an `error` field."
  },
  "methods": {
    "GET /v1/health": "read",
    "GET /v1/version": "read",
    "POST /v1/address": "read"
  },
  "example": {
    "method": "POST",
    "path": "/v1/address",
    "request": {
      "address": "123 main st, new york, ny 10001"
    },
    "response": {
      "portal": {
        "provenance": "third-party-supplier",
        "serviceId": "address-standardization",
        "schemaCheck": "unchecked"
      },
      "data": {
        "original": "123 main st, new york, ny 10001",
        "standardized": "123 MAIN STREET, NEW YORK",
        "state": "NY",
        "zip": "10001",
        "ruleset": "usps-basic-v1",
        "service": "address-standardization"
      }
    },
    "capturedAt": "2026-09-25T15:53:06Z"
  },
  "firstParty": true,
  "networks": [
    "eip155:84532"
  ],
  "serving": true,
  "page": "https://test.agent.pocket.network/services/address-standardization",
  "descriptor": "https://test.agent.pocket.network/services/address-standardization/descriptor.json"
}