x402-erc7710
하는 일
이 스킬은 AI 에이전트가 온라인 서비스에 돈을 내는 데모를 만들기 위한 것입니다. 요청별 결제와, 정해진 한도 안에서 지출하도록 하는 권한을 결합합니다.
사용하는 경우
- ✓에이전트가 웹 서비스 요금을 요청 한 건마다 결제하게 하고 싶을 때.
- ✓에이전트가 정해진 예산 안에서 구독료를 계속 결제해야 할 때.
- ✓유료 웹 서비스가 응답하기 전에 결제를 요구하는지 확인할 때.
스킬 링크
https://github.com/internet-court/internet-court-skill/blob/main/integrations/x402-erc7710/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“에이전트가 웹 서비스 요금을 요청 단위로 결제하되, 지출은 정해진 예산 안에 머물도록 해 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
스킬은 두 부분을 설명합니다. 웹 서비스는 응답 전에 결제를 요구할 수 있고, 별도의 권한이 에이전트가 시간에 따라 쓸 수 있는 금액을 제한합니다. 에이전트는 단건 요청에는 첫 번째 방식을, 지속 지출에는 두 번째 방식을 사용합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 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
자주 묻는 질문
서비스를 살펴보기만 하고 싶으면 어떻게 하나요?
에이전트는 서비스가 결제를 요구하는지 확인하고, 가격과 조건을 요약합니다. 사용자가 요청하기 전에는 유료 요청을 하지 않습니다.
일회성 결제인가요, 지속 결제인가요?
둘 다입니다. 일회성 요청은 요청별 흐름을, 지속 지출은 권한 흐름을 사용합니다.
이 스킬은 바로 실제 결제를 설정하나요?
아니요. 먼저 서비스를 확인한 뒤 결제 권한을 설정할지 묻습니다.
상세 정보
작성자의 원본 설명
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.
인기도
- GitHub 스타
- 7.0k
- 순위
- #13600
- 라이선스
- —
- 업데이트
- 2026. 10. 26.
댓글
- …
이 저장소의 다른 스킬
internet-court
7.0k에이전트가 다른 AI 에이전트나 유료 서비스와 안전하게 결제하거나 거래하도록 돕고, 적합한 전문 가이드를 알려 줍니다.
genlayer-erc7710-connector
7.0k에이전트가 GenLayer 검토 결과를 권한 시스템에 연결하도록 돕습니다. 나쁜 검토는 에이전트의 권한을 제한하거나 취소할 수 있습니다.
genlayer-intelligent-contracts
7.0k에이전트가 다른 에이전트가 위임받은 범위를 지켰는지 확인하는 AI 심판의 규칙, 증거, 결과를 정하도록 돕습니다.
0g-compute
7.0k에이전트가 0G 탈중앙 GPU 네트워크에서 챗봇, 이미지 도구, 음성 기능을 검증된 코드 패턴으로 만들도록 가르칩니다.
비슷한 스킬
add-model-provider
394k에이전트가 안전한 설정 명령으로 새 AI 모델 제공자를 OpenClaw에 연결하고, API 키를 평문으로 두지 않으며, 실시간 테스트를 실행하도록 돕습니다.
acp-router
394k에이전트가 OpenClaw를 통해 Claude Code나 Cursor 같은 코딩 도우미에 작업을 전달해, 작업이 그 도구에서 실행되도록 돕습니다.
browser-automation
394k에이전트가 로그인, 탭, 페이지 응답이 멈췄을 때의 복구를 포함해 웹 페이지를 단계별로 조작하도록 가르칩니다.