Pay-Per-Query Price Oracle
Real-time price data for 25+ trading pairs. Pay only for what you use with micropayments.
Quick Start
1. List Available Pairs
curl https://easepay.xyz/api/v1/oracle?pairs=true2. Query a Price (Returns 402)
curl https://easepay.xyz/api/v1/oracle?pair=ETH/USDWithout payment, you'll receive a 402 response with payment instructions.
3. Query with Payment
curl -H "X-Payment: <payment_proof>" \
"https://easepay.xyz/api/v1/oracle?pair=ETH/USD"With valid payment, you'll receive the price data.
Pricing
| Query Type | Price | Description |
|---|---|---|
| Standard | $0.0001 | Single price from best available source |
| Premium | $0.0005 | Aggregated median from multiple sources |
| Historical | $0.001 | Historical price data (coming soon) |
Supported Pairs
Major Pairs
Stablecoins
Monad Ecosystem
Cross Pairs
Data Sources
High-frequency price feeds
Industry-standard oracles
Modular oracle network
Native Monad DEX prices
DEX aggregator
On-chain analytics
API Reference
/api/v1/oracleQuery Parameters
pairTrading pair (e.g., ETH/USD)typestandard | premium | historicalproviderpyth | chainlink | redstone | storkchainmonad | base (for payment)pairsSet to "true" to list all pairsbridgeTarget chain for cross-chain settlement (base, ethereum, arbitrum, optimism)metaSet to "true" for multi-chain aggregated pricejobs"list" or "stats" for agentic oracle jobsExample Response (200)
{
"success": true,
"data": {
"pair": "ETH/USD",
"price": 3183.87,
"decimals": 8,
"timestamp": 1733295600000,
"provider": "pyth",
"confidence": 1.18,
"source": "Pyth Network"
},
"queryId": "oracle_abc123",
"chain": "monad",
"cost": "$0.0001"
}/api/v1/oracleRequest Body
{
"pairs": ["ETH/USD", "BTC/USD", "SOL/USD"],
"type": "standard",
"chain": "monad"
}Example Response (200)
{
"success": true,
"batch": {
"ETH/USD": { "price": 3183.87, "provider": "pyth" },
"BTC/USD": { "price": 97234.50, "provider": "pyth" },
"SOL/USD": { "price": 234.12, "provider": "pyth" }
},
"count": 3,
"queryId": "oracle_batch_xyz789",
"cost": "$0.0003"
}Cross-Chain & Interoperability
Bridge Routing
Query prices on Monad and get optimal bridge routes for cross-chain settlement.
// Cross-chain price with bridge routing
const response = await easePayFetch(
'https://easepay.xyz/api/v1/oracle?pair=ETH/USD&bridge=base'
);
// Response includes bridge route
{
"success": true,
"data": {
"pair": "ETH/USD",
"price": 3183.87,
"sourceChain": "monad",
"targetChain": "base",
"bridgeRoute": {
"protocol": "ccip",
"estimatedTime": "10-20 minutes",
"estimatedFee": "$0.50-2.00"
}
},
"crossChain": true
}Meta-Oracle Aggregation
Aggregate prices from multiple chains and sources for maximum accuracy.
// Multi-chain aggregated price
const response = await easePayFetch(
'https://easepay.xyz/api/v1/oracle?pair=ETH/USD&meta=true'
);
// Response with confidence scoring
{
"success": true,
"data": {
"pair": "ETH/USD",
"price": 3183.87,
"confidence": "high",
"deviation": "0.12%",
"sources": [
{ "chain": "monad", "provider": "pyth", "price": 3183.50 },
{ "chain": "monad", "provider": "chainlink", "price": 3184.20 },
{ "chain": "base", "provider": "pyth", "price": 3183.90 }
]
},
"metaOracle": true
}Agentic Oracle Jobs
AI agents can claim verification jobs and earn rewards for providing price data.
# List available jobs (no payment required)
curl https://easepay.xyz/api/v1/oracle?jobs=list
# Get job statistics
curl https://easepay.xyz/api/v1/oracle?jobs=statsRate Limits
| Tier | Limit | Window |
|---|---|---|
| Free (no payment) | 10 requests | per minute |
| Paid (with X-Payment) | 1,000 requests | per minute |
| List pairs | 100 requests | per minute |
Payment Methods
Option 1: EasePay SDK (Recommended)
Use the EasePay SDK for automatic payment handling.
import { EasePayClient } from '@easepay/sdk';
const client = new EasePayClient({ wallet: yourWallet });
// Automatically handles 402 → pay → retry
const price = await client.fetch(
'https://easepay.xyz/api/v1/oracle?pair=ETH/USD'
);Option 2: Direct USDC Payment
Send USDC to our wallet, then include the transaction hash.
# 1. Send 0.0001 USDC to:
# 0xef323Fac8b7d3F5CD2cDbA6CCF41BFbb633D20c0
# 2. Call API with txHash:
curl -H 'X-Payment: {"txHash":"0x...","chain":"base"}' \
"https://easepay.xyz/api/v1/oracle?pair=ETH/USD"Error Codes
| Code | Meaning |
|---|---|
| 400 | Bad request - missing or invalid parameters |
| 402 | Payment required - include X-Payment header |
| 404 | Pair not found or no price data available |
| 429 | Rate limit exceeded - check Retry-After header |
| 500 | Server error - try again later |