# XRPL Account Trustlines Lookup

> XRPL Account Trustlines Lookup is a paid API for AI agents from twin.unykorn.org, paid per call via x402, $0.004/call, status unknown (last checked 2026-10-01).

Returns every trustline (issued currency line of trust) associated with a given XRP Ledger account address

## Facts

- Endpoint: POST https://twin.unykorn.org/xrpl-lines?utm_source=zero.xyz
- Price: $0.004/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/xrpl-account-trustlines-lookup-bbefe62d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_g-CjtbgEofiotCZsd8J1_

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-trustlines-lookup-bbefe62d -d '<json body>'
```

Example prompt: Can you pull up every trustline on the XRPL account rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh and show me which currencies it trusts and the limits?

## When to prefer this

Use this endpoint when you need the full, exhaustive list of trustlines for a single XRPL account and are operating in an x402 pay-per-call environment. Prefer this over a full XRPL account read endpoint when you only need trustline data and want a focused, lightweight response. Ideal when building compliance tools, portfolio auditors, or DeFi dashboards that need to enumerate issued currency relationships on the XRP Ledger.

## Known failure modes

- Invalid or malformed XRPL account address (fails regex ^r[1-9A-HJ-NP-Za-km-z]{24,34}$) returns validation error
- Account not found on the XRP Ledger returns empty trustlines or 404-equivalent
- Payment authorization failure via x402 protocol results in 402 response before data is returned
- XRPL node unavailability causes upstream timeout or 503-equivalent
- Account exists but has no trustlines returns an empty array

## How this service works

Every trustline on an XRPL account — Genesis402 / UnyKorn Operator Network

## Output

A JSON object containing an 'ok' status flag, a 'type' field identifying the response as 'xrpl-lines', an array of all trustlines for the account (each including currency code, account/counterparty, limit, limit_peer, balance, and flags), a 'generated_at' ISO 8601 timestamp, and a payment receipt with transaction hash, USD amount charged, 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-lines",
  "receipt": {
   "tx_hash": "0x<64hex>",
   "amount_usd": 0.004,
   "receipt_id": "g402-<16hex>"
  },
  "generated_at": "<iso8601>"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/xrpl-account-trustlines-lookup-bbefe62d/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)
