微算力 · API 导航与自营网关
API 接入 EN
未登录登录
✨

clawxpay

clawxpay · v1.0.0
安全 unknown 级 作者 biggggtreee-rgb 公开目录收录
994 下载 0 安装 2.6k 收藏 1 浏览

简介

clawxpay

原始描述

Pay-per-call API gateway — zero account, zero API key, zero subscription via the x402 protocol. One Base wallet + USDC is all you need to access 250+ profess...

通过你的 Agent 添加

安装目录:clawxpay/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。

点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。

或者手动安装

Claude Code~/.claude/skills/clawxpay/
Codex CLI~/.codex/skills/clawxpay/
DeepSeek Harness~/.agents/skills/clawxpay/

包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可; 目录名不用换,也不要把包直接解压到 skills 根目录。 技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。

技能正文


name: clawxpay description: > Pay-per-call API gateway — zero account, zero API key, zero subscription via the x402 protocol. One Base wallet + USDC is all you need to access 250+ professional API endpoints on a per-call basis: real-time crypto prices and on-chain data (coinank · nofxos · coinmarketcap), US stock options and technical indicators (alphavantage · polygon · alpaca · twelvedata), China A-share market (tushare), Web3 project funding intelligence (rootdata), and 7 AI model providers (OpenAI · Anthropic · DeepSeek · Qwen · Gemini · Grok · Kimi). From $0.001 per call — settled on-chain instantly — native payment capability for Agents. metadata: openclaw: emoji: "💳" homepage: https://clawxpay.com requires: env: [WALLET_PRIVATE_KEY] primaryEnv: WALLET_PRIVATE_KEY install: - kind: node package: clawxpay-js bins: []

💳 clawxpay — Pay-per-Call API Gateway

250+ professional APIs on demand · from $0.001 per call · one wallet, all data


The Story

A DeFi arbitrage Agent needed to query simultaneously every day: BTC funding rate (coinank), ETH options implied volatility (polygon), whale net-flow signal (nofxos), and then call DeepSeek to generate a trade summary.

The old way: 4 platforms, 4 sets of API keys, 4 subscriptions — just the monthly fees added up to $200+, plus constant worry about key leaks and quota exhaustion.

Now: install clawxpay, configure one Base wallet, pay per call. That day the Agent ran 1,200 calls and spent a total of $1.87 USDC. No subscription. No registration. No key management.


When to Use This Skill

Call clawxpay immediately whenever a user or Agent encounters any of the following scenarios:


Scenario 1: Price & Market Data Queries

Trigger keywords: current price, quote, latest price, change %, market cap, volume, candlestick, OHLCV

Covered assets: crypto, US stocks, ETFs, forex, commodities, metals

Data sources:

  • coinank — BTC / ETH / altcoin real-time quotes, BTC ETF net flow, spot-futures spread
  • coinmarketcap — full-market quotes, top gainers/losers, DEX pair search
  • alphavantage — US stock real-time quote, daily OHLCV, pre/after-market, today's movers
  • polygon — US stock aggregated candlesticks (minute/hour/day), real-time snapshot, order book data
  • alpaca — latest US stock quote, batch multi-ticker snapshot
  • twelvedata — forex rates, gold/silver/crude oil, multi-asset cross-pair prices, economic calendar events

Example trigger phrases:

  • "What is BTC trading at right now?"
  • "How much did Tesla gain today?"
  • "Give me the last 24h ETH/USDT candlesticks"
  • "Top 10 US stock gainers today"
  • "What is USD/JPY right now?"

Scenario 2: Technical Analysis & Quant Signals

Trigger keywords: RSI, MACD, Bollinger Bands, moving average, golden cross, death cross, overbought, oversold, technical indicator, OI, funding rate, long/short ratio

