x402-erc7710
यह क्या करती है
यह स्किल ऐसे डेमो बनाने के लिए है जहाँ AI एजेंट ऑनलाइन सेवाओं का भुगतान करता है। यह हर अनुरोध के भुगतान को ऐसी अनुमति के साथ जोड़ती है जो एजेंट को तय सीमा में खर्च करने देती है।
कब इस्तेमाल करें
- ✓जब आप चाहते हों कि एजेंट वेब सेवा का भुगतान हर अनुरोध पर अलग-अलग करे।
- ✓जब एजेंट को तय बजट में सदस्यता का भुगतान लगातार करते रहना हो।
- ✓जब आप जाँचना चाहते हों कि कोई पेड वेब सेवा जवाब देने से पहले भुगतान माँगती है या नहीं।
Skill का लिंक
https://github.com/internet-court/internet-court-skill/blob/main/integrations/x402-erc7710/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“मैं चाहता हूँ कि मेरा एजेंट वेब सेवा का भुगतान हर अनुरोध पर करे, लेकिन उसका खर्च तय बजट के भीतर रहे।”
हर हफ़्ते 5 नई skills, 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
- लाइसेंस
- —
- अपडेट की गई
- 26/10/2026
कमेंट
- …
इस repository की और skills
internet-court
7.0kयह आपके एजेंट को AI एजेंट या पेड सेवा से सुरक्षित तरीके से भुगतान और लेन-देन की शुरुआती दिशा देती है, और सही विशेष गाइड बताती है।
genlayer-erc7710-connector
7.0kयह आपके एजेंट को AI समीक्षा के नतीजे को अनुमति प्रणाली से जोड़ने देती है, ताकि खराब समीक्षा एजेंट की अनुमतियाँ सीमित कर सके।
genlayer-intelligent-contracts
7.0kयह आपके एजेंट को AI जज के नियम, सबूत और नतीजे तय करने में मदद करती है, जो जाँचता है कि दूसरा एजेंट अपने अधिकार के दायरे में रहा या नहीं।
0g-compute
7.0kयह आपके एजेंट को 0G विकेंद्रीकृत GPU नेटवर्क पर चैटबॉट, इमेज टूल और स्पीच फ़ीचर बनाना सिखाती है, परखे हुए कोड पैटर्न के साथ।
मिलती-जुलती skills
add-model-provider
394kयह आपके एजेंट को सुरक्षित कमांड से OpenClaw में नया AI मॉडल प्रोवाइडर जोड़ने, API कीज़ को सादे टेक्स्ट से बचाने और लाइव टेस्ट चलाने देती है।
acp-router
394kयह आपके एजेंट को OpenClaw के ज़रिए Claude Code या Cursor जैसे कोडिंग असिस्टेंट को काम भेजने देती है, ताकि काम उसी टूल में चले।
browser-automation
394kयह आपके एजेंट को लॉगिन, टैब और अटकी वेब पेज से उबरने समेत, वेबसाइट पर चरण-दर-चरण काम करना सिखाती है।