# 402rpc ETH/BTC Spot Price (Uniswap v3 On-Chain)

> 402rpc ETH/BTC Spot Price (Uniswap v3 On-Chain) is a paid API for AI agents from 402rpc.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-15).

Returns the real-time on-chain spot price of ETH or BTC in USDC, read directly from the deepest Uniswap v3 pools on Ethereum mainnet via an independent full node.

## Facts

- Endpoint: GET https://402rpc.com/v1/eth/price?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/402rpc-eth-btc-spot-price-uniswap-v3-on-chain-5c1a2dd9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_gldM2QkWBzGCCmXZe5lZX

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 402rpc-eth-btc-spot-price-uniswap-v3-on-chain-5c1a2dd9
```

Example prompt: What's the current on-chain spot price of ETH in USDC right now, pulled directly from the Uniswap v3 pool on Ethereum mainnet?

## When to prefer this

Choose this endpoint when you need a trustless, verifiable on-chain price for ETH or BTC in USDC that is independent of centralized price feeds or oracles. It is ideal for DeFi applications, arbitrage detection, on-chain settlement reference pricing, or any context where you want to verify the true pool price at the latest Ethereum block without relying on a third-party aggregator.

## Known failure modes

- Unsupported pair value returns an error (only ETH-USDC and BTC-USDC are accepted)
- Missing 'pair' query parameter results in a bad request error
- Full node temporarily unavailable may cause a service error
- Payment of 0.001 USDC not provided or invalid results in a 402 Payment Required response
- Network congestion on Ethereum may cause slight delay in latest block data

## How this service works

On-chain spot price of ETH or BTC in USDC from the deepest Uniswap v3 pools on Ethereum mainnet, read from a full node at the latest block (no third-party price feed). Pairs: ETH-USDC, BTC-USDC. Use it as an independent, verifiable price reference; it reflects the pool price, not an exchange average.

## Output

Returns the current spot price of the requested pair (ETH-USDC or BTC-USDC) as read from the deepest Uniswap v3 pool on Ethereum mainnet at the latest block. The price reflects actual pool state, not an aggregated or oracle-derived value.

## 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"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "pair"
     ],
     "properties": {
      "pair": {
       "enum": [
        "ETH-USDC",
        "BTC-USDC"
       ],
       "type": "string",
       "description": "ETH-USDC or BTC-USDC."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/402rpc-eth-btc-spot-price-uniswap-v3-on-chain-5c1a2dd9/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from 402rpc.com](https://www.zero.xyz/host/402rpc.com/llms.txt)
