run_script

shallow

io.github.xrplto/xrpl-to · Verify this server

Run a short read-only JavaScript program against the XRP Ledger, for what no other tool answers: a scan of every ledger in a past day (about 22,000 ledgers: split it over three calls and add the parts), a sample of ledgers across history, many accounts' histories, anything that needs a loop over rippled reads. When the question needs one, run it rather than offering to: the all-time transaction count, which no index stores, is a sample of ledgers across history (stratified by period, since a ledger held a few transactions in 2013 and over a hundred now) scaled up and given with its 95% interval. Write the body of an async function and return a JSON value. Inside the program: xrpl(method, params, {network}) returns rippled's result for any read-only command xrpl_command takes (current state comes from the local node; ledgers and transactions older than its ~3 days come from full-history nodes, about 200 ledgers a second; rippled errors such as actNotFound come back in the result); api(path, query) returns any documented public xrpl.to GET endpoint; pmap(items, fn, n) runs fn over items n at a time (use it: one call at a time is slow); log(...) keeps up to 60 lines; rippleTime(s) turns a close_time into an ISO date; ledgersBetween(since, until) returns {first, last, count}, the ledgers that closed in [since, until) (a ledger often closes exactly at midnight, and it belongs to the day it opens). No network, files, timers or modules. Limits per call: 50 s, 20,000 node calls (96 at a time), 300 api calls, 64 MB, 60,000 characters of result. Needs an API key. Ways that work: to go on with a paged read (account_tx) in the next call, return its marker and pass it back in; never restart from a ledger index, since one ledger can hold several of the account's transactions. How many transactions an account sent in a window: get_account_transactions with summary and since/until (sentInRange), or in a program the change in its Sequence less the change in its TicketCount (absent = 0) between ledgers first - 1 and last (account_info with ledger_index). A long account_tx range reads fastest as disjoint ledger sub-ranges paged in parallel, each with its own marker. A day is counted exactly (three calls); a total over weeks or more is best estimated from a uniform random sample of its ledgers (the mean per ledger times the number of ledgers), with its margin of error. Returns: {result} (what the program returned) or {error} (naming its line), with logs[] and stats {xrplCalls, apiCalls, failedCalls, byMethod, ms}, and unfinishedPaging[] {method, account, pagesRead} when a paged read stopped while the node still had more: its totals are then partial, so say so or read on. Example: const v = await xrpl("ledger", {ledger_index: "validated"}); const top = Number(v.ledger_index); const n = await pmap(Array.from({length: 1000}, (_, i) => top - i), async (li) => (await xrpl("ledger", {ledger_index: li, transactions: true})).ledger.transactions.length, 64); return {ledgers: n.length, transactions: n.reduce((a, b) => a + b, 0)};

100.0/100

1 trials · measured 13 days ago

run_script scores 100.0/100 on Vouch's measured behaviour index, from 1 real invocation trials against io.github.xrplto/xrpl-to, measured 12 Nov 2026 under methodology v0.2.0. Every measured component scored 100.

Component breakdown

ComponentWeightValue
Reliability35%not applicable
Schema integrity25%100.0
Failure behaviour15%not applicable
Latency15%not applicable
Concurrency10%not applicable

Tool details

Transport
remote
Credential class
self-provisionable
Input schema
not declared
Output schema
not declared
Side-effect classification
unclassified

Score history

DayScoreTierMethodology
2026-11-12100.0shallowv0.2.0

Probe evidence

ProbeOutcomes
schema_integritypass: 1

Raw request/response logs are not archived yet — the outcome counts above are drawn directly from every recorded trial.

Embed this score

Available for every tool, scored or not — not a verification perk. Always links back to this page.

Vouch score: run_script
[![Vouch score](https://vouch.tools/api/tools/48fa7516-18de-45c0-84ae-e3d516e5837a/badge.svg)](https://vouch.tools/tools/48fa7516-18de-45c0-84ae-e3d516e5837a)
run_script — Vouch