闲社服务运行正常AI智能体自动化平台
g

黄金冲击x402

技能标识:goldrush-x402

GoldRush x402 — pay-per-request blockchain data access using the x402 protocol (HTTP 402 Payment Required). Use this skill whenever the user is building an AI agent that needs blockchain data without API keys, wants wallet-based micropayments for on-chain data, needs autonomous or no-account access to the GoldRush API, mentions the x402 protocol, or wants no-signup/no-onboarding blockchain data access. This is the right skill for autonomous agents, serverless applications, and prototyping withou

作者:admin | 来源记录:ClawHub
登记来源
ClawHub
版本
V 3.0.5
检测标记
后台标记通过
免费
免费获取
0
收藏
来源与检测标记为平台登记信息,并不代表已展示可复核的检测报告。使用前请核对版本、依赖和所需权限,建议先在隔离环境中运行。
概述
安装方式
版本历史

黄金冲击x402

GoldRush x402

使用x402协议按请求付费访问GoldRush区块链数据。无需API密钥、无需注册、无需账单——只需一个已注资的钱包。通过透明反向代理提供对基础API端点的访问。

快速开始

typescript
import { HTTPClient } from @x402/core;
import { ExactEvmScheme } from @x402/evm;

const client = new HTTPClient({
scheme: new ExactEvmScheme({
network: eip155:84532, // Base Sepolia
privateKey: process.env.WALLETPRIVATEKEY,
}),
});

// 获取代币余额——支付自动处理
const balances = await client.get(
https://x402.goldrush.dev/v1/eth-mainnet/address/demo.eth/balances_v2/
);
console.log(balances);

安装: npm install @x402/core @x402/evm

x402工作原理

  1. 1. 请求 → 代理调用端点,无需支付
  2. 402 → 服务器响应支付指令(金额、代币、接收方)
  3. 支付 → 代理使用Base上的稳定币签署支付,附带证明重试
  4. 数据 → 服务器在扣费前验证请求,返回数据

x402客户端库自动处理步骤2-3。从你的代码角度看,这只是一个GET请求。

关键安全特性: 代理在扣费前验证你的请求。格式错误的地址、不支持的链或错误参数会返回明确的错误——你无需支付任何费用。

支付: Base Sepolia(测试网)上的USDC。Base主网支持即将推出。

交叉参考

x402提供与基础API相同的端点,具有相同的参数和响应格式。有关详细的端点文档(参数、响应模式、用例),请参阅goldrush-foundational-api技能。

基础URL映射:

  • - 基础API:https://api.covalenthq.com/v1/...
  • x402代理:https://x402.goldrush.dev/v1/...

定价摘要

模式描述示例
固定每次调用固定价格代币余额、NFT持仓、区块详情
分层
按数据量定价 | 交易、事件日志 |

分层(针对可变长度数据)

层级项目数使用场景
小1-50快速查询、近期活动
中
51-200 | 标准查询 | | 大 | 201-500 | 详细分析 | | 超大 | 501+ | 完整历史 |

通过查询参数选择层级:?tier=small

响应缓存

缓存响应成本更低。缓存TTL:

  • - 余额: 30秒
  • 定价数据: 5分钟

AI代理工作流程

1. 发现(免费)

bash curl https://x402.goldrush.dev/v1/x402/endpoints | jq curl https://x402.goldrush.dev/v1/x402/search?q=balance | jq

2. 评估

bash curl https://x402.goldrush.dev/v1/x402/endpoints/get-token-balances-for-address | jq

返回信用费率、定价模型、支持的链——决定调用所需的一切信息。

3. 支付与消费

typescript const balances = await client.get( https://x402.goldrush.dev/v1/eth-mainnet/address/${wallet}/balances_v2/ ); // 与标准GoldRush API相同的JSON格式

参考文件

当需要超出本索引提供的详细信息时,请阅读相关参考文件。

文件何时阅读
overview.md需要x402协议详情、定价模型分解或快速入门代码
ai-agents.md
构建自主代理——四步工作流程、x402与API密钥对比、速率限制 |
| endpoints.md | 需要发现API详情(免费)或可用数据端点目录 |

标签

skill ai

通过对话安装

以下为平台配置的接入选项,并非逐项实测通过。能否安装取决于客户端支持、技能来源和运行环境:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 goldrush-x402-1776179187 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 goldrush-x402-1776179187 技能

通过命令行安装

skillhub install goldrush-x402-1776179187

下载

⬇ 下载 goldrush-x402 v3.0.5(免费)

文件大小: 8.07 KB | 发布时间: 2026-4-15 11:43

v3.0.5 最新 2026-4-15 11:43
- Expanded documentation for the GoldRush x402 skill, clarifying use cases and integration instructions.
- Added detailed Quick Start guide and code examples for seamless pay-per-request blockchain data access.
- Included comprehensive pricing summary with tiered models and caching details.
- Improved cross-referencing to related GoldRush APIs and provided direct guidance on which version to use for specific needs.
- Introduced reference files for deeper dives into protocol details, agent workflows, and endpoint discovery.
返回顶部