Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

simmer-x402

БесплатноЗапускает вложенные скриптыНе проверен

Make x402 payments, handle HTTP 402 Payment Required responses, check Base wallet balances, or access Simmer premium endpoints and other paid APIs. Uses USDC…

SpartanLabsXyzот SpartanLabsXyz★ 57 звёзд на GitHub

Об этом скилле

x402 Payments

Pay for x402-gated APIs using USDC on Base. This skill enables agents to autonomously make crypto payments when accessing paid web resources.

🚨 Framework for x402 payment plumbing, not financial advice. Read DISCLAIMER.md before connecting to a wallet with real funds. Cap per-call payments with --max <USD> or the X402_MAX_PAYMENT_USD env var; the wallet should be a scoped working-capital wallet, not your treasury.

This is a template. The default x402_cli.py handles 402 detection, payment-payload construction, and balance checks. Bring your own policy for which endpoints to pay for, what max payment per call is acceptable, and how to scope the funded wallet.

Setup

  1. Install the Simmer SDK

    pip install simmer-sdk
    
  2. Set your wallet private key

    export EVM_PRIVATE_KEY=0x...your_private_key...
    

    Falls back to WALLET_PRIVATE_KEY if EVM_PRIVATE_KEY is not set (same key Simmer/Polymarket users already have). Your EVM address works on all chains — Polygon for trading, Base for x402 payments.

  3. Fund with USDC on Base

    • Send USDC to your wallet address on Base network
    • x402 payments on Base are fully gasless — you only need USDC, no ETH
  4. Install dependencies

    pip install x402[httpx,evm]
    

Quick Commands

Command Description
python x402_cli.py balance Check USDC and ETH balances on Base
python x402_cli.py fetch <url> Fetch URL with automatic x402 payment
python x402_cli.py fetch <url> --json Same but output raw JSON only
python x402_cli.py fetch <url> --dry-run Show payment info without paying
python x402_cli.py fetch <url> --max 5.00 Override max payment limit
python x402_cli.py rpc <network> <method> [params...] Make RPC call via Quicknode x402

Examples

Check balance

python x402_cli.py balance
x402 Wallet Balance
==============================
Address: 0x1234...5678
Network: Base Mainnet

USDC:  $42.50
ETH:   0.000000 ETH

Fetch free endpoint (no payment needed)

python x402_cli.py fetch "https://api.kaito.ai/api/v1/tokens" --json

Fetch Kaito mindshare data ($0.02/data point via x402)

python x402_cli.py fetch "https://api.kaito.ai/api/payg/mindshare?token=BTC&start_date=2026-02-13&end_date=2026-02-14" --json

Fetch Kaito sentiment data ($0.02/data point via x402)

python x402_cli.py fetch "https://api.kaito.ai/api/payg/sentiment?token=BTC&start_date=2026-02-13&end_date=2026-02-14" --json

Ask AlphaKek knowledge engine ($0.01 via x402)

python x402_cli.py fetch "https://api.alphakek.ai/x402/knowledge/ask" \
  --method POST --body '{"question": "What is the current sentiment on BTC?", "search_mode": "fast"}' --json

Fetch CoinGecko price data ($0.01 via x402)

python x402_cli.py fetch "https://pro-api.coingecko.com/api/v3/x402/simple/price?ids=bitcoin&vs_currencies=usd" --json

Fetch Simmer premium endpoint

python x402_cli.py fetch "https://x402.simmer.markets/api/sdk/context/market-123" \
  --header "Authorization: Bearer sk_live_..." --json

Quicknode RPC — blockchain calls without API keys

# Get ETH balance on Ethereum mainnet
python x402_cli.py rpc ethereum-mainnet eth_getBalance 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045 latest

# Get latest block on Polygon
python x402_cli.py rpc polygon-mainnet eth_blockNumber

# Get token balance on Base
python x402_cli.py rpc base-mainnet eth_call '{"to":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","data":"0x70a08231000000000000000000000000YOUR_ADDRESS"}' latest

Quicknode x402 supports 55+ networks (Ethereum, Polygon, Base, Arbitrum, Solana, Bitcoin, and more). $10 buys 1M RPC credits — each successful call costs 1 credit.

Supported x402 Providers

Provider Endpoint Price Description
Kaito /api/payg/mindshare $0.02/data point Token mindshare time series
Kaito /api/payg/sentiment $0.02/data point Token sentiment time series
Kaito /api/payg/narrative_mindshare $0.02/data point Narrative mindshare time series
Kaito /api/payg/smart_followers $0.20/request Smart follower metrics
AlphaKek /x402/knowledge/ask $0.01/request AI knowledge engine (POST, search_mode: fast/deep/ultrafast)
CoinGecko /api/v3/x402/simple/price $0.01/request Token price data
Simmer /api/sdk/context/:id $0.005/request Market context (rate limit bypass)
Simmer /api/sdk/briefing $0.005/request Portfolio briefing (rate limit bypass)
Simmer /api/sdk/markets/import $0.005/request Market import (daily quota bypass)
Quicknode /:network (55+ networks) $10/1M credits Pay-per-request RPC access (no API key needed)

Kaito API docs: https://github.com/MetaSearch-IO/KaitoX402

Полный SKILL.md на GitHub

Установить simmer-x402 в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

DISCLAIMER.mdclawhub.jsonconfig.jsonrequirements.txtx402_cli.py

FAQ

Что делает скилл simmer-x402?

Make x402 payments, handle HTTP 402 Payment Required responses, check Base wallet balances, or access Simmer premium endpoints and other paid APIs. Uses USDC on Base.

Как установить скилл simmer-x402?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл simmer-x402 запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить simmer-x402 с