# XRPL Account Read — Balance, Reserve, Spendable, Trustlines, Flags

> XRPL Account Read — Balance, Reserve, Spendable, Trustlines, Flags is a paid API for AI agents from twin.unykorn.org, paid per call via x402, $0.008/call, status unknown (last checked 2026-09-29).

Fetches full account state from the XRP Ledger mainnet: XRP balance, reserve, spendable amount, trustlines, owner count, and account flags for a given XRPL address.

## Facts

- Endpoint: POST https://twin.unykorn.org/xrpl-account?utm_source=zero.xyz
- Price: $0.008/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/xrpl-account-read-balance-reserve-spendable-trustlines-flags-d05073f8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_I1ckxnRuoHe4iAuzwc39M

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 xrpl-account-read-balance-reserve-spendable-trustlines-flags-d05073f8 -d '<json body>'
```

Example prompt: Can you check the XRP Ledger account rNepFS4... for me — I want to know the current XRP balance, how much is spendable after reserves, and what trustlines and account flags are active?

## When to prefer this

Use this endpoint when you need a comprehensive, single-call snapshot of an XRPL mainnet account including balance, reserves, spendable XRP, all trustlines, and account flags. Prefer it over raw XRPL node queries when you want a clean structured JSON response with no RPC boilerplate. Ideal for agents building XRPL portfolio dashboards, compliance checks, or payment pre-flight checks.

## Known failure modes

- Invalid r-address format returns validation error (pattern mismatch)
- Account not found on XRPL mainnet returns found: false
- Payment failure or insufficient USDC balance prevents call from completing
- Network timeout if XRPL node is unreachable
- Ledger data may be slightly stale if queried mid-ledger close

## How this service works

XRPL account read — balance, reserve, spendable, trustlines, flags — Genesis402 / UnyKorn Operator Network

## Output

Returns a JSON object with ok status, XRPL network identifier, XRP balance, calculated spendable XRP (balance minus reserve), reserve XRP, owner count, ledger index, account flags (deposit_auth, require_dest_tag), trustlines array (each with currency, issuer, balance, frozen status), and a payment receipt including tx_hash and receipt_id.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "params": {
   "type": "object",
   "properties": {
    "account": {
     "type": "string",
     "pattern": "^r[1-9A-HJ-NP-Za-km-z]{24,34}$"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "type": "xrpl-account",
  "flags": {
   "deposit_auth": false,
   "require_dest_tag": false
  },
  "found": true,
  "network": "xrpl:mainnet",
  "receipt": {
   "tx_hash": "0x<64hex>",
   "amount_usd": 0.25,
   "receipt_id": "g402-<16hex>"
  },
  "trustlines": [
   {
    "frozen": false,
    "issuer": "rNep…FS4",
    "balance": "969998000",
    "currency": "UNY"
   }
  ],
  "balance_xrp": "8.341856",
  "owner_count": 6,
  "reserve_xrp": "2.2",
  "ledger_index": 107117487,
  "spendable_xrp": "6.141856"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/xrpl-account-read-balance-reserve-spendable-trustlines-flags-d05073f8/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from twin.unykorn.org](https://www.zero.xyz/host/twin.unykorn.org/llms.txt)
