Command Palette

Search for a command to run...

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

xrp-fleet-data

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

Buy live XRP Ledger telemetry and proxied ledger/account reads over HTTP with per-request XRP payments (x402 v2) — no account, no API key, no infrastructure…

fudge144от fudge144339 установок в других каталогах

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

XRP Fleet Data — metered XRPL reads you pay for in XRP

A pay-per-request data rail for agents. Standard x402 v2 flow: we answer 402 Payment Required with a challenge, your wallet signs an XRPL Payment locally, we verify and serve. No signup, no key, nothing to prefund. Payments are non-custodial both directions: destination and amount are frozen inside the blob you signed, and each challenge is bound to a single-use invoice.

Base URL: https://d5e7fd5a.xrplclaw.com/app/nodes Machine-readable pricing contract: GET https://d5e7fd5a.xrplclaw.com/app/nodes/api/v1/pricing Full docs: https://d5e7fd5a.xrplclaw.com/site/nodes/API.md · Agent product card (llms.txt): https://d5e7fd5a.xrplclaw.com/site/nodes/llms.txt

Start here — free liveness probe (no payment)

curl -s https://d5e7fd5a.xrplclaw.com/app/nodes/api/v1/feed/latest

Returns the latest consensus-checked fleet snapshot: metrics.ledger_index, med_fee_drops, queued_txn_count, plus age_s. Read these flags before trusting anything:

  • stale: true / ok: false / tier: "FREE-LEADGEN-STALE" → the consensus bridge stopped feeding (older than ~300 s). Show the last sample but do not present it as live.
  • metrics.close_time_iso: null is normal; use ledger_index deltas for liveness.

Also free: /api/status (server info + books), /api/earnings (aggregate revenue totals only), /api/v1/feed/stats is paid.

Paid paths (drops, 1 XRP = 1,000,000 drops)

Path Drops Returns
GET /api/v1/feed/history?n=.. 200 up to 1440 historical snapshots (~90 s cadence)
GET /api/v1/feed/stats 100 row count, span, ok-rate of the consensed feed
GET /api/v1/ledger?index=validated 100 ledger object (proxied read)
GET /api/v1/account/{r-address}/info 100 account root: balance, sequence, flags

Prices never exceed 200 drops/request today. Confirm live prices before wiring them permanently.

Pay with x402 v2 — use the bundled fail-closed client

This skill ships scripts/guarded-buy.cjs, a fail-closed client whose money path is linear and self-auditing — nothing is signed from a challenge that was not inspected, the bytes about to be signed are re-checked against that inspection, and the seller's receipt must name the tx we signed:

  1. GET the resource → read accepts[0]; sign nothing yet
  2. gate the challenge → host allowlist, xrpl:0, scheme exact, pinned payTo, MAX_DROPS price cap, persisted daily budget, mandatory single-use invoiceId, advertised sourceTag, bounded horizon
  3. presign a Payment built from that object only (same amount, destination, source tag, invoice memo)
  4. gate the pre-sign bytes → TransactionType=Payment, Account=signer, Destination=payTo, Amount=gated drops, SourceTag match, invoice memo present, LastLedgerSequence set
  5. retry once with PAYMENT-SIGNATURE, decode PAYMENT-RESPONSE, and warn loudly if the receipt tx hash differs from our own signature hash
  6. write actual drops into a local per-UTC-day ledger so cumulative spend can never drift past budget
npm i [email protected] xrpl        # in the directory you run from
XRPL_SEED=... node scripts/guarded-buy.cjs /api/v1/feed/stats /api/v1/ledger
NO_PAY=1 XRPL_SEED=... node scripts/guarded-buy.cjs /api/v1/feed/stats   # gate + price only, signs nothing
node scripts/guarded-buy.cjs --selftest                                  # offline proof of every gate

Env knobs (fail-closed defaults): MAX_DROPS (200 = this rail's ceiling), DAILY_BUDGET_DROPS (50000), EXPECT_PAYTO (published payee), EXPECT_HOST, EXPECT_SOURCE_TAG (804681468), MAX_TIMEOUT_SECONDS (300), WS_URL (wss://rpc.xrplclaw.com/ws, used only to fetch fee/sequence — the client never submits), BASE_URL, ALLOW_SPEND_FILE, NO_PAY=1. Output is one JSON line per purchase: {url, paid, drops, tx, ours, settlement, data} — ours is the hash we signed; reconcile tx against your own wallet delta, never against our word.

Use a dedicated low-balance hot wallet. Never your main or a custodial wallet; never paste a seed into chat, a prompt, a file in a repo, or this skill's arguments.

Prefer this client over wiring x402Fetch by hand. A stock wrapped-fetch pays whatever challenge it receives on its own retry round trip — so any cap you enforce on a probe response you read separately can be a different invoice than the one actually signed. If you do use the library directly, pass a paymentRequirementsSelector (and/or your own fetchImpl) so validation runs against the exact accepted object being paid, and pin schemeFilter/network:

import { x402Fetch } from 'x402-xrpl';
import { Wallet } from 'xrpl';
const payWith = x402Fetch({
  wallet: Wallet.fromSeed(process.env.XRPL_SEED), network: 'xrpl:0', schemeFilter: 'exact',
  maxValue: 200_000,                                   // library-level ceiling, drops
  paymentRequirement
Полный SKILL.md на ClawHub

Установить xrp-fleet-data в Claude Code и Claude Desktop

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

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

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

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

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

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

FAQ

Что делает скилл xrp-fleet-data?

Buy live XRP Ledger telemetry and proxied ledger/account reads over HTTP with per-request XRP payments (x402 v2) — no account, no API key, no infrastructure. Use when an agent needs fee pressure / transaction queue depth / ledger liveness / a `ledger` or `account_info` read and can pay drops (100–200 per call) or a flat 30-day plan.

Как установить скилл xrp-fleet-data?

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

Скилл xrp-fleet-data запускает скрипты?

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

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

Сравнить xrp-fleet-data с