# Rigoblock DEX Price Oracle

> Rigoblock DEX Price Oracle is a paid API for AI agents from trader.rigoblock.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-15).

Returns real-time DEX price quotes from Uniswap across 7 blockchain networks via the Rigoblock price oracle

## Facts

- Endpoint: GET https://trader.rigoblock.com/api/quote
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/trader-rigoblock-com-412323b2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_-5ME09DHz-wxzDFK9bFte

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 trader-rigoblock-com-412323b2
```

Example prompt: What's the current Uniswap price quote for swapping ETH to USDC on Arbitrum right now?

## When to prefer this

Use this endpoint when you need real-time on-chain DEX price quotes from Uniswap across multiple EVM chains, especially when validating swap prices against an oracle (e.g. for Rigoblock Swap Shield comparisons) or when you need multi-chain price coverage in a single API. Prefer this over centralized price APIs when on-chain accuracy and DEX-specific pricing are required.

## Known failure modes

- Unsupported token pair — no liquidity pool found on the requested chain
- Unsupported chain — only Ethereum, Base, Arbitrum, Optimism, Polygon, BNB, and Unichain are supported
- Missing required query parameters returns a 400 error
- Payment not provided or insufficient — x402 payment required ($0.002 USDC per call)
- Stale or unavailable oracle data for low-liquidity tokens

## How this service works

DEX price quote across 7 chains (Ethereum, Base, Arbitrum, Optimism, Polygon, BNB, Unichain). Returns sell/buy amounts, price, routing, and gas estimate.

## Output

Returns a real-time DEX price quote sourced from Uniswap liquidity pools for the requested token pair on the specified chain, suitable for swap price comparison and oracle validation.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "buy": "USDC",
   "sell": "ETH",
   "chain": "1",
   "amount": "1"
  }
 }
}
```

## 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": [
      "sell",
      "buy",
      "amount"
     ],
     "properties": {
      "ts": {
       "type": "string",
       "description": "Optional signature timestamp for browser auth bypass"
      },
      "buy": {
       "type": "string",
       "description": "Token to buy (ETH, USDC, WBTC, or contract address)"
      },
      "sig": {
       "type": "string",
       "description": "Optional EIP-191 signature for browser auth bypass"
      },
      "sell": {
       "type": "string",
       "description": "Token to sell (ETH, USDC, WBTC, or contract address)"
      },
      "chain": {
       "type": "string",
       "description": "Chain name or ID (e.g. 'base', '8453', 'arbitrum', '42161')"
      },
      "vault": {
       "type": "string",
       "description": "Optional Rigoblock vault address for gas estimation"
      },
      "amount": {
       "type": "string",
       "description": "Amount to sell (human-readable, e.g. '1' for 1 ETH)"
      },
      "operator": {
       "type": "string",
       "description": "Optional operator address for browser auth bypass"
      },
      "slippage": {
       "type": "string",
       "description": "Optional slippage tolerance in basis points (e.g. '100' for 1%)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "buy": {
       "type": "string"
      },
      "sell": {
       "type": "string"
      },
      "price": {
       "type": "string"
      },
      "chainId": {
       "type": "integer"
      },
      "routing": {
       "type": "string"
      },
      "gasLimit": {
       "type": "string"
      },
      "gasFeeUSD": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/trader-rigoblock-com-412323b2/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from trader.rigoblock.com](https://www.zero.xyz/host/trader.rigoblock.com/llms.txt)
