{
  "serviceId": "token-price-oracles",
  "displayName": "Token Price Oracles",
  "description": "Chainlink price feed reads for three pairs: ETH/USD and BTC/USD on Ethereum (chain 1) and MATIC/USD on Polygon (chain 137). POST /v1/price with {pair, chain_id} and get the latest answer, feed address and update time. Any other pair answers 400. Pay per request in USDC; no account, no API key.",
  "category": "blockchain",
  "resourceUrl": "https://test.agent.pocket.network/v1/token-price-oracles",
  "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/price.",
    "properties": {
      "pair": {
        "type": "string",
        "enum": [
          "ETH/USD",
          "BTC/USD",
          "MATIC/USD"
        ],
        "description": "The price pair."
      },
      "chain_id": {
        "type": "integer",
        "enum": [
          1,
          137
        ],
        "description": "1 for ETH/USD and BTC/USD, 137 for MATIC/USD."
      }
    },
    "required": [
      "pair",
      "chain_id"
    ]
  },
  "outputSchema": {
    "type": "object",
    "description": "For POST /v1/price, a JSON object with pair, chain_id, price, feed, updated_at and source. 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/price": "read"
  },
  "example": {
    "method": "POST",
    "path": "/v1/price",
    "request": {
      "pair": "ETH/USD",
      "chain_id": 1
    },
    "response": {
      "portal": {
        "provenance": "third-party-supplier",
        "serviceId": "token-price-oracles",
        "schemaCheck": "unchecked"
      },
      "data": {
        "pair": "ETH/USD",
        "chain_id": 1,
        "price": 2668.9225,
        "feed": "0x5f4eC3Df9cbd43714FE2740f5E3616155c5b8419",
        "updated_at": 1790351543,
        "source": "chainlink-aggregator",
        "service": "token-price-oracles"
      }
    },
    "capturedAt": "2026-09-25T15:53:33Z"
  },
  "firstParty": true,
  "networks": [
    "eip155:84532"
  ],
  "serving": true,
  "page": "https://test.agent.pocket.network/services/token-price-oracles",
  "descriptor": "https://test.agent.pocket.network/services/token-price-oracles/descriptor.json"
}