x402-agentic-creation
The monetization layer for the Agentic Web.
Enable your agent to autonomously earn USDC on Base or Solana by monetizing its own API endpoints or services. This skill handles provisioning, earnings tracking, and automated withdrawals via the x402 protocol.
Official Website | LLM Documentation
Platform Data
- - Protocol: x402 (HTTP 402 Payment Required)
- Currency: USDC (Stablecoin)
- Networks: Base Mainnet (Ethereum L2), Solana Mainnet
- Fees: 1% platform fee (99% provider revenue)
- Payouts: Daily automated withdrawals
- Min Price: $0.001 per request
x402 Protocol Flow
- 1. Challenge: Gateway returns HTTP 402 with payment headers.
- Transfer: Agent submits USDC transfer to specified address.
- Verification: Facilitator confirms transaction on-chain.
- Dispatch: Gateway forwards the authorized request to the provider.
Activation
Add this skill to your agent to allow it to:
- - Provision: Register a new API gateway instance on GateX402.
- Monetize: Set USDC pricing per request for its tools/endpoints.
- Withdraw: Transfer USDC earnings to its wallet.
Tools
provision_api
Use this tool to register a new API on the GateX402 gateway.
-
api_name — Human-readable name for the API.
-
network — CAIP-2 network ID (e.g.
eip155:8453 for Base Mainnet,
solana:5eykt4UsFv8P8NJdTREpY1vzqAQZSSfL for Solana Mainnet).
-
origin_url —
Your API’s base URL (the backend you are monetizing), e.g.
https://your-api.example.com. Do not use the gateway URL (
api.gatex402.dev).
-
routes — Array of
{ path_pattern, method, price_usdc } (e.g.
path_pattern: "/v1/chat",
method: "POST",
price_usdc: 0.01).
- - Outcome: Returns only
api_slug, provider_id, and a short message in a boundary-wrapped response. The management token is stored by the runtime via storeManagementToken and is never returned to the agent.
get_earnings
Retrieve real-time balance of earned USDC split by network.
- - Inputs: None (uses management token from host).
- Outcome: Sanitized balance data wrapped in
<!-- GATEX402_API_RESPONSE --> boundaries.
withdraw_funds
Trigger a payout to your registered wallet.
- - Required Inputs:
network (e.g. eip155:8453 for Base Mainnet, solana:5eykt4UsFv8P8NJdTREpY1vzqAQZSSfL for Solana Mainnet). - Outcome: Sanitized status/tx data wrapped in response boundaries.
Guardrails
- - Management Token: The runtime stores the
gx4_mgmt_... token via storeManagementToken; it is never returned to the agent. - Credentials: Wallet private key and management token are injected by the host via
createTools only; they must never appear in tool parameters.
Resources
- - Backend: https://api.gatex402.dev (all provisioning, balance, and withdrawal requests)
- OpenAPI spec: https://api.gatex402.dev/openapi.json
- Homepage: https://gatex402.dev
- Bazaar Discovery: https://gatex402.dev/discover
- AI Plugin: https://api.gatex402.dev/.well-known/ai-plugin.json
x402-代理化创建
代理化网络的货币化层。
让你的代理能够通过在Base或Solana网络上将其自身的API端点或服务货币化,自主赚取USDC。此技能通过x402协议处理资源调配、收益追踪和自动提现。
官方网站 | LLM文档
平台数据
- - 协议: x402 (HTTP 402 支付要求)
- 货币: USDC (稳定币)
- 网络: Base主网 (以太坊L2), Solana主网
- 费用: 1%平台费用 (99%提供商收入)
- 支付: 每日自动提现
- 最低价格: 每次请求$0.001
x402协议流程
- 1. 质询: 网关返回带有支付头信息的HTTP 402。
- 转账: 代理向指定地址提交USDC转账。
- 验证: 协调器在链上确认交易。
- 分发: 网关将授权请求转发给提供商。
激活
将此技能添加到你的代理中,使其能够:
- - 资源调配: 在GateX402上注册一个新的API网关实例。
- 货币化: 为其工具/端点设置每次请求的USDC定价。
- 提现: 将USDC收益转账到其钱包。
工具
provision_api
使用此工具在GateX402网关上注册一个新的API。
- api_name — API的人类可读名称。
- network — CAIP-2网络ID (例如Base主网为eip155:8453,Solana主网为solana:5eykt4UsFv8P8NJdTREpY1vzqAQZSSfL)。
- origin_url —
你的API的基础URL (你正在货币化的后端),例如https://your-api.example.com。不要使用网关URL (api.gatex402.dev)。
- routes — { path
pattern, method, priceusdc } 数组 (例如 path
pattern: /v1/chat, method: POST, priceusdc: 0.01)。
- - 结果: 仅返回apislug、providerid以及边界包裹响应中的简短消息。管理令牌由运行时通过storeManagementToken存储,且永远不会返回给代理。
get_earnings
检索按网络划分的已赚取USDC的实时余额。
- - 输入: 无 (使用来自主机的管理令牌)。
- 结果: 包裹在边界内的经过清理的余额数据。
withdraw_funds
触发向已注册钱包的支付。
- - 必需输入: network (例如Base主网为eip155:8453,Solana主网为solana:5eykt4UsFv8P8NJdTREpY1vzqAQZSSfL)。
- 结果: 包裹在响应边界内的经过清理的状态/交易数据。
防护措施
- - 管理令牌: 运行时通过storeManagementToken存储gx4mgmt...令牌;它永远不会返回给代理。
- 凭证: 钱包私钥和管理令牌仅由主机通过createTools注入;它们绝不能出现在工具参数中。
资源
- - 后端: https://api.gatex402.dev (所有资源调配、余额和提现请求)
- OpenAPI规范: https://api.gatex402.dev/openapi.json
- 主页: https://gatex402.dev
- Bazaar发现: https://gatex402.dev/discover
- AI插件: https://api.gatex402.dev/.well-known/ai-plugin.json