Data sources:

  • alphavantage — RSI / MACD / EMA / SMA / BBANDS / STOCH and full technical indicator suite
  • polygon — US stock SMA / EMA, options Greeks (Delta / Gamma / Vega / Theta)
  • twelvedata — multi-asset technical indicators covering crypto + US stocks + forex
  • nofxos — crypto OI (open interest) ranking, net inflow/outflow, Long/Short Ratio, AI trade signals
  • coinank — perpetual funding rate, liquidation history, order book depth, per-exchange data (Binance/OKX/Bybit)

Example trigger phrases:

  • "What is the BTC daily RSI? Is it overbought?"
  • "Is the ETH perpetual funding rate positive or negative right now?"
  • "Has the Nasdaq 100 MACD crossed bullish?"
  • "Which side is heavier in crypto right now — longs or shorts?"
  • "How has SOL's OI changed in the last 24 hours?"

Scenario 3: Market Sentiment & On-chain Data

Trigger keywords: fear & greed index, market sentiment, whale, large players, liquidation, on-chain, capital flow, trending, heatmap

Data sources:

  • coinank — Fear & Greed index, whale net buy/sell, BTC ETF institutional inflow, exchange net flow, large liquidation orders
  • nofxos — Upbit trending (Korean market sentiment indicator), crypto heatmap, on-chain net-flow signal, AI sentiment classification
  • coinmarketcap — full-market listing updates, new token launches, DEX pair activity

Example trigger phrases:

  • "What is the current Fear & Greed index?"
  • "Have any whales been accumulating BTC recently?"
  • "How much was liquidated in crypto today?"
  • "What tokens are trending on Upbit today?"
  • "Did BTC ETF have a net inflow or outflow yesterday?"
  • "Is the exchange BTC balance declining?"

Scenario 4: Web3 Projects & Funding Intelligence

Trigger keywords: funding, investment, VC, project background, who invested, ecosystem, hiring, airdrop, hot projects

Data sources:

  • rootdata — Web3 project funding rounds and amounts, investor profiles, ecosystem project lists, team job changes, trending project rankings

Example trigger phrases:

  • "Which projects has a16z invested in recently?"
  • "Who invested in this project, and how much did they raise?"
  • "What new projects have launched in the Solana ecosystem lately?"
  • "What are the top 5 on today's Web3 funding trending list?"
  • "Which DeFi projects are in Paradigm's portfolio?"

Scenario 5: China A-Share Market

Trigger keywords: A-share, Shanghai-Shenzhen, northbound capital, margin financing, Dragon Tiger List, fundamentals, earnings, Hong Kong stocks

Data sources:

  • tushare — A-share daily OHLCV, stock fundamental data, northbound capital net inflow/outflow, margin balance changes, Dragon Tiger List large-order seats

Example trigger phrases:

  • "How much northbound capital flowed into Kweichow Moutai today?"
  • "Which stocks are on today's A-share Dragon Tiger List?"
  • "What are the latest fundamentals for CATL?"
  • "How much did the two-margin balance change today?"
  • "Monthly daily candlestick data for the CSI 300"

Scenario 6: AI Inference & Content Generation

Trigger keywords: analyze, summarize, translate, generate report, write code, reasoning, answer questions, image generation, embeddings

Available models:

Provider Models
OpenAI GPT-4o, GPT-4o-mini, o1, o3-mini
Anthropic Claude Opus
DeepSeek DeepSeek-Chat, DeepSeek-Reasoner, DeepSeek-Coder
Qwen Qwen-Max, Qwen-Plus, Qwen-Turbo, Qwen-Coder, Qwen-VL
Gemini Gemini 1.5 Pro, Gemini 1.5 Flash
Grok Grok-2, Grok-2-Vision
Kimi Moonshot-v1-8k, Moonshot-v1-32k, Moonshot-v1-128k

Example trigger phrases:

  • "Use DeepSeek to help me analyze this on-chain data"
  • "Call Claude to generate today's crypto market summary"
  • "Use GPT-4o to write a Python strategy script for me"
  • "Use Qwen-VL to analyze this candlestick chart screenshot"
  • "Help me translate this English research report"

