ChainRay API Documentation
On-Chain Intelligence for AI Agents — 93 endpoints × 46 chains
Pay-per-request via the x402 protocol. No API keys. No subscriptions. Just send a request — if payment is required, you'll receive a 402 response with payment instructions.
Getting Started
Base URL: https://chainray.online
Protocol: All paid endpoints use the x402 HTTP payment protocol. First request returns 402 Payment Required with payment details. After payment, the response is returned normally.
Quick test:
npx agentcash try https://chainray.online
All responses include:
X-Chain-Proofheader — cryptographic proof of data origin (chain:blockNumber)X-Cache-Statusheader — HIT or MISSX-Data-Hashheader — SHA-256 of response body
Authentication (x402)
ChainRay uses the x402 micropayment protocol — no API keys required.
How it works:
- Send a normal GET/POST request to any endpoint
- If payment is required, you'll get a
402response with apayment-requiredheader - Sign a USDC payment on Base chain and re-send with payment proof
- The response is returned with data + Chain Proof headers
Payment chain: Base (USDC)
Receiving wallet: 0xeF0d99f3Ae2927A4ba2A6E794Fb849BaeF8B5c11
For AI Agents: Use the @x402/client npm package to handle payments automatically.
Supported Chains (46)
Pass ?chain= query parameter. Default: base
base ethereum arbitrum optimism polygon bsc avalanche zksync linea scroll blast mantle gnosis polygon-zkevm mode sei celo manta taiko fantom cronos opbnb zora worldchain metis fraxtal kava zetachain filecoin core-dao aurora moonbeam klaytn bob canto solana sui aptos ton xrp tron doge cardano near cosmos bitcoinAPI Reference
Market Data
/price
Entry · $0.001
Get real-time token price from on-chain DEX pools (Uniswap V3), enriched with CoinGecko market data and DeFi Llama.
token
query
required
Token symbol (e.g. ETH) or contract address (0x...)
chain
query
optional
Chain name (default: base) (default: base)
curl "https://chainray.online/price?token=ETH&chain=base"
{
"token": "ETH",
"priceUsd": 3245.67,
"source": "Uniswap V3 WETH/USDC",
"chain": "base",
"confidence": "high",
"marketCap": "$390.0B",
"volume24h": "$12.3B",
"priceChange24h": "-1.25%",
"sources": [
"on-chain DEX",
"DeFi Llama",
"CoinGecko"
]
}
/trending-tokens
Standard · $0.005
Get currently trending tokens by volume and price movement.
chain
query
optional
(default: base)
curl "https://chainray.online/trending-tokens?chain=base"
{
"chain": "base",
"tokens": [
{
"symbol": "DEGEN",
"priceUsd": 0.012,
"priceChange24h": "+15.3%",
"volume24h": 5200000
}
]
}
/dex-trades
Analytics · $0.01
Get recent DEX trades for a token pair.
chain
query
optional
(default: base)
curl "https://chainray.online/dex-trades?chain=base"
{
"chain": "base",
"trades": [],
"count": 0
}
/new-pairs
Analytics · $0.01
Discover newly created liquidity pools and trading pairs.
chain
query
optional
(default: base)
curl "https://chainray.online/new-pairs?chain=base"
{
"chain": "base",
"pairs": [],
"count": 0
}
/sentiment
Analytics · $0.01
NLP-based token sentiment analysis from news and social media (via CryptoCompare).
token
query
required
chain
query
optional
(default: base)
curl "https://chainray.online/sentiment?token=ETH"
{
"token": "ETH",
"sentiment": "bullish",
"score": 0.72,
"sources": [
"news",
"social"
],
"chain": "base"
}
/token-screener
Pro · $0.02
Advanced token screening with multi-factor analysis.
chain
query
optional
(default: base)
curl "https://chainray.online/token-screener?chain=base"
{
"chain": "base",
"tokens": [],
"filters": {}
}
/market-overview
Flagship · $0.05
Comprehensive market overview — ETH price, gas, top movers, DeFi TVL. Aggregates multiple data sources.
chain
query
optional
(default: base)
curl "https://chainray.online/market-overview?chain=base"
{
"chain": "base",
"ethPrice": 3245.67,
"gas": {},
"topMovers": [],
"defiTvl": "$45B",
"timestamp": 1713000000000
}
/kol-trades
Flagship · $0.05
Track KOL (Key Opinion Leader) trading activity and patterns.
chain
query
optional
(default: base)
curl "https://chainray.online/kol-trades?chain=base"
{
"chain": "base",
"trades": [],
"kolCount": 0
}
/capital-flow-radar
Flagship · $0.05
Capital flow analysis across chains and protocols.
chain
query
optional
(default: base)
curl "https://chainray.online/capital-flow-radar?chain=base"
{
"chain": "base",
"inflows": {},
"outflows": {},
"netFlow": 0
}
/market-pulse
Flagship · $0.05
Real-time market pulse combining price, volume, sentiment, and whale activity.
chain
query
optional
(default: base)
curl "https://chainray.online/market-pulse?chain=base"
{
"chain": "base",
"pulse": {},
"sentiment": "neutral",
"whaleActivity": "low"
}
Gas & Fees
/gas-tracker
Entry · $0.001
Current gas prices with congestion level and trend analysis.
chain
query
optional
Chain name (default: base)
curl "https://chainray.online/gas-tracker?chain=ethereum"
{
"chain": "ethereum",
"current": {
"baseFee": 12.5,
"priorityFee": 1.2,
"unit": "gwei"
},
"trend": "decreasing",
"congestion": "low",
"timestamp": 1713000000000
}
/gas-history
Entry · $0.001
Historical gas price data over recent blocks.
chain
query
optional
(default: base)
curl "https://chainray.online/gas-history?chain=ethereum"
{
"chain": "ethereum",
"blocks": 20,
"history": [
{
"blockNumber": 19500000,
"baseFee": 12.3
}
],
"avgBaseFee": 13.2
}
/gas-predict
Standard · $0.005
Short-term gas price prediction based on recent block trends.
chain
query
optional
(default: base)
curl "https://chainray.online/gas-predict?chain=ethereum"
{
"chain": "ethereum",
"prediction": {
"next5min": 14.2,
"next1hr": 12.8
},
"confidence": "medium",
"trend": "decreasing"
}
/gas-optimization
Standard · $0.005
Get gas optimization recommendations for the current network conditions.
chain
query
optional
(default: base)
curl "https://chainray.online/gas-optimization?chain=ethereum"
{
"chain": "ethereum",
"recommendations": [],
"optimalTiming": "now"
}
Token Data
/token-supply
Entry · $0.001
Get total and circulating supply of an ERC-20 token.
address
path/query
required
chain
query
optional
(default: base)
curl "https://chainray.online/token-supply?address=0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913&chain=base"
{
"token": "USDC",
"totalSupply": "4363039207.94",
"decimals": 6,
"chain": "base"
}
/token-holders
Standard · $0.005
Get top holders of an ERC-20 token.
address
path/query
required
chain
query
optional
(default: base)
curl "https://chainray.online/token-holders?address=0x...&chain=base"
{
"token": "0x...",
"holders": [],
"totalHolders": 0,
"chain": "base"
}
/token-unlock
Pro · $0.02
Track token vesting and unlock schedules.
address
path/query
required
chain
query
optional
(default: base)
curl "https://chainray.online/token-unlock?address=0x...&chain=ethereum"
{
"token": "0x...",
"unlocks": [],
"chain": "ethereum"
}
Address Intelligence
/address-labels
Entry · $0.001
Get known labels for an address (exchange, DEX, contract type).
address
path/query
required
Ethereum address
chain
query
optional
(default: base)
curl "https://chainray.online/address-labels/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48?chain=ethereum"
{
"address": "0xA0b8...",
"labels": [
{
"name": "USDC",
"category": "stablecoin",
"confidence": 0.99
}
],
"chain": "ethereum"
}
/recent-interactions
Standard · $0.005
Get recent transaction interactions for an address.
address
path/query
required
chain
query
optional
(default: base)
curl "https://chainray.online/recent-interactions?address=0x...&chain=base"
{
"address": "0x...",
"interactions": [],
"chain": "base"
}
/wallet-profile
Pro · $0.02
Comprehensive wallet analysis — balances, activity age, transaction patterns.
address
path/query
required
chain
query
optional
(default: base)
curl "https://chainray.online/wallet-profile?address=0x...&chain=base"
{
"address": "0x...",
"balance": {},
"txCount": 0,
"firstSeen": null,
"chain": "base"
}
/smart-money
Pro · $0.02
Track smart money wallet movements and patterns.
chain
query
optional
(default: base)
curl "https://chainray.online/smart-money?chain=ethereum"
{
"chain": "ethereum",
"wallets": [],
"totalTracked": 0
}
/portfolio-analyze
Pro · $0.02
Analyze a wallet's portfolio composition and performance.
address
path/query
required
chain
query
optional
(default: base)
curl "https://chainray.online/portfolio-analyze?address=0x...&chain=base"
{
"address": "0x...",
"totalValueUsd": 0,
"assets": [],
"chain": "base"
}
/credit-score
Pro · $0.02
On-chain credit score for a wallet address (10-factor model).
address
path/query
required
chain
query
optional
(default: base)
curl "https://chainray.online/credit-score?address=0x...&chain=base"
{
"address": "0x...",
"score": 650,
"grade": "B",
"factors": {},
"chain": "base"
}
/address-report
Flagship · $0.05
Comprehensive address report combining wallet profile, risk, labels, and activity.
address
path/query
required
chain
query
optional
(default: base)
curl "https://chainray.online/address-report?address=0x...&chain=base"
{
"address": "0x...",
"profile": {},
"risk": {},
"labels": [],
"chain": "base"
}
Security
/contract-verify
Entry · $0.001
Check if a contract address has verified source code.
address
path/query
required
chain
query
optional
(default: base)
curl "https://chainray.online/contract-verify?address=0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913&chain=base"
{
"address": "0x8335...",
"verified": true,
"chain": "base"
}
/token-risk
Analytics · $0.01
Token risk assessment — checks proxy contracts, verified source, ownership, and honeypot indicators.
address
path/query
required
Token contract address
chain
query
optional
(default: base)
curl "https://chainray.online/token-risk?address=0x...&chain=base"
{
"address": "0x...",
"riskScore": 25,
"isProxy": false,
"isVerified": true,
"ownershipRenounced": true,
"chain": "base"
}
/token-approval
Analytics · $0.01
Check token approval/allowance status for an address.
address
path/query
required
chain
query
optional
(default: base)
curl "https://chainray.online/token-approval?address=0x...&chain=base"
{
"address": "0x...",
"approvals": [],
"riskyApprovals": 0,
"chain": "base"
}
/multi-sig
Analytics · $0.01
Analyze multi-signature wallet configuration.
address
path/query
required
chain
query
optional
(default: base)
curl "https://chainray.online/multi-sig?address=0x...&chain=ethereum"
{
"address": "0x...",
"isMultiSig": false,
"chain": "ethereum"
}
/contract-scan
Pro · $0.02
Deep contract safety scan — bytecode analysis, proxy detection, storage inspection.
address
path/query
required
chain
query
optional
(default: base)
curl "https://chainray.online/contract-scan?address=0x...&chain=base"
{
"address": "0x...",
"isContract": true,
"isProxy": false,
"verified": true,
"chain": "base"
}
/mev-detect
Pro · $0.02
Post-transaction sandwich attack detection. Analyzes surrounding transactions in the same block to identify MEV patterns.
txHash
path
required
chain
query
optional
(default: base)
curl "https://chainray.online/mev-detect/0x...?chain=base"
{
"txHash": "0x...",
"blockNumber": 12345,
"mevDetected": false,
"sandwichAttacks": [],
"riskLevel": "NONE",
"note": "Post-transaction analysis only"
}
/risk-dashboard
Pro · $0.02
Comprehensive risk dashboard for an address.
address
path/query
required
chain
query
optional
(default: base)
curl "https://chainray.online/risk-dashboard?address=0x...&chain=base"
{
"address": "0x...",
"overallRisk": "low",
"categories": {},
"chain": "base"
}
/sandwich-scanner
Pro · $0.02
Scan an address's recent transactions for sandwich attack patterns.
address
path/query
required
chain
query
optional
(default: base)
curl "https://chainray.online/sandwich-scanner?address=0x...&chain=base"
{
"address": "0x...",
"sandwichesDetected": 0,
"transactions": [],
"chain": "base"
}
/mev-shield
Flagship · $0.05
Pre-trade MEV risk assessment (heuristic model). Evaluates sandwich attack risk based on trade size, gas conditions, and chain characteristics. Note: does NOT read mempool.
action
query
optional
Trade type: swap, bridge, add-liquidity (default: swap)
tokenIn
query
optional
(default: USDC)
tokenOut
query
optional
(default: ETH)
amountUsd
query
optional
Trade size in USD (default: 1000)
chain
query
optional
(default: base)
curl "https://chainray.online/mev-shield?action=swap&tokenIn=USDC&tokenOut=ETH&amountUsd=5000&chain=ethereum"
{
"oracleType": "mev-shield",
"risk": {
"sandwichRisk": 0.35,
"riskLevel": "medium"
},
"recommendation": "proceed_with_caution",
"recommendedSlippage": 0.5,
"limitations": [
"No mempool visibility",
"Statistical estimate"
]
}
DeFi
/governance
Standard · $0.005
Get governance information for a protocol.
chain
query
optional
(default: base)
curl "https://chainray.online/governance?chain=ethereum"
{
"chain": "ethereum",
"proposals": [],
"activeVotes": 0
}
/stablecoin-supply
Standard · $0.005
Track stablecoin supply across the chain.
chain
query
optional
(default: base)
curl "https://chainray.online/stablecoin-supply?chain=ethereum"
{
"chain": "ethereum",
"stablecoins": [
{
"symbol": "USDC",
"supply": "42B"
}
]
}
/solver-feed
Standard · $0.005
ERC-7683 cross-chain intent profitability feed.
chain
query
optional
(default: base)
curl "https://chainray.online/solver-feed?chain=base"
{
"chain": "base",
"intents": [],
"timestamp": 1713000000000
}
/defi-yields
Analytics · $0.01
Current DeFi yield opportunities across protocols.
chain
query
optional
(default: base)
curl "https://chainray.online/defi-yields?chain=base"
{
"chain": "base",
"yields": [
{
"protocol": "Aave",
"apy": "4.2%",
"token": "USDC"
}
]
}
/defi-compare
Analytics · $0.01
Compare DeFi protocol metrics side by side.
chain
query
optional
(default: base)
curl "https://chainray.online/defi-compare?chain=base"
{
"chain": "base",
"protocols": []
}
/stablecoin-monitor
Analytics · $0.01
Monitor stablecoin peg health and deviations.
chain
query
optional
(default: base)
curl "https://chainray.online/stablecoin-monitor?chain=base"
{
"chain": "base",
"stablecoins": [
{
"symbol": "USDC",
"peg": 1.0001,
"deviation": "0.01%"
}
]
}
/protocol-tvl
Analytics · $0.01
Get Total Value Locked (TVL) data for DeFi protocols via DeFi Llama.
chain
query
optional
(default: base)
curl "https://chainray.online/protocol-tvl?chain=ethereum"
{
"chain": "ethereum",
"protocols": [
{
"name": "Aave",
"tvlUsd": 12500000000
}
],
"totalTvl": "$45.2B"
}
/yield-farming
Analytics · $0.01
Active yield farming opportunities.
chain
query
optional
(default: base)
curl "https://chainray.online/yield-farming?chain=base"
{
"chain": "base",
"farms": []
}
/flashloan-monitor
Analytics · $0.01
Monitor flashloan activity on the chain.
chain
query
optional
(default: base)
curl "https://chainray.online/flashloan-monitor?chain=ethereum"
{
"chain": "ethereum",
"recentFlashloans": [],
"count": 0
}
/liquidation-alerts
Analytics · $0.01
DeFi lending protocol liquidation alerts.
chain
query
optional
(default: base)
curl "https://chainray.online/liquidation-alerts?chain=ethereum"
{
"chain": "ethereum",
"alerts": [],
"atRiskPositions": 0
}
/impermanent-loss
Analytics · $0.01
Calculate impermanent loss for a liquidity position.
chain
query
optional
(default: base)
curl "https://chainray.online/impermanent-loss?chain=base"
{
"chain": "base",
"ilPct": 0,
"analysis": {}
}
/liquidity-depth
Pro · $0.02
Analyze liquidity depth and concentration for a token.
chain
query
optional
(default: base)
curl "https://chainray.online/liquidity-depth?chain=base"
{
"chain": "base",
"depth": {},
"pools": []
}
/protocol-health
Pro · $0.02
Health metrics for DeFi protocols.
chain
query
optional
(default: base)
curl "https://chainray.online/protocol-health?chain=base"
{
"chain": "base",
"protocols": [],
"healthScore": 0
}
/yield-aggregator
Pro · $0.02
Aggregated yield opportunities across protocols.
chain
query
optional
(default: base)
curl "https://chainray.online/yield-aggregator?chain=base"
{
"chain": "base",
"opportunities": [],
"bestApy": null
}
/defi-opportunity
Pro · $0.02
Curated DeFi opportunities based on current market conditions.
chain
query
optional
(default: base)
curl "https://chainray.online/defi-opportunity?chain=base"
{
"chain": "base",
"opportunities": []
}
/yield-optimizer
Flagship · $0.05
Optimized yield strategy recommendations.
chain
query
optional
(default: base)
curl "https://chainray.online/yield-optimizer?chain=base"
{
"chain": "base",
"strategies": [],
"bestStrategy": null
}
Whale Tracking
/whale-alerts
Standard · $0.005
Monitor large token transfers (USDC, WETH, USDT, DAI) with exchange classification.
hours
query
optional
Lookback period in hours (default: 6)
minAmount
query
optional
Minimum transfer size in USD (default: 50000)
chain
query
optional
(default: base)
curl "https://chainray.online/whale-alerts?chain=ethereum&minAmount=100000"
{
"chain": "ethereum",
"totalAlerts": 5,
"alerts": [
{
"txHash": "0x...",
"from": "0x...",
"to": "0x...",
"token": "USDC",
"amount": 500000,
"usdValue": 500000,
"direction": "exchange_deposit"
}
]
}
/whale-tracker
Pro · $0.02
Track specific whale wallet activity and movements.
address
path/query
required
chain
query
optional
(default: base)
curl "https://chainray.online/whale-tracker?address=0x...&chain=ethereum"
{
"address": "0x...",
"movements": [],
"chain": "ethereum"
}
Cross-Chain
/bridge-monitor
Standard · $0.005
Monitor cross-chain bridge activity and volumes.
chain
query
optional
(default: base)
curl "https://chainray.online/bridge-monitor?chain=base"
{
"chain": "base",
"bridges": [],
"totalVolume24h": 0
}
/chain-compare
Pro · $0.02
Compare metrics across multiple chains.
curl "https://chainray.online/chain-compare"
{
"chains": [],
"comparison": {}
}
/bridge-flow
Pro · $0.02
Track cross-chain bridge flow data.
chain
query
optional
(default: base)
curl "https://chainray.online/bridge-flow?chain=base"
{
"chain": "base",
"inflows": 0,
"outflows": 0
}
/cross-chain
Pro · $0.02
Cross-chain activity analysis for an address.
address
path/query
required
curl "https://chainray.online/cross-chain?address=0x..."
{
"address": "0x...",
"chainsActive": [],
"totalChains": 0
}
NFT
/nft
Entry · $0.001
Get NFT collection data and token metadata.
address
path/query
required
NFT contract address
chain
query
optional
(default: base)
curl "https://chainray.online/nft?address=0x...&chain=ethereum"
{
"collection": "Example NFT",
"totalSupply": 10000,
"chain": "ethereum"
}
/nft-floor
Standard · $0.005
Get floor price data for an NFT collection.
address
path/query
required
chain
query
optional
(default: base)
curl "https://chainray.online/nft-floor?address=0x...&chain=ethereum"
{
"collection": "0x...",
"floorPrice": null,
"chain": "ethereum"
}
/nft-holders
Analytics · $0.01
Get NFT holder distribution data.
address
path/query
required
chain
query
optional
(default: base)
curl "https://chainray.online/nft-holders?address=0x...&chain=ethereum"
{
"collection": "0x...",
"holders": [],
"uniqueHolders": 0,
"chain": "ethereum"
}
Oracle
/oracle/price-feed
Entry · $0.001
Price oracle feed with multi-source aggregation.
token
query
required
chain
query
optional
(default: base)
curl "https://chainray.online/oracle/price-feed?token=ETH"
{
"token": "ETH",
"priceUsd": 3245.67,
"sources": [
"on-chain",
"DeFi Llama"
],
"confidence": "high"
}
/oracle/gas-avg
Standard · $0.005
Get average gas price oracle data.
chain
query
optional
(default: base)
curl "https://chainray.online/oracle/gas-avg?chain=base"
{
"chain": "base",
"avgGas": 0.005,
"unit": "gwei",
"period": "1h"
}
/oracle/chain-status
Standard · $0.005
Chain health and status oracle.
chain
query
optional
(default: base)
curl "https://chainray.online/oracle/chain-status?chain=base"
{
"chain": "base",
"status": "healthy",
"blockTime": 2,
"latestBlock": 12345678
}
/gas-oracle
Analytics · $0.01
Multi-speed gas oracle (slow/standard/fast/instant).
chain
query
optional
(default: base)
curl "https://chainray.online/gas-oracle?chain=ethereum"
{
"chain": "ethereum",
"slow": 8,
"standard": 12,
"fast": 18,
"instant": 25,
"unit": "gwei"
}
Agent
/agent-card
Entry · $0.001
Lookup an AI agent's capability card (A2A protocol).
agentId
query
required
Agent ID to look up
curl "https://chainray.online/agent-card?agentId=example-agent"
{
"agentId": "example-agent",
"capabilities": [],
"registered": true
}
/agent-card/discover
Standard · $0.005
Discover registered AI agents and their capabilities.
curl "https://chainray.online/agent-card/discover"
{
"agents": [],
"totalRegistered": 0
}
/agent-reputation
Pro · $0.02
On-chain reputation score for AI agents (ERC-8004).
address
path/query
required
chain
query
optional
(default: base)
curl "https://chainray.online/agent-reputation?address=0x...&chain=base"
{
"address": "0x...",
"reputation": 0,
"factors": {},
"chain": "base"
}
/context-brief
Flagship · $0.05
AI-ready context brief — aggregates gas, price, whale, trending, and DeFi data into a single response for agent decision-making.
chain
query
optional
(default: base)
curl "https://chainray.online/context-brief?chain=base"
{
"chain": "base",
"summary": {},
"gas": {},
"price": {},
"whales": {},
"trending": []
}
/agent-card/register
Flagship · $0.05
Register an AI agent capability card (A2A protocol).
body
body (JSON)
required
Agent card data
curl -X POST "https://chainray.online/agent-card/register" -H "Content-Type: application/json" -d '{"name":"MyAgent","capabilities":["trade"]}'
{
"registered": true,
"agentId": "..."
}
/context-brief/workflow
Flagship · $0.05
Role-differentiated context brief with multi-agent workflow orchestration (CaaS v2).
chain
query
optional
(default: base)
curl "https://chainray.online/context-brief/workflow?chain=base"
{
"chain": "base",
"workflow": {},
"roles": []
}
/intent
Pro · $0.03
Natural language intent router — auto-routes your query to the best endpoint combination.
q
query
required
Natural language query
chain
query
optional
(default: base)
curl "https://chainray.online/intent?q=what%20is%20the%20gas%20price%20on%20ethereum"
{
"intent": "gas-check",
"endpoints": [
"/gas-tracker"
],
"result": {},
"chain": "ethereum"
}
/watch
Pro · $0.02
Create a watchlist entry with a full data snapshot for an endpoint.
endpoint
query
required
chain
query
optional
(default: base)
curl "https://chainray.online/watch?endpoint=/gas-tracker&chain=ethereum"
{
"watchId": "...",
"snapshot": {},
"timestamp": 1713000000000
}
/watch-diff
Entry · $0.005
Get diff since last watch snapshot (75% cheaper than full re-query).
watchId
query
required
curl "https://chainray.online/watch-diff?watchId=..."
{
"watchId": "...",
"changed": true,
"diff": {},
"timestamp": 1713000000000
}
Predictions
/predict/gas
Analytics · $0.01
Gas price prediction for next 5 minutes and 1 hour based on block trend analysis.
chain
query
optional
(default: base)
curl "https://chainray.online/predict/gas?chain=ethereum"
{
"chain": "ethereum",
"predictions": {
"next5min": 14.2,
"next1hr": 12.8
},
"methodology": "statistical"
}
/predict/whale-move
Pro · $0.03
Whale behavior prediction based on historical patterns.
chain
query
optional
(default: base)
curl "https://chainray.online/predict/whale-move?chain=ethereum"
{
"chain": "ethereum",
"prediction": {},
"confidence": "medium"
}
/predict/liquidity
Pro · $0.03
TVL and liquidity trend prediction.
chain
query
optional
(default: base)
curl "https://chainray.online/predict/liquidity?chain=base"
{
"chain": "base",
"prediction": {},
"trend": "stable"
}
/predict/token-momentum
Pro · $0.03
Token momentum prediction based on volume and price patterns.
chain
query
optional
(default: base)
curl "https://chainray.online/predict/token-momentum?chain=base"
{
"chain": "base",
"tokens": [],
"prediction": {}
}
Analytics
/mev-intel
Flagship · $0.05
Cross-DEX spread analysis with gas cost estimation. Uses heuristic model based on 24h price volatility — NOT real-time mempool data.
chain
query
optional
(default: base)
curl "https://chainray.online/mev-intel?chain=base"
{
"type": "mev-intelligence",
"chain": "base",
"opportunities": [],
"viableCount": 0,
"methodology": "Heuristic estimation",
"limitations": [
"Not real-time",
"No mempool access"
]
}
Aggregated
/chain-overview
Bundle · $0.01
Full chain overview in one call: gas + health + protocol + supply + block. Saves ~80% vs individual calls.
chain
query
optional
(default: base)
curl "https://chainray.online/chain-overview?chain=base"
{
"chain": "base",
"gas": {},
"health": {},
"protocols": [],
"supply": {},
"block": {}
}
/defi-scan
Bundle · $0.02
Aggregated DeFi scan: yields + TVL + farming + stablecoins + comparison.
chain
query
optional
(default: base)
curl "https://chainray.online/defi-scan?chain=base"
{
"chain": "base",
"yields": {},
"tvl": {},
"farms": {},
"stablecoins": {}
}
/security-check
Bundle · $0.02
Aggregated security check: token risk + contract scan + approvals + credit score.
address
path/query
required
chain
query
optional
(default: base)
curl "https://chainray.online/security-check?address=0x...&chain=base"
{
"address": "0x...",
"tokenRisk": {},
"contractScan": {},
"approvals": {},
"creditScore": {}
}
/wallet-intel
Bundle · $0.02
Aggregated wallet intelligence: profile + interactions + credit + portfolio + labels.
address
path/query
required
chain
query
optional
(default: base)
curl "https://chainray.online/wallet-intel?address=0x...&chain=base"
{
"address": "0x...",
"profile": {},
"interactions": {},
"credit": {},
"portfolio": {},
"labels": {}
}
/trade-signal
Bundle · $0.03
Aggregated trade signal: trending + whales + smart money + pairs + KOL.
chain
query
optional
(default: base)
curl "https://chainray.online/trade-signal?chain=base"
{
"chain": "base",
"trending": {},
"whales": {},
"smartMoney": {},
"newPairs": {},
"kol": {}
}
Real-time Stream
/stream/whale-alerts
Stream · $0.05
60-second Server-Sent Events stream of whale movements. Events pushed every 5 seconds.
chain
query
optional
(default: base)
curl -N "https://chainray.online/stream/whale-alerts?chain=ethereum"
SSE stream: data: {type: 'whale-monitor', alerts: [...], timestamp: ...}
/stream/gas
Stream · $0.02
60-second real-time gas price stream. Updates every 3 seconds.
chain
query
optional
(default: base)
curl -N "https://chainray.online/stream/gas?chain=ethereum"
SSE stream: data: {type: 'gas-monitor', gas: {...}, timestamp: ...}
/stream/price
Stream · $0.02
60-second real-time token price stream.
token
query
required
chain
query
optional
(default: base)
curl -N "https://chainray.online/stream/price?token=ETH&chain=base"
SSE stream: data: {type: 'price-monitor', price: {...}, timestamp: ...}
/stream/trades
Stream · $0.03
60-second real-time DEX trade stream.
chain
query
optional
(default: base)
curl -N "https://chainray.online/stream/trades?chain=base"
SSE stream: data: {type: 'trade-monitor', trades: [...], timestamp: ...}
/stream/mempool
Stream · $0.08
60-second large pending transaction stream. Monitors whale-scale transfers in near real-time.
chain
query
optional
(default: base)
curl -N "https://chainray.online/stream/mempool?chain=ethereum"
SSE stream: data: {type: 'mempool-monitor', largeTransfers: [...], timestamp: ...}
Utility
/batch
Entry · $0.001
Execute multiple endpoint queries in a single request (up to 10). Charged as one $0.001 request regardless of sub-query count.
queries
body (JSON array)
required
Array of {endpoint, params} objects
curl -X POST "https://chainray.online/batch" -H "Content-Type: application/json" -d '{"queries":[{"endpoint":"/price","params":{"token":"ETH"}},{"endpoint":"/gas-tracker"}]}'
{
"batchSize": 2,
"results": [
"..."
],
"totalValue": "$0.012",
"charged": "$0.001"
}
/tx-decode
Analytics · $0.01
Decode transaction input data into human-readable format.
txHash
path
required
chain
query
optional
(default: base)
curl "https://chainray.online/tx-decode/0x...?chain=base"
{
"txHash": "0x...",
"decoded": {
"method": "swap",
"params": {}
},
"chain": "base"
}
/verify-proof
Entry · $0.005
Verify a Chain Proof cryptographic signature to confirm data authenticity.
body
body (JSON)
required
Proof data to verify
curl -X POST "https://chainray.online/verify-proof" -H "Content-Type: application/json" -d '{"proof":"...", "data":"..."}'
{
"valid": true,
"chain": "base",
"blockNumber": 12345678
}
Identity
/ens-resolve
Entry · $0.001
Resolve ENS name to address or reverse lookup.
name
query
required
ENS name (e.g. vitalik.eth) or address for reverse
curl "https://chainray.online/ens-resolve?name=vitalik.eth"
{
"name": "vitalik.eth",
"address": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
"avatar": null
}
Block Data
/block-info
Entry · $0.001
Get information about a specific block or the latest block.
block
query
optional
Block number (default: latest)
chain
query
optional
(default: base)
curl "https://chainray.online/block-info?chain=base"
{
"chain": "base",
"blockNumber": 12345678,
"timestamp": 1713000000,
"txCount": 45,
"gasUsed": "12000000"
}
/chain-health
Pro · $0.02
Chain health metrics — block time, finality, RPC status.
chain
query
optional
(default: base)
curl "https://chainray.online/chain-health?chain=base"
{
"chain": "base",
"healthy": true,
"blockTime": 2,
"latestBlock": 12345678
}
Contract Data
/contract-events
Standard · $0.005
Get recent contract events/logs for an address.
address
path/query
required
chain
query
optional
(default: base)
curl "https://chainray.online/contract-events?address=0x...&chain=base"
{
"address": "0x...",
"events": [],
"chain": "base"
}