x402-erc7710
Qué hace
Esta skill sirve para crear demostraciones en las que un agente de IA paga servicios en línea. Combina pagos por solicitud con un permiso que le deja gastar dentro de límites establecidos.
Cuándo usarla
- ✓Cuando quieres que un agente pague un servicio web una solicitud a la vez.
- ✓Cuando necesitas que un agente siga pagando una suscripción dentro de un presupuesto fijado.
- ✓Cuando compruebas si un servicio web de pago pide un pago antes de responder.
Link de la skill
https://github.com/internet-court/internet-court-skill/blob/main/integrations/x402-erc7710/SKILL.mdCópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.
Cómo usar
La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.
Mensaje listo para pegar
Para Claude Code, Codex o Cursor: ejecútalo en la carpeta del proyecto y la skill queda instalada.
Descarga el SKILL.md y ponlo en la carpeta de skills de tu agente.
Ejemplo de qué pedirle a la IA
“Quiero que mi agente pague un servicio web por solicitud, pero que mantenga su gasto dentro de un presupuesto fijado.”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
La skill explica dos partes. Un servicio web puede pedir un pago antes de responder, y un permiso aparte controla cuánto puede gastar el agente con el tiempo. El agente usa la primera para solicitudes sueltas y la segunda para el gasto continuo.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de GitHub.
x402 + ERC-7710
Use this skill when a user wants a payment or subscription demo where an agent pays for HTTP resources through x402 and spends only within a bounded delegated permission.
Core Model
- x402 is the per-request payment rail. A protected resource can respond with HTTP
402 Payment Required, payment requirements, and a retry path where the client submits a signed payment payload. A facilitator can verify and settle the payment before the server returns the resource. - ERC-7710 is the capability redemption interface. It standardizes how a delegation manager validates permission context and executes delegated actions on behalf of a delegator.
- ERC-7715 is the wallet permission request layer that can be used to obtain scoped permissions for ERC-7710-style delegation.
Use x402 for "pay now for this HTTP request." Use ERC-7710/7715 for "this agent may keep paying under these constraints."
Discovery-First Boundary
When the user has only asked to use or inspect a paid HTTP service, stay in discovery mode:
- Identify the relevant endpoint or resource.
- Confirm whether it returns
402 Payment Required. - Summarize the advertised x402 requirements: network, token, amount, payee, route, and
extra.assetTransferMethodwhen present. - State that no paid request has been made.
- Ask whether the user wants to set up bounded payment authority.
Do not draft a subscription, mandate, cadence, schedule, spend cap, expiration, or wallet permission until the user asks for setup or confirms they want to continue. Do not infer "daily", "weekly", or "recurring" authority from a product objective alone; wait for the user to approve delegation design.
Good discovery response shape:
I found the paid endpoint and its x402 requirements.
- Endpoint: GET /path
- Network: ...
- Token: ...
- Price: ...
- Payee: ...
I have not made a paid request. Do you want me to help set up bounded payment authority for this task?
Trust Objection Mode
When the user objects to trusting the agent with money, keep the options distinct:
- Basic: an agent-controlled funded wallet. This is not a scoped x402/ERC-7710 permission unless another component enforces it. The main limit is the wallet balance.
- Guarded: a user-approved smart-account or wallet permission that limits service, route, token, payee, amount, budget period, request count, and expiry.
- Adjudicated: guarded permission plus signed intent/receipt evidence and a review path that can continue, constrain, or revoke future use.
Do not assign exact route, price, cadence, or expiry values to the Basic option. Those constraints belong in Guarded or Adjudicated setup after the user chooses that path.
Adjudicated Setup Mode
When the user selects adjudicated authority, proceed to setup instead of drafting a final mandate artifact immediately.
The right response is operational:
- confirm adjudicated mode;
- state that setup may take a while;
- list the steps to create an agent session key, prepare the bounded wallet permission request, open user wallet approval, store the permission artifact, verify the x402 requirements, configure signed evidence, and prepare the review path;
- ask the user to approve the guarded wallet permission in their wallet UI;
- wait for the user's approval message.
Do not ask for arbitrary expiration, schedule, or spend-cap choices in this beat unless the previous conversation lacks enough facts to create a safe testnet permission request. Do not claim the permission is ready before the user approves it.
Subscription Pattern
For subscriptions, do not make x402 stateful. Keep x402 as the request payment protocol and put recurrence in the delegated spend policy.
Recommended policy fields:
type AgentSpendPolicy = {
delegator: `0x${string}`;
delegate: `0x${string}`;
token: `0x${string}`;
allowedPayTo: `0x${string}`;
allowedResourcePattern: string;
maxPerRequest: bigint;
maxPerPeriod: bigint;
periodSeconds: number;
validAfter: number;
validUntil: number;
chainId: number;
revocable: boolean;
};
Execution flow:
- User grants a scoped permission through wallet UX, ideally ERC-7715 when available.
- The returned permission context is stored by the agent or subscription manager.
- Agent requests an x402-protected endpoint.
- Server returns payment requirements.
- Agent verifies requirements against the policy: network, token, amount, merchant, route, expiry, and remaini
Preguntas frecuentes
¿Qué hace el agente si solo quiero ver un servicio de pago?
Comprueba si el servicio pide pago y resume el precio y las condiciones. No hace ninguna solicitud de pago hasta que lo indiques.
¿Es para pagos únicos o continuos?
Para ambos. Las solicitudes puntuales usan el flujo por solicitud, y el gasto continuo usa el flujo de permisos.
¿La skill configura un pago real de inmediato?
No. Empieza comprobando el servicio y luego pregunta si quieres configurar la autorización de pago.
Detalles
Descripción original del autor
Design and implement demos combining x402 HTTP payments with ERC-7710 smart contract delegations and ERC-7715 wallet permission requests for subscriptions, bounded agent budgets, recurring spend, pay-per-use APIs, and agentic commerce.
Popularidad
- Estrellas en GitHub
- 7,0 mil
- Posición en el ranking
- #13600
- Licencia
- —
- Actualizada
- 26/10/2026
Comentarios
- …
Más skills de este repositorio
internet-court
7,0 milAyuda a tu agente a pagar, contratar o tratar de forma segura con otro agente de IA o con un servicio de pago, y lo dirige a la guía especializada adecuada.
genlayer-erc7710-connector
7,0 milAyuda a tu agente a conectar el resultado de una revisión de IA con un sistema de permisos, para que una mala revisión limite o cancele los permisos de un agente.
genlayer-intelligent-contracts
7,0 milAyuda a tu agente a definir las reglas, las pruebas y los resultados de un juez de IA que comprueba si otro agente cumplió su mandato.
0g-compute
7,0 milEnseña a tu agente a crear chatbots, herramientas de imagen y funciones de voz sobre la red descentralizada de GPU 0G, usando patrones de código probados.
Skills parecidas
add-model-provider
394 milPermite que tu agente conecte un nuevo proveedor de modelos de IA a OpenClaw con comandos de configuración seguros, mantenga las claves API fuera del texto plano y haga una prueba en vivo.
acp-router
394 milAyuda a tu agente a enviar una tarea a un asistente de programación como Claude Code o Cursor a través de OpenClaw, para que el trabajo se ejecute en esa herramienta.
browser-automation
394 milEnseña a tu agente a controlar páginas web paso a paso, incluidos los inicios de sesión, las pestañas y la recuperación cuando una página deja de responder.