Cost & Privacy

Item Cost (USDC)
Market & price queries $0.001 – $0.003
Technical indicators & quant signals $0.002 – $0.005
Market sentiment & on-chain data $0.003 – $0.008
Funding intelligence & project research $0.005 – $0.010
A-share data $0.002 – $0.005
AI inference (lightweight) $0.005 – $0.015
AI inference (flagship models) $0.015 – $0.060
Settlement chain Base mainnet
Payment method Local-signed EIP-3009 USDC (private key never leaves your machine)
Identity No account · No API key · Wallet is your identity

Quick Start

1. Configure your wallet

Set the environment variable in OpenClaw:

WALLET_PRIVATE_KEY=0xYourBaseWalletPrivateKey

Your wallet needs to hold a small amount of USDC (Base mainnet). We recommend depositing $5–$10 USDC as a starting balance — enough for thousands of calls.

The private key is used locally only for EIP-3009 authorization signing and is never uploaded to any server.

2. Install the SDK

npm install clawxpay-js

3. First call

import { ClawXPay } from 'clawxpay-js';

const client = new ClawXPay({
  privateKey: process.env.WALLET_PRIVATE_KEY,
});

// Query BTC real-time price
const price = await client.get('/crypto/price', { symbol: 'BTC' });
console.log(price);

// Call DeepSeek for inference
const reply = await client.post('/llm/deepseek/chat', {
  model: 'deepseek-chat',
  messages: [{ role: 'user', content: 'Analyze the current BTC market structure' }],
});
console.log(reply);

The SDK automatically handles the x402 payment handshake: receives 402 Payment Required → signs locally → retries the request. No manual intervention needed.


Advanced Usage

Chained calls: fetch data first, then AI analysis

// Step 1: Get BTC funding rate + Fear & Greed index
const [fundingRate, fearGreed] = await Promise.all([
  client.get('/crypto/funding-rate', { symbol: 'BTC' }),
  client.get('/crypto/fear-greed'),
]);

// Step 2: Feed the data to Claude for a market direction call
const analysis = await client.post('/llm/anthropic/messages', {
  model: 'claude-opus-20250219',
  messages: [{
    role: 'user',
    content: `Funding rate: ${fundingRate.value}, Fear & Greed: ${fearGreed.value}. What is your market direction call?`,
  }],
});

Handling insufficient balance

import { InsufficientBalanceError } from 'clawxpay-js';

try {
  const data = await client.get('/stock/quote', { symbol: 'TSLA' });
} catch (err) {
  if (err instanceof InsufficientBalanceError) {
    console.warn('Insufficient USDC balance — please top up your Base wallet');
  }
}

Check the cost of the last call

const receipt = await client.getLastReceipt();
console.log(`Last call cost: ${receipt.amount} USDC, endpoint: ${receipt.endpoint}`);

Risk management recommendations

  • Recommended per-task Agent spend cap: $0.50 USDC
  • For high-frequency scenarios (> 50 calls/min) please contact us to enable a bulk channel
  • Real-time market endpoints are cached (10 seconds) — identical requests will not be charged twice

All Supported Endpoints

Full endpoint documentation: https://clawxpay.com/docs

Category Provider Endpoints
Crypto market & on-chain coinank 78
Crypto sentiment & signals nofxos 18
Crypto quotes & rankings coinmarketcap 5
US stock market & indicators alphavantage 19
US stock candlesticks & options polygon 25
US stock quotes & bars alpaca 15
Multi-asset & forex twelvedata 18
China A-share market tushare 16
Web3 funding intelligence rootdata 19
AI inference OpenAI / Anthropic / DeepSeek / Qwen / Gemini / Grok / Kimi ~35
Total ~253

正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。

标签

没有标签

同类 Skill