{"uid":"cap_g-CjtbgEofiotCZsd8J1_","slug":"xrpl-account-trustlines-lookup-bbefe62d","name":"XRPL Account Trustlines Lookup","description":"Every trustline on an XRPL account — Genesis402 / UnyKorn Operator Network","url":"https://twin.unykorn.org/xrpl-lines?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"params":{"type":"object","properties":{"account":{"type":"string","pattern":"^r[1-9A-HJ-NP-Za-km-z]{24,34}$"}}}}},"responseSchema":{"type":"json","example":{"ok":true,"type":"xrpl-lines","receipt":{"tx_hash":"0x<64hex>","amount_usd":0.004,"receipt_id":"g402-<16hex>"},"generated_at":"<iso8601>"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.004","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.004/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_fzh---iCTri6q9VWRMORn","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.004","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns every trustline (issued currency line of trust) associated with a given XRP Ledger account address","exampleAgentPrompt":"Can you pull up every trustline on the XRPL account rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh and show me which currencies it trusts and the limits?","exampleUseCases":[{"title":"DeFi portfolio token audit","prompt":"I need to see every token trustline set up on the XRPL account rPT1Sjq2YGrBMTttX4GZHjKu9dyfzbpAYe — list all the currencies, their limits, and counterparty addresses so I can audit what this wallet has enabled."},{"title":"Compliance screening for XRPL address","prompt":"Before onboarding this customer, can you check all trustlines on their XRPL address rN7n3473SaZBCG4dFL83w7PB5AMmFcBSm to see which token issuers they have relationships with?"},{"title":"Debugging missing token balance","prompt":"My XRPL wallet rGWrZyax5eXbi5gs49MkMfjbpAYe1234XX isn't showing my USDC balance — can you fetch all the trustlines on that account so I can see if the trust line to the issuer is actually set up?"}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T18:55:49.325Z","isFirstParty":false,"canonicalSlug":"xrpl-account-trustlines-lookup-bbefe62d"}