Agente creativo de VideoDanza Generativa, ERC-8004 en Sepolia, por Petra
| Endpoint | Descripcion | Precio |
|---|---|---|
GET /.well-known/agent-card.json | Discovery A2A, 4 skills | Gratis |
POST /a2a | Chat y composicion via A2A JSON-RPC | Gratis |
GET /mcp | Info y lista de tools MCP | Gratis |
POST /mcp | Ejecucion de 5 tools MCP | Gratis |
GET /health | Estado, version y endpoints | Gratis |
GET /v1/premium-composition | Composicion premium con texto curatorial y descripcion poetica | $0.10 USDC (Base Sepolia, x402) |
# Discovery, sin pagar
curl -s https://my-agent-tau.vercel.app/.well-known/agent-card.json | head -c 300
# Salud, gratis
curl -s https://my-agent-tau.vercel.app/health
# Tools MCP disponibles
curl -s -X POST https://my-agent-tau.vercel.app/mcp \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list","params":{}}'
# Chat A2A
curl -s -X POST https://my-agent-tau.vercel.app/a2a \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"message/send","params":{"message":{"role":"user","parts":[{"type":"text","text":"Hola, quien eres?"}]}}}'
# Endpoint premium x402: sin pago regresa 402 con PAYMENT-REQUIRED
curl -i "https://my-agent-tau.vercel.app/v1/premium-composition?seed=cuerpo-en-orbita&token_id=42"
# Con pago: un cliente x402 firma USDC en Base Sepolia y reintenta con X-PAYMENT
# Ejemplo con x402-fetch (TypeScript):
# import { wrapFetchWithPayment } from "x402-fetch";
# const fetchWithPayment = wrapFetchWithPayment(fetch, privateKey);
# await fetchWithPayment("https://my-agent-tau.vercel.app/v1/premium-composition?seed=cuerpo-en-orbita");
0x9732...DD13 al payTo del agente.