This Cloudflare Worker sells real-time DeFi yield data via x402 micropayments. Pay 0.01 USDC. Get access. Built for agentic AI. Mainnet ready
x402-yield-base is an early-stage HTML project in the AI payments / x402 ecosystem. It currently has 0 GitHub stars and 0 forks.
Real-time USDC yield opportunities from top Base DeFi protocols via x402 payment protocol.
Endpoint: https://x402-yield-base.cryptoblac.workers.dev/
YieldAgent aggregates real-time yield data from the top DeFi lending protocols on Base:
Get all yield opportunities in one API call. No subscriptions. No API keys. Just pay-per-use with USDC.
0x97d794dB5F8B6569A7fdeD9DF57648f0b464d4F1curl https://x402-yield-base.cryptoblac.workers.dev/x402-info
Returns payment requirements:
{
"x402Version": 1,
"accepts": [{
"scheme": "exact",
"network": "base",
"maxAmountRequired": "0.01",
"payTo": "0x97d794dB5F8B6569A7fdeD9DF57648f0b464d4F1",
"asset": "USDC"
}]
}
Send 0.01 USDC to 0x97d794dB5F8B6569A7fdeD9DF57648f0b464d4F1 on Base network.
curl https://x402-yield-base.cryptoblac.workers.dev/ \
-H "X-Payment: {\"txHash\": \"0xYOUR_TX_HASH\", \"amount\": 0.01}"
{
"success": true,
"data": {
"opportunities": [
{
"id": 1,
"protocol": "Morpho (Base)",
"apy": "8.02%",
"risk": "Low",
"tvl": "$45M",
"asset": "USDC"
},
...
],
"network": "Base",
"lastUpdated": "2026-02-02T19:30:00.000Z"
}
}
Visit the service directly in your browser:
👉 https://x402-yield-base.cryptoblac.workers.dev/
Features:
async function getYieldData(txHash) {
const response = await fetch('https://x402-yield-base.cryptoblac.workers.dev/', {
method: 'GET',
headers: {
'X-Payment': JSON.stringify({
txHash: txHash,
amount: 0.01
})
}
});
if (response.ok) {
const data = await response.json();
return data.data.opportunities;
} else {
throw new Error('Payment verification failed');
}
}
import requests
import json
def get_yield_data(tx_hash):
headers = {
'X-Payment': json.dumps({
'txHash': tx_hash,
'amount': 0.01
})
}
response = requests.get(
'https://x402-yield-base.cryptoblac.workers.dev/',
headers=headers
)
if response.ok:
return response.json()['data']['opportunities']
else:
raise Exception('Payment verification failed')
| Endpoint | Method | Description |
|---|---|---|
/ |
GET | Main API (requires payment) |
/x402-info |
GET | Discovery endpoint (free) |
/.well-known/x402 |
GET | x402 protocol discovery |
/health |
GET | Health check |
interface YieldOpportunity {
id: number;
protocol: string;
apy: string;
risk: "Low" | "Medium" | "High";
tvl: string;
asset: string;
}
interface ApiResponse {
success: boolean;
data: {
opportunities: YieldOpportunity[];
network: string;
lastUpdated: string;
}
}
This service implements the x402 protocol - a standard for micropayment-gated HTTP APIs.
Learn more: x402 Protocol Specification
MIT License - See LICENSE file for details
Built for Base • Powered by x402 Protocol
Your AI trading terminal assistant for US stocks, commodities, forex, and crypto.
The living ecosystem where AI agents complete tasks through workflow loops, improve through iterative execution, are evaluated by mentor agents or humans in the loop, and turn completed work into reusable work experience and data to improve future agents.
The living ecosystem where AI agents complete tasks through workflow loops, improve through iterative execution, are evaluated by mentor agents or humans in the loop, and turn completed work into reusable work experience and data to improve future agents.
The trust layer for agent-to-agent commerce — natural-language mandates, ERC-7710 delegated permissions, x402 payments, escrow, and dispute resolution as one open, catch-all Agent Skill / Claude Code plugin.
Open Source AI trading agent that operates autonomously across 1000+ markets - Polymarket, Kalshi, Binance, Hyperliquid, Solana DEXs, 5 EVM chains. Scans for edge, executes instantly, manages risk while you sleep. Agent commerce protocol for machine-to-machine payments. Self-hosted. Built on Claude.
The self-improving LLM router that optimize your agentic workflows with every runs, works with any harnesses, any models, any loops.