{
  "schema_version": "1.124.0",
  "name": "XR-Pulse",
  "provider": "XRPL-Utilities™",
  "description": "Normalized event feed for XRPL agents. Aggregates two sources into one time-ordered JSON stream: public-source news (regulatory press, central-bank releases, crypto-press coverage of Ripple/XRP/RLUSD/XRPL) and on-chain whale activity (every successful XRPL Payment above the storage threshold). News events carry mechanical cross-verification (Jaccard 0.35 over 48h, with publisher-suffix stripping and entity-alias normalization) and a four-hour XRPL macro correlation block (price + active-float + exchange-outflow + 24h settlement volume, all as t0/t1/delta_pct over a 4h window); whale events carry sender + receiver addresses with institutional-watchlist labels resolved from curated and public labels. Deterministic heuristic data only; not an editorial product.",
  "contact": "hello@xrpl-utilities.com",
  "getting_started": "GET /schema once to learn the event shape (note: events[].active_utility differs by source - news events use {active, signals[]}; whale events use {signal: 'whale_transfer', usd_value, sender_label, receiver_label, ...}). POST /events/recent for the time-ordered feed (free for browser callers via Turnstile-issued preview-token JWT from xrpl-utilities.com; $0.10 USD via x402 for non-browser clients). The default response surfaces only whale-grade events (>= $1M USD); pass min_whale_usd: 0 in the request body to get the full $50k+ activity stream alongside news. Each news event has a numerical appearance_count rather than a legitimacy score; consumers decide their own cross-verification threshold.",
  "location": "Cloud-Native / Global",
  "data_residency": "agnostic",
  "pii": "none",
  "capabilities": {
    "feed_type": "public_source_event_log",
    "sources": {
      "regulatory_primary": [
        {
          "key": "sec_press",
          "feed_url": "https://www.sec.gov/news/pressreleases.rss",
          "filter": "ripple|xrp|rlusd|xrpl in title or summary",
          "status": "live"
        },
        {
          "key": "fca_uk",
          "feed_url": "https://www.fca.org.uk/news/rss.xml",
          "filter": "ripple|xrp|rlusd|xrpl in title or summary",
          "status": "live"
        },
        {
          "key": "esma_eu",
          "feed_url": "https://www.esma.europa.eu/rss.xml",
          "filter": "ripple|xrp|rlusd|xrpl in title or summary",
          "status": "live"
        }
      ],
      "central_bank": [
        {
          "key": "federal_reserve",
          "feed_url": "https://www.federalreserve.gov/feeds/press_all.xml",
          "filter": "ripple|xrp|rlusd|xrpl in title or summary",
          "status": "live"
        },
        {
          "key": "ecb_press",
          "feed_url": "https://www.ecb.europa.eu/rss/press.html",
          "filter": "ripple|xrp|rlusd|xrpl in title or summary",
          "status": "live"
        },
        {
          "key": "bank_of_england",
          "feed_url": "https://www.bankofengland.co.uk/rss/news",
          "filter": "ripple|xrp|rlusd|xrpl in title or summary",
          "status": "live"
        },
        {
          "key": "bank_of_japan",
          "feed_url": "https://www.boj.or.jp/en/rss/whatsnew.xml",
          "filter": "ripple|xrp|rlusd|xrpl in title or summary",
          "status": "live"
        },
        {
          "key": "bank_of_canada",
          "feed_url": "https://www.bankofcanada.ca/feed/",
          "filter": "ripple|xrp|rlusd|xrpl in title or summary",
          "status": "live"
        },
        {
          "key": "rba_australia",
          "feed_url": "https://www.rba.gov.au/rss/rss-cb-media-releases.xml",
          "filter": "ripple|xrp|rlusd|xrpl in title or summary",
          "status": "live"
        },
        {
          "key": "bis_speeches",
          "feed_url": "https://www.bis.org/doclist/cbspeeches.rss",
          "filter": "ripple|xrp|rlusd|xrpl in title or summary",
          "status": "live"
        }
      ],
      "standards_body": [
        {
          "key": "fsb",
          "feed_url": "https://www.fsb.org/feed/",
          "filter": "ripple|xrp|rlusd|xrpl in title or summary",
          "status": "live"
        }
      ],
      "crypto_press": [
        {
          "key": "coindesk",
          "feed_url": "https://www.coindesk.com/arc/outboundfeeds/rss/",
          "filter": "ripple|xrp|rlusd|xrpl in title or summary",
          "status": "live"
        },
        {
          "key": "cointelegraph_xrp",
          "feed_url": "https://cointelegraph.com/rss/tag/xrp",
          "filter": "ripple|xrp|rlusd|xrpl in title or summary (source-side tag-filtered)",
          "status": "live"
        },
        {
          "key": "crypto_news_xrp",
          "feed_url": "https://crypto.news/tag/xrp/feed/",
          "filter": "ripple|xrp|rlusd|xrpl in title or summary (source-side tag-filtered)",
          "status": "live"
        },
        {
          "key": "coinspeaker_xrp",
          "feed_url": "https://www.coinspeaker.com/?s=XRP&feed=rss2",
          "filter": "ripple|xrp|rlusd|xrpl in title or summary (source-side tag-filtered)",
          "status": "live"
        }
      ]
    },
    "sources_status_note": "Every source listed here is currently polling and ingesting. The full list of additional candidates that were probed and found unavailable (BaFin, FINMA, FATF, IOSCO, HKMA, MAS, IMF, RippleX Medium, Ripple Insights/Press, OCC, CFTC, etc.) is exposed at /stats.dropped_sources_v1_1 with the specific failure mode for each. Operator policy: no roadmap stubs - if a feed has no working public RSS, it is documented in dropped_sources rather than advertised here.",
    "sources_v1": [
      "bis_speeches",
      "sec_press",
      "cointelegraph_xrp",
      "crypto_news_xrp",
      "coinspeaker_xrp",
      "coindesk",
      "federal_reserve",
      "ecb_press",
      "bank_of_england",
      "bank_of_japan",
      "bank_of_canada",
      "rba_australia",
      "fca_uk",
      "esma_eu",
      "fsb"
    ],
    "sources_v1_note": "DEPRECATED flat alias of capabilities.sources keys. Retained for one schema cycle for clients reading the v1 list shape; removed in 1.9.0.",
    "ingestion_cadence_seconds": 900,
    "correlation_window_hours_default": 4,
    "cross_verification": "Mechanical title-similarity clustering. Title normalization: (1) strip a trailing ' - Publisher' / '| Outlet' segment when it is <= 4 words, (2) lowercase + tokenize on alphanumerics, (3) drop a fixed stopword set (~170 high-frequency news verbs, qualifiers, and structural fillers), (4) apply entity aliases that coalesce surface-form variants (xrp/ripple/xrpl -> xrp_ripple, jpm/jpmorgan/morgan/chase -> jpmorgan, mc/mastercard -> mastercard, tokenised -> tokenized). Events whose resulting token sets share Jaccard >= 0.35 within a 48h window collapse into a single record with cross_verified=true. No editorial judgment.",
    "sec_press_keyword_filter": "SEC press releases are filtered post-fetch to entries whose title or summary contains 'ripple' or 'xrp' (case-insensitive). Other feeds are source-side topic-relevant and not filtered.",
    "whale_xrpl_source": "Continuous on-chain feed alongside the RSS-sourced events. The whale_watcher loop polls validated XRPL ledgers on a recurring cadence and emits one event per successful Payment whose USD value clears the configured whale-grade threshold. XRP and RLUSD only this round; XRP is converted to USD via the Telemetry /healthz oracle, RLUSD is pegged at $1. Events use source='whale_xrpl', primary_url points to xrpscan.com/tx/<hash>, and active_utility carries: currency, usd_value, sender_label + receiver_label (institutional watchlist match), ledger_index, tx_hash, sender_sentinel + receiver_sentinel (XR-Sentinel cross-reference: activity_level, signals, identity {display_name/role/verified/domain/twitter/advisory}, delta {score_change, level_change, hours_since_prior_scan}), sender_did_brief + receiver_did_brief (XLS-40 on-chain DID + linked .well-known/xrp-ledger.toml when the counterparty has published one: {has_did_document, org_name, org_url, description, principal_names, source_toml_url, did_uri}; null/empty-shape when the address has no DID), and telemetry_context (XR-Telemetry macro snapshot at emit time: current_price_usd, active_float_xrp, exchange_outflow_24h_xrp). DID identity is operator-signed on-chain and takes priority over a public explorer label when both are present in the rendered title/brief. Sentinel + Telemetry + DID enrichments are best-effort; consumers should treat null/missing as 'no data this round' rather than an error.",
    "token_escrow_event_source": "Same per-ledger scan as whale_xrpl. For every validated ledger, EscrowCreate, EscrowFinish, and EscrowCancel transactions whose Amount is a non-XRP IOU (XLS-85 Token Escrow, mainnet 2026-02-12) are emitted with source='whale_xrpl' and active_utility.signal='token_escrow_event'. subtype is one of: token_escrow (default) | dvp_candidate. dvp_candidate fires only when an EscrowCreate with a Condition matches an earlier EscrowCreate within 1h that has the SAME Condition AND reciprocal Account-to-Destination ordering, heuristic candidate for an atomic delivery-vs-payment swap, NOT a confirmed pair (heuristic-only marketing; downstream consumers should treat as candidate until live activity validates).",
    "escrow_relock_history_completeness": "/stats/escrow-calendar carries relock_history_complete plus _accounts_read / _accounts_failed / _failed_accounts / _unavailable_reason. relock_history is null, never [], when nothing was readable: an empty list would read as 'no relocks in this window', which is the opposite of 'we could not read'. avg_monthly_net_release_xrp is suppressed with a named cause on a partial window rather than being averaged over the accounts that happened to answer. The separate `complete` flag keeps its documented scope, the locked total only, and does not cover this.",
    "escrow_release_event_source": "Monthly Ripple XRP escrow release tracker layered on the forward escrow-calendar. Each release is followed by its own XRP, first in first out, through the 20 TOML-attested Ripple escrow accounts, because Ripple usually spends a release about a month after it unlocks. /stats/escrow-calendar carries last_release and prior_release: gross unlocked, relocked_xrp (re-escrowed), net_released_xrp (paid out of the escrow accounts), held_xrp (still in them), funds_status (held | disbursing | settled), held_in[], paid_out[], per-tranche detail, a reescrow leg naming the forward month each re-lock went into, and a configurable-window (default 7d) exchange-touch trace of the wallets the release was paid to: one hop, capped at what each wallet received, so it is an upper bound (by_exchange breakdown, pct of the paid-out share, null until something is paid out). relock_history rows carry the same per-release split. Two info-severity alerts ride the /alerts WebSocket channel (stream token from /stream/purchase required): escrow_release when a release unlocks and escrow_relock when it has been fully spent. Deterministic on-chain data only.",
    "rlusd_distribution_source": "Mint-to-CEX distribution signal for Ripple's RLUSD. Ripple's RLUSD mints land on a distribution wallet first (the leg after the mint); the rlusd watcher loop polls that wallet's outgoing RLUSD Payments and records each into the rlusd_distributions table. /stats/rlusd-distribution reads a rolling window (default 7d, max 30d), attributes every recipient to a named venue at read time via the institutional watchlist + public label resolution, and splits the flow into three buckets: by_exchange (recipient resolves to an exchange-role label), to_labeled_non_exchange (transit hops, consolidators, market makers), and unattributed (no label). Each bucket row carries rlusd total, tx_count, last_ledger_time, sample tx hashes, and recipient address. The response also reports to_exchange_rlusd + to_exchange_pct and a mint_context block (total RLUSD minted onto the pipe in the same window, observed independently so the two totals need not match within one window). Amounts are RLUSD face value; RLUSD is a USD-pegged stablecoin so 1 RLUSD ~= 1 USD. The signal corrects reading a fresh RLUSD mint as XRP sell-pressure: RLUSD routed to an exchange is institutional stablecoin provisioning, not XRP distribution. A newly recorded distribution to a named exchange that clears the RLUSD floor (default 5M) and is recent (within 6h, so a fresh container's historical backfill does not flood) fires one info-severity alert on the /alerts WebSocket channel (stream token from /stream/purchase required): rule='rlusd_cex_distribution', deduped per tx_hash. Deterministic on-chain data only.",
    "issuer_deepfreeze_source": "Same per-ledger scan as whale_xrpl. TrustSet transactions with tfSetDeepFreeze (0x00400000) are emitted with source='whale_xrpl' and active_utility.signal='issuer_deepfreeze'. Issuer = tx.Account; deep-frozen holder = tx.LimitAmount.issuer (XRPL trustline convention from the issuer's perspective). Sanctions-grade compliance signal: deep-freeze prevents the holder from both sending and receiving the IOU, strictly stronger than the regular freeze flag.",
    "whale_xrpl_feed_floor": "POST /events/recent suppresses whale events below the configured default feed floor so RSS-sourced and institutional-grade whale events stay visible alongside the broader on-chain activity stream. Override with the min_whale_usd field on the request body: lower it (down to 0) to see all stored on-chain activity above the storage threshold; raise it to hide whales entirely. Storage threshold and feed floor are independent, so smaller activity is always queryable even when hidden from the default feed.",
    "high_rate_escrow_exclusion": "POST /events/recent excludes XLS-85 token_escrow_event rows from high-rate issuers by default. An issuer whose PEAK single-day escrow count clears PULSE_ESCROW_HIGH_RATE_PER_DAY (default 1000, against a ~6/day organic baseline) is running automated repetition on its own token, which is not amendment adoption and not activity a reader can act on. Left in the pool, one such emitter owns the entire whale candidate budget: on 2026-08-15 the newest 150 activity rows spanned 89 seconds and were all one issuer, while /stats/xls85-totals showed 76,343 escrow events in 24h of which 561 were organic. Detection is computed from stored event rates, never a hardcoded address list, and is the same rule /stats/xls85-totals and the retention sweep already apply. Every response names the excluded issuers in high_rate_escrow_issuers_excluded[], so the exclusion is auditable rather than silent; send include_high_rate_escrows: true for the unfiltered stream. If the rate aggregate cannot be read the exclusion is skipped entirely (fail open, never a narrowed feed presented as complete).",
    "pagination_and_kind_filter": "POST /events/recent supports two optional knobs for column-independent backward pagination. (1) `before_iso` (ISO-8601 string): when set, only events strictly older than this timestamp are returned. Pair with the oldest visible event's published_at to drive an Older-page button; combine with `since_iso` for a bounded date range. (2) `kind` (enum 'news' | 'activity'): 'news' returns external RSS-publisher sources only; 'activity' returns every on-chain watcher source (whale_xrpl, sentinel_signal, rwa_issuer_flow, rwa_issuer_daily, rwa_amm_pool_state, rwa_obligations_delta, focus_watch, relay_burst - the canonical set is at db.ACTIVITY_SOURCES). Fixed 1.66.1: prior versions misclassified focus_watch, relay_burst, and rwa_obligations_delta as news because the bucket was defined by exclusion rather than inclusion. Default unset returns the mixed feed. With `kind` set, `limit` maps 1:1 to that kind's candidate budget (no cross-bucket starvation rebalancing). Both fields are echoed back in the response so paginated walks are self-describing.",
    "permissioned_domain_lifecycle_source": "MOVED TO XR-TRUST 2026-09-06. XLS-70/80 (Credentials + PermissionedDomain) and XLS-81 (Permissioned DEX) activity is no longer emitted into this feed. It was 15% of every /events/recent response and 100% of that share was a single domain-scoped market maker replacing its own quotes at ~1,800 tx/hour -- normal market making, but not news, and it crowded out everything else. Trust always owned this data (Pulse polled Trust /events for it), so the feed moved to its source rather than being filtered here. Read it at https://trust.xrpl-utilities.io/activity: free, newest-first, filterable by category (lifecycle | dex | settlement), account and domain_id, and it COLLAPSES consecutive same-account quote runs into one row with a count rather than dropping them. Historical rows remain in Pulse storage but are not returned. MCP tool: xrpl_trust_permissioned_activity.",
    "rwa_issuer_flow_source": "Two parallel on-chain sources for Real World Asset issuers on XRPL, both deterministic and unit-of-account native (no USD valuation, no NAV reconciliation). (1) source='rwa_issuer_flow' fires per mint (outgoing IOU from issuer) and per burn (IOU returned to issuer). The rwa_issuer_watcher loop polls live ledger reads for each issuer wallet in the curated issuer list on a recurring cadence. active_utility carries: direction (mint|burn), issuer_label, issuer_logical_label (aggregation key when an asset spans multiple issuer wallets such as Ondo OUSG permissioned + public), issuer_address, issuer_domain, asset_class (treasuries|fiat_stable_usd|fiat_stable_eur|fiat_stable_brl|fiat_stable_aud|commercial_paper|money_market|commodity_energy|private_credit|gateway_iou), currency (ASCII display), currency_on_ledger (40-char hex when applicable; useful for Guggenheim DCP tranche tracking where the code rolls forward by maturity), amount, counterparty, ledger_index, tx_hash, and a per-issuer caveat string. (2) source='rwa_issuer_daily' fires once per UTC day per live issuer with the aggregate snapshot. The rwa_daily_snapshot loop reads live issuer state from the XRPL ledger, computes deltas vs the prior day's stored snapshot, and emits one event per issuer. active_utility carries: snapshot_date, obligations_t0/t1/delta, net_circulating_t0/t1/delta (issuers with subtract_treasury_wallet such as OpenEden TBL have their treasury balance excluded from circulating; RWA.xyz reports the unfiltered obligations figure for TBL, which is misleading), trustline_count_t0/t1/delta + trustline_count_truncated (RLUSD has 93k+ trustlines so the count is capped at the page limit; the obligations total remains canonical), treasury_subtraction_wallet, treasury_balance_excluded, and the per-issuer caveat. Tracked issuers: 47 issuer wallets (46 live, 1 rails-configured awaiting a first mint), of which 31 are classic trustline IOUs and 16 are XLS-33 MPTs. The authoritative, always-current set is served by GET /stats/rwa-summary (free, no auth), which returns every tracked issuer with its wallet, asset_class, token_standard, mint_status, circulating supply and per-issuer caveat. That endpoint is the source of truth; this description deliberately does not restate the roster, because a hand-maintained list here goes stale as issuers are promoted. Asset classes currently represented: commercial_paper, commodity, commodity_energy, fiat_stable_aud, fiat_stable_brl, fiat_stable_eur, fiat_stable_sgd, fiat_stable_usd, gateway_iou, money_market, other, private_credit, real_estate, structured_product, treasuries. Semantics worth knowing before consuming the numbers: Ondo OUSG spans a permissioned and a public wallet that aggregate via issuer_logical_label='Ondo OUSG'; Schuman EUROP tracks the primary wallet only, since the Ripple-deployed vanity rEuRoP... carries a 1e11 nominal obligation that distorts dollar-tracked metrics; OpenEden TBL reports net circulating with its treasury balance subtracted, whereas third-party trackers publish the unfiltered obligations figure; Guggenheim DCP rolls its currency code forward by maturity (accept_any_currency=true); Justoken JMWH is denominated in MWh, not USD, and its marketed dollar figure is issuer-stated rather than on-chain attested; Ripple RLUSD has 93k+ trustlines so the trustline count is capped at the page limit while the obligations total stays canonical; and XLS-33 MPT issuers have no IOU obligations or trustlines at all, so their supply is the MPTokenIssuance OutstandingAmount scaled by AssetScale and they emit rwa_issuer_daily snapshots rather than per-mint rwa_issuer_flow events. Intentionally NOT tracked: SG-FORGE USDCV (deployed on Ethereum + Solana only per official press, not on XRPL), Mercado Bitcoin (the July 2025 $200M tokenization announcement has no detectable mainnet issuer wallet as of 2026-05-10).",
    "relay_burst_source": "Multi-hop relay-burst detector emit. When the in-process detector fires a chain (>=3 hops, >=$30M total, pure-payment fingerprint on intermediate wallets, anchored on at least one labeled wallet), an event is published with source='relay_burst' and signal='relay_burst_detected'. active_utility carries: chain_currency, hop_count, total_usd, anchor_label (sanitized to publicly-attested entity name or generic role), news_correlation_count, terminal_tx_hash, chain_started_at. No target_addresses are attached. The curated middle layer is deliberately not exposed via the /events/by-address path. Agents querying /events/recent (kind='activity') and the MCP xrpl_pulse_recent_events tool see chain detections inline with whale_transfer and focus_outflow events.",
    "focus_watch_source": "Per-wallet outgoing-Payment alerter at any value. Polls an curated set of 'focus' wallets at a recurring cadence and emits an event for every new outgoing Payment regardless of USD value. Fills the gap between whale_watcher (minimum-USD floor) and relay_burst_detector (multi-hop chain threshold): when a labeled wallet is sitting on a large fresh balance and starts moving it in small chunks, focus_watch is the layer that catches it. source='focus_watch', signal='focus_outflow'. active_utility carries focus_wallet, focus_context (operator's note on why the wallet is being watched), destination, destination_label (when resolved), currency, value, ledger_index, tx_hash. Events flow into /events/recent kind='activity'. The focus list is curated.",
    "choreography_watcher_source": "Cross-signal correlator (added 1.67.0). Periodically scans the events table for the last hour and groups events by every wallet that appears in target_addresses or sender/receiver positions; when a single hub wallet is touched by >=3 distinct signal types (e.g. rwa_obligations_drop + whale_transfer + relay_burst_detected) within the window, emits one top-level event with source='choreography_watcher', signal='institutional_choreography_detected'. active_utility carries: hub_wallet, hub_label (resolved via watchlist_watcher), window_seconds, signal_kinds[] (the distinct kinds in the cluster), event_count, earliest_event_at, latest_event_at, span_seconds, total_usd_estimate (best-effort sum across whale + relay events), constituent_events[] (up to 10, each with event_id+source+signal+ts). Idempotent via fingerprint(hub, sorted_event_ids) with 4h dedup TTL. Designed to surface the cross-watcher choreography that the underlying signals fire fragments of - the kind of coordinated institutional flow that's only visible when you correlate burns, CEX outflows, and multi-hop chains together. Events land in /events/recent kind='activity' alongside the constituent signals; agents querying via MCP get the same view.",
    "institutional_dispersion_source": "Same-pair repeated-large-transfer detector (added 1.70.0). Fills the gap that choreography_watcher misses by design: choreography_watcher requires diverse signal types (3+ distinct), so single-signal patterns like 'one labeled CEX-custody wallet sending N large whale_transfers to one unattributed destination' fall through. This watcher catches them. Periodically scans whale_xrpl events within an hour-scale window, groups by (sender_address, receiver_address), and fires when: transfer_count clears an operator-tuned floor, total_usd clears an operator-tuned floor, sender_label is resolved (labeled institutional wallet), receiver_label is NOT resolved (unattributed destination). Idempotent via fingerprint(sender, receiver) with bounded TTL so once a pair has fired, growing the cluster on-chain doesn't re-fire. source='institutional_dispersion', signal='institutional_dispersion_detected'. active_utility carries: sender_address, sender_label, receiver_address, transfer_count, total_usd, mean_tranche_usd, window_seconds, span_seconds, first_tx_hash + first_tx_at, last_tx_hash + last_tx_at, currencies[], transfer_pattern ('uniform' for tight tranche-size variance, else 'varied'), constituent_tx_hashes[]. Motivating case: 2026-05-22 Ceffu (Binance institutional custody) sent 7 transfers totaling ~25.3M XRP / ~$34M USD to a single unattributed wallet in a 3-hour window, mostly 4M XRP per tranche - classic institutional client redemption from custody. Catches custody redemptions, OTC settlements, treasury rebalances. Events land in /events/recent kind='activity' alongside the constituent whale events.",
    "ripple_counterparty_discovery_source": "Auto-discovery pipeline for institutional counterparties Ripple has onboarded. The ripple_counterparty_discovery loop polls a curated set of Ripple-controlled wallets (multi-signer treasuries, the RLUSD distribution wallet, and TOML-attested escrow wallets) at a recurring interval for outgoing Payments to new destinations. Each new destination is scored on seven weighted heuristics combining on-chain signals (account age, XRP balance, RLUSD pre-approval, multi-exchange connectivity, intake-treasury fingerprint, Ripple-funded-MM inflow, recency). Candidates scoring at or above the promote threshold are auto-promoted into a runtime augment layer that the watchlist resolver consults after the curated and public well-known labels (one priority tier) and before per-account public label lookups; promoted wallets gain a synthesized label and a stable role. Promotion-source precedence (operator > public name lookup > discovery > relay-burst) prevents a weaker source from clobbering a higher-confidence label on re-promote. The curated label set is unaffected by auto-promotion. /stats/ripple-counterparties exposes only anonymized aggregates (score-tier distribution and funding-source distribution); specific wallet addresses are never returned on the public surface. Companion detector: relay_burst_event_source.",
    "relay_burst_event_source": "Multi-hop chain detector that subscribes to db.BROADCAST_HOOKS and inspects every newly recorded XRPL Payment for chain-anchoring behavior. The detector keeps per-(currency, address) chain state in memory, joins consecutive Payments where the destination of hop N is the source of hop N+1 (same currency, same direction), and emits a relay-burst event when the chain satisfies the threshold profile (at least 3 hops, total value at least the configured USD floor, per-hop value at least the per-hop USD floor, all hops within a 1h window). The chain must also satisfy the pure-payment fingerprint (no TrustSet, AMM, OfferCreate, or Escrow ops on any participant during the window) and anchor on at least one labeled wallet. When an unlabeled wallet appears in a confirmed burst chain, it is auto-promoted into the runtime augment layer with a synthesized label that names the upstream and downstream hops; this is how downstream relays become labeled without operator code edits. The detector also correlates each confirmed burst against recent news events in the surrounding window and stores the matched news event IDs alongside the burst record. /stats/ripple-counterparties surfaces each burst's hop_count, total_usd (the sum of hop values, which counts the same money once per hop), peak_hop_usd (the largest single hop), anchor_label and news_correlation_count without exposing specific wallet addresses; a chain that is the start of a longer chain in the list is dropped.",
    "cex_attribution_walker_source": "CEX-exit attribution walker. Complement to the relay-burst detector. When a whale_xrpl event lands at an operator-labeled CEX (Bitso, Binance, Coinbase, Gemini, Kraken, Bitstamp, OKX, Ceffu, etc.) above the terminal USD floor (default $5M), the walker walks the chain backward through prior whale events where the current sender appears as a prior receiver, up to 4 hops within a 4h window. Each unlabeled intermediate wallet is checked against public per-account labels; remaining unlabeled hops are queued in cex_attribution_candidates for operator review. Different scoring philosophy than the relay-burst detector: relay-burst hunts for laundering-style fresh-trustline relay paths (sender_relay_fingerprint gate); the CEX walker catches settlement chains where intermediate wallets are long-standing labeled infrastructure that legitimately passes through to a named CEX exit. /stats/cex-attribution exposes anonymized aggregates (status, anchor, terminal-CEX distributions) without exposing wallet addresses. Operator promotes candidates via the admin endpoints; promoted wallets land in auto_promoted_static_augment with promotion_source='operator_cex_attribution' and immediately surface on subsequent watchlist resolutions.",
    "rwa_issuer_discovery_source": "Auto-discovery pipeline that surfaces candidate RWA issuer wallets on XRPL without requiring the operator to find and add them by hand. The rwa_issuer_discovery loop runs daily: it walks an external label source, reads each candidate's on-chain account state, and retains wallets that combine the on-chain authorization-flag presence with non-zero outstanding obligations. Wallets already in the curated issuer list are skipped (they are canonical, not candidates); wallets that the operator has marked dismissed are skipped (a one-time rejection sticks). Survivors land in the rwa_candidate_issuers SQLite table and surface on /stats/rwa-summary under a top-level candidates[] array. Each candidate row carries chain-derived fields only: wallet, label (public label), domain (from AccountRoot.Domain when set, else the public label's domain), currency_ascii + currency_on_ledger (the issuer's largest-obligation currency, hex-decoded to ASCII when possible), obligations_amount, trustline_count + trustline_truncated (count is capped at 1000 lines), require_auth + allow_clawback (boolean flag presence), source ('xrpscan_well_known' for v1), first_seen + last_seen unix timestamps, and status='unverified'. Operator-judgment fields (asset_class, logical_label, caveat) are deliberately not auto-populated; promoting a candidate to a full canonical entry is a code edit to rwa_issuers.RWA_ISSUERS and a Pulse redeploy, after which the candidate drops off /stats/rwa-summary on the next call. Clawback was chosen as the primary on-chain filter (not RequireAuth alone) because all 11 live canonical issuers as of 2026-05-10 have clawback enabled, while crypto-native IOU issuers rarely opt into it - this keeps the false-positive rate low without sacrificing recall. The pipeline is FREE; results are exposed only on the free /stats/rwa-summary endpoint. Discovery latency: typically <24h between an issuer appearing in public well-known labels and surfacing on Vault.",
    "outputs": [
      "event_id_stable_sha256",
      "source_appearances_array",
      "appearance_count_numerical",
      "primary_url",
      "title_and_brief_verbatim_from_feed",
      "published_at_unix",
      "ingested_at_unix",
      "correlation_block_optional_with_heuristic_only_watermark"
    ],
    "not_provided": [
      "legitimacy_scoring",
      "source_credibility_ranking",
      "sentiment_analysis",
      "geopolitical_adoption_modeling",
      "llm_generated_summaries"
    ]
  },
  "payment": {
    "spec": "x402",
    "x402_version": 2,
    "scheme": "exact",
    "network": "xrpl:0",
    "amount_usd": "0.10",
    "recipient_resolution": "per_invoice_via_facilitator",
    "recipient_resolution_note": "Pulse does NOT advertise a static recipient address. Each 402 PaymentRequired body returned from /events/recent carries a per-invoice recipient resolved through the t54 facilitator. The USDC-on-Base rail uses a static treasury address (shared with Sentinel/Telemetry/Trust/Flows/Vault) advertised in the rails[] block.",
    "currencies_accepted": [
      "XRP",
      "RLUSD",
      "USDC"
    ],
    "rails": [
      {
        "network": "xrpl:0",
        "currency": "XRP",
        "amount_usd": "0.10",
        "note": "XRP amount is dynamic - equivalent to $0.10 USD at current spot."
      },
      {
        "network": "xrpl:0",
        "currency": "RLUSD",
        "amount": "0.10",
        "issuer": "rMxCKbEDwqr76QuheSUMdEGf4B9xJ8m5De",
        "currency_hex": "524C555344000000000000000000000000000000"
      },
      {
        "network": "eip155:8453",
        "currency": "USDC",
        "recipient": "0xa9c371e166229AAaA4C3999FB8a203e43c7329F8",
        "amount_atomic": "100000",
        "decimals": 6,
        "contract": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
        "note": "USDC-on-Base settled via the Coinbase x402 facilitator. Same $0.10 price as the XRPL rails."
      }
    ],
    "rlusd": {
      "amount": "0.10",
      "issuer": "rMxCKbEDwqr76QuheSUMdEGf4B9xJ8m5De",
      "currency_hex": "524C555344000000000000000000000000000000"
    },
    "auth_header": "PAYMENT-SIGNATURE",
    "settlement_header": "PAYMENT-RESPONSE",
    "idempotency": {
      "replay_window_seconds": 60,
      "replay_window_note": "A settled response can be re-delivered to the SAME buyer for this long, for the same endpoint and a byte-identical request body. Standard (no-`accepted`) x402 envelopes get 60s; the `accepted`-echoing dialect, whose invoiceId is server-issued and never public, gets 600s.",
      "client_nonce_header": "X-Idempotency-Key",
      "client_nonce_envelope_field": "extra.clientNonce",
      "client_nonce_min_length": 16,
      "client_nonce_note": "OPTIONAL. Generate it BEFORE the request and resend it on a retry. It never reaches any chain - it is not inside the signed EIP-3009 authorization nor inside the XRPL signed blob - so it is the one part of the replay key an on-chain observer cannot reconstruct. Send it and your retries are unlimited inside the window. Shorter than 16 characters is treated as absent.",
      "public_mode_replay_limit": 1,
      "public_mode_note": "Without a client nonce, the replay key is derived entirely from material that is public once the payment settles, so it buys ONE duplicate delivery inside the window. That covers a lost response; it is not a free read.",
      "replay_token_header": "X-Replay-Token",
      "replay_token_note": "Returned on the fresh settle response (and on a nonce-bearing replay). Present it back in the same header to lift the one-duplicate limit. It is never returned on a no-nonce replay."
    },
    "verify_before_settle": true,
    "refund_policy": "Verify-before-settle. If feed retrieval fails, settlement is skipped and the presigned tx is never broadcast. Successful retrievals are paid; no refunds otherwise.",
    "data_routes": {
      "amount_usd": "0.01",
      "applies_to": [
        "/stats/cex-attribution",
        "/stats/desk-briefing",
        "/stats/entity-positioning",
        "/stats/escrow-calendar",
        "/stats/exchange-flow-delta",
        "/stats/exchange-net-flow",
        "/stats/moex-xrp-index",
        "/stats/recent-choreographies",
        "/stats/ripple-counterparties",
        "/stats/ripple-counterparty-graph",
        "/stats/ripple-topology",
        "/stats/rlusd-distribution",
        "/stats/rwa-summary",
        "/stats/rwa-supply-history",
        "/stats/token-health",
        "/stats/top-destinations",
        "/stats/whale-flow-24h",
        "/stats/whale-flow-history",
        "/stats/whales",
        "/stats/xls85-totals",
        "/stats/xrpl-primitives"
      ],
      "rails": "Same three rails as the paid feed: XRP or RLUSD on XRPL, or USDC on Base (10000 atomic units).",
      "method": "GET. An unpaid call returns HTTP 402 with a fresh challenge; pay and repeat the same GET with PAYMENT-SIGNATURE.",
      "charged_only_on_success": true,
      "free_access": "Free for visitors on xrpl-utilities.com and for other XR-* services."
    },
    "bundles": {
      "applies_to": {
        "/bundles/wallet-check": {
          "amount_usd": "0.25",
          "query": "address=<XRPL classic address>",
          "mcp_tool": "xrpl_wallet_check"
        },
        "/bundles/xrp-market-briefing": {
          "amount_usd": "0.05",
          "query": "none",
          "mcp_tool": "xrpl_xrp_market_briefing"
        },
        "/bundles/rwa-token-report": {
          "amount_usd": "0.15",
          "query": "issuer=<RWA issuer address>[&currency=<code>]",
          "mcp_tool": "xrpl_rwa_token_report"
        },
        "/bundles/fund-flow-report": {
          "amount_usd": "0.10",
          "query": "days=7|30 (default 7)",
          "mcp_tool": "xrpl_fund_flow_report"
        },
        "/bundles/permissioned-venue-report": {
          "amount_usd": "0.10",
          "query": "operator=<address> or domain_id=<64 hex>",
          "mcp_tool": "xrpl_permissioned_venue_report"
        },
        "/bundles/xrpl-network-snapshot": {
          "amount_usd": "0.10",
          "query": "sections=<optional list>",
          "mcp_tool": "xrpl_network_snapshot"
        }
      },
      "rails": "Same three rails as the paid feed: XRP or RLUSD on XRPL, or USDC on Base.",
      "method": "GET. An unpaid call returns HTTP 402 with a fresh challenge at the bundle price; pay and repeat the same GET with PAYMENT-SIGNATURE.",
      "charged_only_on_success": true,
      "answer_shape": "summary, key_numbers, sections (each with status ok | stale | unreadable and as_of), legal_notice",
      "free_access": "The XRP market briefing is free for visitors on xrpl-utilities.com. Every bundle is free for other XR-* services."
    }
  },
  "mcp_capability": {
    "hosted_endpoint": "https://mcp.xrpl-utilities.io",
    "stdio_command": "npx -y @xrpl-utilities/mcp",
    "npm_package": "@xrpl-utilities/mcp",
    "github_repo": "https://github.com/XRPL-Utilities/xrpl-utilities-mcp",
    "tools": [
      "xrpl_pulse_recent_events",
      "xrpl_pulse_events_by_address"
    ],
    "note": "Same read endpoints are also exposed as MCP tools for AI clients (Claude Desktop, Cursor, anything Model Context Protocol-aware). Stateless passthrough - the MCP server forwards the caller's own x402 payment header to the backend; no billing aggregation."
  },
  "destination_tag_partition": {
    "scheme": "32-bit XRPL DestinationTag; top 8 bits encode the service that minted the tag.",
    "service_prefix_hex": "0x02",
    "service_prefix_int": 2,
    "tag_range_inclusive": [
      33554432,
      50331647
    ],
    "tag_range_hex": [
      "0x02000000",
      "0x02ffffff"
    ],
    "decoder_pseudocode": "service_id = (destination_tag >> 24) & 0xFF",
    "portfolio_prefix_map": {
      "0x01": "Sentinel",
      "0x02": "Pulse (reserved, not yet minting tags)",
      "0x03": "Telemetry",
      "0x04": "Trust (reserved, not yet minting tags)",
      "0x05": "Vault (reserved, not yet minting tags)",
      "0x06": "Flows (reserved, not yet minting tags)"
    },
    "note": "Reserved-only for Pulse today. Pulse's paid surface (/events/recent, /scan-event) settles via x402 inline-payment with invoiceId in the payment payload, not via DestinationTag. The prefix is declared here so operators can reconcile incoming Payments at the shared treasury wallet by service, and so future invoice-flow tags from Pulse stay within its reserved range."
  },
  "active_utility_typing": {
    "discriminator_field": "signal",
    "discriminator_note": "Every active_utility object carries a top-level 'signal' field that names its shape. The one exception is the news-event shape: when active_utility is attached to a news event (any source other than the agent-emitted ones below), the top-level field is 'signals' (plural, array) instead of 'signal' (singular). Discrimination: presence of 'signal' names the kind; presence of 'signals' marks a news-event shape; both must not be present. Typed-client codegen tools should model active_utility as a discriminated union on 'signal' for the agent-emitted kinds, plus a separate NewsEventActiveUtility branch keyed on 'signals'.",
    "tldr_field_note": "On /events/recent responses, active_utility may carry an additional optional string field 'tldr' (added in schema 1.65.0, coverage expanded in 1.66.0): a single-sentence plain-English summary of the event, generated server-side from the structured fields. Present today for signals whale_transfer, focus_outflow and relay_burst_detected (the permissioned_* signals moved to XR-Trust /activity on 2026-09-06); absent on other signals. Intended for the .com event-card subtitle; agent consumers can safely ignore. Field is render-only and not persisted on the event row in storage.",
    "top_level_kinds": {
      "whale_transfer": {
        "source": "whale_xrpl",
        "fields": {
          "signal": "literal: whale_transfer",
          "tier": "string: NORMAL_ACTIVITY | WHALE_MOVE | INSTITUTIONAL_FLOW | EXCHANGE_LOGISTICS",
          "currency": "string (XRP or RLUSD)",
          "amount_display": "string",
          "usd_value": "number",
          "xrp_spot_at_emit": "number",
          "sender_address": "string (XRPL classic address) | null",
          "sender_label": "string | null (curated or public label match if any)",
          "receiver_address": "string (XRPL classic address) | null",
          "receiver_label": "string | null",
          "ledger_index": "integer",
          "tx_hash": "string",
          "sender_sentinel": "object | null (best-effort XR-Sentinel /scan result)",
          "receiver_sentinel": "object | null",
          "sender_did_brief": "object | null (XLS-40 + linked TOML brief)",
          "receiver_did_brief": "object | null",
          "telemetry_context": "object | null (XR-Telemetry macro snapshot at emit)",
          "tldr": "string (optional, added 1.65.0): one-sentence plain-English summary, e.g. 'Coinbase sent $402K of XRP to Shared MM passthrough.' Render-only on /events/recent; not persisted.",
          "cluster_context": "object {window_seconds, sender: {count, signal_kinds[], reciprocal_pair_seen, adjacent_xrpl_activity: {available, trustset_count, amm_op_count, escrow_op_count, offer_op_count, payment_count, other_count, total_count, truncated}}, receiver: <same shape>, reciprocal_pair_seen, note}. Two-tier summary of activity around this whale event in the last 3600s. Tier 1 (count + signal_kinds + reciprocal_pair_seen): OTHER Pulse-recorded events touching the sender or receiver. Pulse-internal window only; does not include off-chain news or events from other XRPL-Utilities services. Tier 2 (adjacent_xrpl_activity): raw XRPL tesSUCCESS ledger reads for each wallet in the same window, categorized by tx type (TrustSet / AMM* / Escrow* / OfferCreate-OfferCancel / Payment / other), with the anchor whale tx excluded by hash. truncated=true means the wallet had at least 100 txs in the window and the category counts are lower bounds (common on exchange hot wallets). available=false on a sub-block means the upstream RPC call failed for that lookup. Always present on live whale_transfer emits; backfilled rows from whale_backfill.py omit this field (cluster context is only meaningful at emit time). Heuristic 'is this part of a burst' tell, not a forensics finding."
        }
      },
      "token_escrow_event": {
        "source": "whale_xrpl",
        "description": "XLS-85 (Token Escrow) tx on a non-XRP IOU",
        "fields": {
          "signal": "literal: token_escrow_event",
          "subtype": "string: token_escrow | dvp_candidate",
          "tx_type": "string: EscrowCreate | EscrowFinish | EscrowCancel",
          "tx_hash": "string",
          "ledger_index": "integer",
          "account": "string (escrow owner XRPL address)",
          "destination": "string | null",
          "issuer": "string (IOU issuer)",
          "currency": "string (ASCII display)",
          "amount": "object (XRPL Amount object)",
          "amount_display": "string",
          "condition": "string | null (Crypto-Conditions hex; null on time-locked-only)",
          "finish_after": "integer | null",
          "cancel_after": "integer | null",
          "matched_with_tx_hash": "string | null (set on dvp_candidate subtype)"
        }
      },
      "issuer_deepfreeze": {
        "source": "whale_xrpl",
        "description": "TrustSet with tfSetDeepFreeze (0x00400000) flag set",
        "fields": {
          "signal": "literal: issuer_deepfreeze",
          "tx_type": "literal: TrustSet",
          "tx_hash": "string",
          "ledger_index": "integer",
          "issuer": "string (issuer XRPL address)",
          "target_holder": "string (deep-frozen holder XRPL address)",
          "currency": "string (ASCII)",
          "currency_on_ledger": "string (40-char hex when applicable)",
          "flags": "integer"
        }
      },
      "permissioned_domain_lifecycle": {
        "source": "permissioned_domain_lifecycle",
        "description": "XLS-70/80 lifecycle (PermissionedDomainSet, PermissionedDomainDelete, CredentialCreate, CredentialAccept, CredentialDelete)",
        "fields": {
          "signal": "literal: permissioned_domain_lifecycle",
          "tx_type": "string",
          "tx_hash": "string",
          "account": "string",
          "domain_id": "string | null",
          "ledger_index": "integer",
          "credential_type_hex": "string (optional, present on Credential* tx types)",
          "subject": "string (optional, present on Credential* tx types)",
          "trust_event_id": "string",
          "trust_url": "string (deep-link to XR-Trust domain page)"
        },
        "status": "retired_moved_to_trust",
        "moved_on": "2026-09-06",
        "feed": "https://trust.xrpl-utilities.io/activity"
      },
      "permissioned_dex_event": {
        "source": "permissioned_domain_lifecycle",
        "description": "XLS-81 (Permissioned DEX) tx inside a permissioned venue",
        "fields": {
          "signal": "literal: permissioned_dex_event",
          "tx_type": "string: OfferCreate | OfferCancel | AMMCreate | AMMDeposit | AMMWithdraw | AMMVote | AMMBid | Payment",
          "tx_hash": "string",
          "account": "string",
          "domain_id": "string | null",
          "ledger_index": "integer",
          "taker_gets": "object | null (XRPL Amount; OfferCreate/Cancel only)",
          "taker_pays": "object | null",
          "asset": "object | null (AMM* only)",
          "asset2": "object | null",
          "amount": "object | null (Payment only)",
          "destination": "string | null (Payment only)",
          "offer_sequence": "integer | null (OfferCancel only)",
          "execution": "object | null (OfferCreate only; meta-parsed execution summary with executed_taker_gets_value/currency/issuer, executed_taker_pays_value/currency/issuer, consumed_offers_count)",
          "trust_event_id": "string",
          "trust_url": "string"
        }
      },
      "rwa_issuer_mint": {
        "source": "rwa_issuer_flow",
        "description": "Outgoing IOU Payment from an RWA issuer wallet",
        "fields": {
          "signal": "literal: rwa_issuer_mint",
          "direction": "literal: mint",
          "issuer_label": "string",
          "issuer_logical_label": "string (aggregation key for issuers with multiple wallets)",
          "issuer_address": "string",
          "issuer_domain": "string",
          "asset_class": "string: treasuries | fiat_stable_usd | fiat_stable_eur | fiat_stable_brl | fiat_stable_aud | commercial_paper | money_market | commodity_energy | private_credit | gateway_iou",
          "currency": "string (ASCII display)",
          "currency_on_ledger": "string (40-char hex when applicable, useful for DCP tranche tracking)",
          "amount": "string (native units of the IOU)",
          "counterparty": "string (recipient XRPL address)",
          "ledger_index": "integer | null",
          "tx_hash": "string",
          "caveat": "string | null (per-issuer caveat e.g. Justoken JMWH USD-figure note)"
        }
      },
      "rwa_issuer_burn": {
        "source": "rwa_issuer_flow",
        "description": "IOU Payment back to issuer; reduces issuer outstanding obligations",
        "fields": {
          "signal": "literal: rwa_issuer_burn",
          "direction": "literal: burn",
          "issuer_label": "string",
          "issuer_logical_label": "string",
          "issuer_address": "string",
          "asset_class": "string",
          "currency": "string",
          "currency_on_ledger": "string",
          "amount": "string",
          "counterparty": "string (sender XRPL address)",
          "ledger_index": "integer | null",
          "tx_hash": "string"
        }
      },
      "rwa_issuer_daily": {
        "source": "rwa_issuer_daily",
        "description": "Once-per-UTC-day aggregate snapshot per issuer",
        "fields": {
          "signal": "literal: rwa_issuer_daily",
          "snapshot_date": "string (UTC YYYY-MM-DD)",
          "issuer_label": "string",
          "issuer_logical_label": "string",
          "issuer_address": "string",
          "issuer_domain": "string",
          "asset_class": "string",
          "currency": "string",
          "currency_on_ledger": "string (or 'AGGREGATE' for DCP rolling-tranche issuers)",
          "obligations_t1": "string",
          "obligations_t0": "string | null",
          "obligations_delta": "string | null",
          "net_circulating_t1": "string | null",
          "net_circulating_t0": "string | null",
          "net_circulating_delta": "string | null",
          "treasury_subtraction_wallet": "string | null (e.g. OpenEden TBL treasury)",
          "treasury_balance_excluded": "string | null",
          "trustline_count_t1": "integer",
          "trustline_count_t0": "integer | null",
          "trustline_count_delta": "integer | null",
          "trustline_count_truncated": "boolean",
          "caveat": "string | null"
        }
      },
      "rwa_amm_pool_state": {
        "source": "rwa_amm_pool_state",
        "description": "Once-per-UTC-day snapshot per AMM pool containing an RWA issuer's IOU",
        "fields": {
          "signal": "literal: rwa_amm_pool_state",
          "snapshot_date": "string (UTC YYYY-MM-DD)",
          "pool_account": "string (AMM XRPL address)",
          "rwa_issuer_label": "string",
          "rwa_issuer_wallet": "string",
          "rwa_asset_class": "string",
          "rwa_currency": "string (ASCII display)",
          "rwa_currency_on_ledger": "string",
          "rwa_amount": "string",
          "counterparty_label": "string: XRP | RLUSD | other",
          "counterparty_currency": "string",
          "counterparty_amount": "string",
          "counterparty_is_iou": "boolean",
          "lp_supply": "string",
          "lp_currency": "string",
          "trading_fee": "number"
        }
      },
      "sentinel_signal": {
        "source": "sentinel_signal",
        "description": "Event published by XR-Sentinel via a backend-to-backend channel when a wallet's activity_level changes",
        "fields": {
          "signal": "literal: sentinel_signal",
          "signal_kind": "string (the sentinel signal type that fired)",
          "address": "string (XRPL address)",
          "activity_level": "string: Low | Medium | High | Dormant | Unknown",
          "prior_activity_level": "string | null"
        }
      },
      "focus_outflow": {
        "source": "focus_watch",
        "description": "Outgoing Payment from an curated focus wallet at any value (fills the gap between whale_watcher's USD floor and relay_burst_detector's chain threshold)",
        "fields": {
          "signal": "literal: focus_outflow",
          "focus_wallet": "string (XRPL classic address)",
          "focus_context": "string (operator's note on why the wallet is watched)",
          "destination": "string (XRPL classic address)",
          "destination_label": "string | null (resolved via watchlist if known)",
          "currency": "string (ASCII display)",
          "value": "number | string",
          "ledger_index": "integer",
          "tx_hash": "string"
        }
      },
      "relay_burst_detected": {
        "source": "relay_burst",
        "description": "Multi-hop relay-burst chain detected on the in-process state machine. No target_addresses attached by design - the curated middle layer is not exposed via the /events/by-address path.",
        "fields": {
          "signal": "literal: relay_burst_detected",
          "chain_currency": "string (XRP, RLUSD, etc.)",
          "hop_count": "integer (>= 3)",
          "total_usd": "number",
          "anchor_label": "string (sanitized to publicly-attested entity name or generic role)",
          "news_correlation_count": "integer",
          "terminal_tx_hash": "string",
          "chain_started_at": "number (unix ts)"
        }
      },
      "rwa_obligations_spike": {
        "source": "rwa_obligations_delta",
        "description": "RWA issuer obligations grew between watcher passes. Catches supply expansion the per-tx mint classifier structurally misses (e.g. DEX-mediated mints).",
        "fields": {
          "signal": "literal: rwa_obligations_spike",
          "direction": "literal: mint",
          "issuer_label": "string",
          "issuer_logical_label": "string",
          "issuer_address": "string",
          "asset_class": "string",
          "currency": "string",
          "amount": "string (absolute delta in native units)",
          "prior_obligations": "string",
          "current_obligations": "string",
          "prior_observed_at": "number (unix ts)",
          "inference_method": "literal: obligations_delta",
          "caveat": "string"
        }
      },
      "rwa_obligations_drop": {
        "source": "rwa_obligations_delta",
        "description": "RWA issuer obligations shrank between watcher passes. Catches supply contraction (burns/redemptions) the per-tx classifier may miss.",
        "fields": {
          "signal": "literal: rwa_obligations_drop",
          "direction": "literal: burn",
          "issuer_label": "string",
          "issuer_logical_label": "string",
          "issuer_address": "string",
          "asset_class": "string",
          "currency": "string",
          "amount": "string (absolute delta in native units)",
          "prior_obligations": "string",
          "current_obligations": "string",
          "prior_observed_at": "number (unix ts)",
          "inference_method": "literal: obligations_delta",
          "caveat": "string"
        }
      },
      "institutional_choreography_detected": {
        "source": "choreography_watcher",
        "description": "Cross-signal correlation hit (added 1.67.0). Emitted when a hub wallet appears across >=3 distinct signal types within an hour-scale window, including via macro-signal adjacency (relay_burst / rwa_obligations_* events linked by time proximity to direct-bucket events).",
        "fields": {
          "signal": "literal: institutional_choreography_detected",
          "hub_wallet": "string (XRPL classic address)",
          "hub_label": "string | null (resolved via watchlist_watcher)",
          "window_seconds": "integer",
          "signal_kinds": "array of strings (the distinct signal types in the cluster)",
          "event_count": "integer",
          "earliest_event_at": "number (unix ts)",
          "latest_event_at": "number (unix ts)",
          "span_seconds": "integer",
          "total_usd_estimate": "number | null (best-effort sum across whale_transfer + relay_burst USD totals)",
          "constituent_events": "array of {event_id, source, signal, ts} (up to 10)"
        }
      },
      "institutional_dispersion_detected": {
        "source": "institutional_dispersion",
        "description": "Same-pair repeated-large-transfer detector (added 1.70.0). Emitted when a labeled institutional sender wallet sends multiple large transfers to a single unattributed destination within an hour-scale window. Catches custody redemptions, OTC settlements, treasury rebalances that fall outside the cross-signal choreography pattern.",
        "fields": {
          "signal": "literal: institutional_dispersion_detected",
          "sender_address": "string (XRPL classic address)",
          "sender_label": "string (labeled institutional wallet)",
          "receiver_address": "string (XRPL classic address)",
          "receiver_label": "literal: null (by definition unattributed at detection time)",
          "transfer_count": "integer",
          "total_usd": "number",
          "mean_tranche_usd": "number",
          "window_seconds": "integer",
          "span_seconds": "integer",
          "first_tx_hash": "string",
          "first_tx_at": "number (unix ts)",
          "last_tx_hash": "string",
          "last_tx_at": "number (unix ts)",
          "currencies": "array of strings",
          "transfer_pattern": "string: uniform | varied (based on tranche-size variance)",
          "constituent_tx_hashes": "array of strings"
        }
      }
    },
    "news_event_shape": {
      "description": "Active utility attached to news events (non-agent sources: news feeds, press releases, etc). Discriminated by presence of 'signals' (plural) array instead of top-level 'signal' (singular).",
      "fields": {
        "signals": "array of NewsEventSignal (see below) - one entry per signal fired",
        "active": "boolean - true if signals[] is non-empty"
      },
      "inner_signal_kinds": {
        "cross_verified": {
          "note": "Same story appeared in 2+ ingest sources within the dedupe window",
          "fields": {
            "signal": "literal: cross_verified",
            "note": "string"
          }
        },
        "price_moved": {
          "note": "XRPL current_price_usd shifted past PRICE_MOVE_THRESHOLD_PCT within window",
          "fields": {
            "signal": "literal: price_moved",
            "delta_pct": "number",
            "threshold_pct": "number",
            "window_hours": "integer",
            "note": "string"
          }
        },
        "volume_moved": {
          "note": "XRPL exchange_outflow_24h_xrp shifted past VOLUME_MOVE_THRESHOLD_PCT within window",
          "fields": {
            "signal": "literal: volume_moved",
            "delta_pct": "number",
            "threshold_pct": "number",
            "window_hours": "integer",
            "note": "string"
          }
        },
        "rlusd_mint_observed": {
          "note": "On-chain RLUSD mint(s) by issuer landed within the window",
          "fields": {
            "signal": "literal: rlusd_mint_observed",
            "mint_count": "integer",
            "total_value": "string",
            "window_hours": "integer",
            "tx_hashes": "array of string",
            "note": "string"
          }
        },
        "watchlist_activity_observed": {
          "note": "Outgoing XRP payment(s) from labeled exchange/issuer/treasury/MM wallets",
          "fields": {
            "signal": "literal: watchlist_activity_observed",
            "tx_count": "integer",
            "total_amount_xrp": "number",
            "total_amount_usd": "number",
            "roles": "array of string (subset: exchange, issuer, treasury, mm, custody, bridge)",
            "window_hours": "integer",
            "tx_hashes": "array of string",
            "details": "array of enriched per-tx objects, capped at WATCHLIST_DETAIL_CAP",
            "details_truncated": "boolean",
            "note": "string"
          }
        },
        "high_activity_target": {
          "note": "An XRPL address named in the event text scans as High activity via XR-Sentinel",
          "fields": {
            "signal": "literal: high_activity_target",
            "addresses": "array of string",
            "note": "string"
          }
        },
        "institutional_event": {
          "note": "Deterministic keyword classifier flagged the news as an institutional development",
          "fields": {
            "signal": "literal: institutional_event",
            "categories": "array of string: regulated_exchange_listing | etf_event | derivatives_event | regulatory_action | central_bank_statement | international_standard_body | ripple_corporate_event",
            "note": "string"
          }
        }
      }
    },
    "usage_for_typed_clients": "To generate typed clients (Pydantic, Zod, OpenAPI codegen), model active_utility as a top-level tagged union discriminated by the presence-and-value of `signal`. Map each value to its kind's field shape from top_level_kinds. Map news-event active_utility (signals[] present, signal absent) to a separate NewsEventActiveUtility model that embeds an array of NewsEventSignal discriminated by its own `signal` field per the news_event_shape.inner_signal_kinds map. FastAPI does not currently expose this discriminator via the auto-generated /openapi.json because the /events/recent + /events/by-address responses are typed as ad-hoc dicts to preserve forward compatibility with adding new kinds without breaking deployed consumers."
  },
  "endpoints": {
    "base_url": "https://pulse.xrpl-utilities.io",
    "schema": "/schema",
    "events_recent": "/events/recent",
    "events_by_address": "/events/by-address",
    "stream_purchase": "/stream/purchase",
    "stream_preview_token": "/stream/preview-token",
    "stream_websocket": "/stream",
    "manifest": "/agents.json",
    "health": "/healthz",
    "stats": "/stats",
    "stats_whale_flow_24h": "/stats/whale-flow-24h",
    "stats_whale_flow_history": "/stats/whale-flow-history",
    "stats_rwa_summary": "/stats/rwa-summary",
    "stats_network": "/stats/network",
    "stats_whales": "/stats/whales?history_days=<n>",
    "stats_xrpl_primitives": "/stats/xrpl-primitives",
    "stats_xls85_totals": "/stats/xls85-totals",
    "stats_token_health": "/stats/token-health?issuer=<wallet>&code=<code>&sort=<field>&limit=<n>",
    "stats_moex_xrp_index": "/stats/moex-xrp-index",
    "stats_recent_choreographies": "/stats/recent-choreographies?window_hours=<n>&limit=<n>",
    "stats_ripple_counterparties": "/stats/ripple-counterparties",
    "stats_ripple_counterparty_graph": "/stats/ripple-counterparty-graph?limit=<n>",
    "stats_ripple_topology": "/stats/ripple-topology",
    "stats_cex_attribution": "/stats/cex-attribution",
    "stats_exchange_flow_delta": "/stats/exchange-flow-delta",
    "stats_exchange_net_flow": "/stats/exchange-net-flow",
    "stats_escrow_calendar": "/stats/escrow-calendar",
    "stats_rlusd_distribution": "/stats/rlusd-distribution?days=<n>",
    "stats_entity_positioning": "/stats/entity-positioning",
    "stats_desk_briefing": "/stats/desk-briefing",
    "stats_top_destinations": "/stats/top-destinations?limit=<n>&min_distinct_sources=<n>",
    "stats_rwa_supply_history": "/stats/rwa-supply-history?days=<n>",
    "docs": "/docs",
    "openapi": "/openapi.json",
    "uptime": "/uptime?days=30",
    "bundle_wallet_check": "/bundles/wallet-check?address=<r...>",
    "bundle_xrp_market_briefing": "/bundles/xrp-market-briefing",
    "bundle_rwa_token_report": "/bundles/rwa-token-report?issuer=<r...>",
    "bundle_fund_flow_report": "/bundles/fund-flow-report?days=7",
    "bundle_permissioned_venue_report": "/bundles/permissioned-venue-report?operator=<r...>",
    "bundle_xrpl_network_snapshot": "/bundles/xrpl-network-snapshot"
  },
  "streaming": {
    "billing_model": "time_boxed_subscription_v1",
    "billing_model_v2_planned": "xrpl_payment_channels",
    "billing_model_v2_note": "v2 will swap the time-boxed payment for native XRPL Payment Channels (PaymentChannelCreate / PaymentChannelClaim / PaymentChannelFund). Agent signs incremental off-chain claims as messages flow; server settles on-chain in one tx covering thousands of messages. Per-message billing without per-message latency. Not yet built.",
    "preview_token": {
      "endpoint": "GET /stream/preview-token",
      "auth": "Authorization: Bearer <preview-JWT> (same gate as the free /events/recent path; Turnstile-issued by the marketing-site Cloudflare Function)",
      "ttl_seconds": 300,
      "purpose": "Backs the live demo on xrpl-utilities.com/pulse/. Browsers re-fetch before each expiry. Agents wanting durable access should call POST /stream/purchase instead.",
      "response": {
        "stream_token": "string (HS256 JWT, scope=stream, 5-minute exp)",
        "ws_url": "string",
        "expires_at_unix": "integer",
        "served_via": "literal: preview-token",
        "applied_filters": "object (always empty on preview tier)"
      }
    },
    "purchase": {
      "endpoint": "POST /stream/purchase",
      "request_body": {
        "duration": "string: 1h | 6h | 24h",
        "min_usd": "number | null (optional whale-event USD floor)",
        "sources": "list[string] | null (optional source allowlist)",
        "signals": "list[string] | null (optional signal allowlist)"
      },
      "response": {
        "stream_token": "string (HS256 JWT, scope=stream, claims include exp, inv, dur, flt)",
        "ws_url": "string",
        "duration": "string",
        "duration_seconds": "integer",
        "expires_at_unix": "integer",
        "applied_filters": "object (echoed filter spec bound into the token)",
        "billing_model": "literal: time_boxed_subscription_v1"
      },
      "pricing": {
        "1h": {
          "xrp_approx_usd": "0.50",
          "rlusd": "0.50"
        },
        "6h": {
          "xrp_approx_usd": "2.50",
          "rlusd": "2.50"
        },
        "24h": {
          "xrp_approx_usd": "7.50",
          "rlusd": "7.50"
        },
        "note": "XRP-side amount is denominated in drops on the wire; the USD-approx values here assume a static XRP/USD reference. Authoritative per-tier amounts are returned in the 402 PaymentRequired body for the duration you ask for. Operator-overridable via PULSE_STREAM_{1H,6H,24H}_{DROPS,RLUSD} env."
      }
    },
    "websocket": {
      "endpoint": "WS /stream?token=<stream_token>",
      "frame_types": {
        "hello": "Sent once on connect. Carries schema_version, expires_at_unix, applied_filters, heartbeat_interval_s.",
        "event": "One frame per matched event. Shape matches a single element of POST /events/recent.events[].",
        "heartbeat": "Every 30s. Carries now_unix, expires_at_unix, dropped (running counter), queue_depth.",
        "expired": "Sent once when the JWT's exp passes; followed by a 1000 close.",
        "disconnect": "Sent once when sustained back-pressure trips the cap; followed by a 1011 close."
      },
      "back_pressure": "Drop-oldest discipline on a 500-event per-client queue. Brief bursts (a whale-heavy minute) are absorbed. Sustained inability to keep up shows up as a rising `dropped` counter on heartbeats; after 5000 consecutive drops the server closes the connection with code 1011.",
      "close_codes": {
        "1000": "Subscription window expired (token exp reached).",
        "1011": "Sustained back-pressure - client too slow to drain the queue.",
        "4401": "Invalid or unrecognized stream_token."
      },
      "replay_semantics": "No event replay across reconnects. Missed events while disconnected are gone. Use POST /events/recent to catch up history (paid).",
      "reconnect": "Same stream_token can be used for as many reconnects as needed until expires_at_unix. No refresh flow; buy a new subscription past expiry."
    }
  },
  "rate_limits": {
    "requests_per_minute": 30
  },
  "legal": {
    "notice": "Deterministic heuristic data only. Not an endorsement of news legitimacy. Source presence is reported as a property of an event, not a verdict on the source. Correlation against XR-Telemetry is a measurement, not a causal claim. DYOR. Not investment, legal, or regulatory advice.",
    "user_responsibility": "XRPL-Utilities provides a normalized public-source event feed and on-chain measurement data. We do not provide financial advice, risk ratings, source credibility assessments, or investment forensics. Users are responsible for ensuring their use of these tools complies with local digital asset and AI regulations, including the California Digital Financial Assets Law and the Colorado AI Act where applicable. This service is offered void where prohibited; use is not authorized in California or Colorado."
  }
}
