# XRP Ledger Moment Image Generator

> XRP Ledger Moment Image Generator is a paid API for AI agents from bruk-agent-api.fly.dev, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-23).

Generates a 1200x675 PNG image visualizing all transactions in a single XRP Ledger ledger as a colored tile grid, with metadata like fees burned, XRP supply, and ledger hash.

## Facts

- Endpoint: GET https://bruk-agent-api.fly.dev/v1/ledger-moment?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-23
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/xrp-ledger-moment-image-generator-3dc6f73e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_vAwvwIxWOkVR_Yf_fKTZ_

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability xrp-ledger-moment-image-generator-3dc6f73e
```

Example prompt: Can you generate a ledger moment image for the latest validated XRP mainnet ledger and give me the PNG so I can drop it into our weekly newsletter?

## When to prefer this

Choose this endpoint when you need a ready-made, publication-quality visual of a specific XRP Ledger ledger for use in newsletters, social media posts, reports, or dashboards. It uniquely combines ledger transaction tile visualization with on-chain metadata (fees burned, XRP supply, ledger hash) in a single image. Prefer this over raw XRPL data APIs when the goal is a human-readable graphic rather than raw transaction data. Best suited for content creators, blockchain journalists, and monitoring dashboards that want visual summaries without building custom charting infrastructure.

## Known failure modes

- Requested ledger_index not yet validated — returns error indicating ledger not available
- Invalid ledger_index format (non-numeric) — rejected by schema validation
- Network connectivity issues to XRPL nodes — may return 503 or timeout
- Testnet ledger index out of range — returns not-found error
- Payment failure (x402) — returns 402 if USDC payment not provided or invalid

## How this service works

Ledger moment image (1200x675 PNG): one validated XRP Ledger ledger drawn as one tile per transaction in ledger order, colored by type (payments, DEX offers, trust lines, AMM, NFTs, other), failed transactions hollow, with counts, fees burned, XRP supply, and the ledger hash. Latest validated ledger by default. Useful for posts, reports, and newsletters about network activity.

## Output

Returns either a JSON object containing a base64-encoded 1200x675 PNG image plus metadata (transaction counts by type, fees burned, XRP supply, ledger hash, ledger index, close time) or a raw PNG binary, depending on the format parameter. Each transaction is represented as a colored tile ordered by position in the ledger, with payment, DEX offer, trust line, AMM, NFT, and other transaction types in distinct colors, and failed transactions rendered as hollow tiles.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [],
     "properties": {
      "format": {
       "enum": [
        "json",
        "png"
       ],
       "type": "string",
       "description": "json (default, base64 image plus data) or png."
      },
      "network": {
       "enum": [
        "mainnet",
        "testnet"
       ],
       "type": "string",
       "description": "XRP Ledger network. Default mainnet."
      },
      "ledger_index": {
       "type": "string",
       "pattern": "^[0-9]+$",
       "description": "Validated ledger number. Default latest."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/xrp-ledger-moment-image-generator-3dc6f73e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from bruk-agent-api.fly.dev](https://www.zero.xyz/host/bruk-agent-api.fly.dev/llms.txt)
