GET /trustlines/{account}
GET

/v1/trustlines/{account}

Trustlines with token values

AuthNone — works without a key

Request

GEThttps://api.xrpl.to/v1/trustlines/rJqiMb94hyz41SBTNr2AyPNW8AzELa8nE
Path parameterValueDescription
accountAn XRPL account, its r-address
Query parameterValueDescription
offsetint (exact, no page snapping)
limitint (1-50, default 20; up to 2000 when sort_by_value=true)
formatraw|default|full
sort_by_valuebool
searchtext - filter by currency/name/symbol
includeZerobool - include zero-balance lines
lightweightbool - strip each line’s token join to the ~30 essential fields (see tokenFields; ~90% smaller per line)
curl 'https://api.xrpl.to/v1/trustlines/rJqiMb94hyz41SBTNr2AyPNW8AzELa8nE'

Response

200Example response46 ms · just now · 2.7 KB · 92 lines
https://api.xrpl.to/v1/trustlines/rJqiMb94hyz41SBTNr2AyPNW8AzELa8nE
{
  "success": true,
  "took": 33,
  "account": "rJqiMb94hyz41SBTNr2AyPNW8AzELa8nE",
  "accountActive": true,
  "accountData": {
    "balance": 163597942.797381,
    "total": 163597944.397381,
    "balanceDrops": 163597944397381,
    "spendableDrops": 163597942797381,
    "ownerCount": 3,
    "sequence": 67314616,
    "flags": 0,
    "reserve": 1.6,
    "reserveDrops": 1600000,
    "previousTxnID": "4E51C12A80EF37A711E6F7B5B08EECF5E3E912604607FD5398ADAF0D355DD48E",
    "previousTxnLgrSeq": 107550630,
    "ledgerEntryType": "AccountRoot",
    "index": "FA35F8F693F566F164D678CBD24B21AA9A5FC5F0DD8D676A138404B8CBFE3132"
  },
  "xrp": {
    "currency": "XRP",
    "issuer": "XRPL",
    "balance": "163597942.797381",
    "value": 163597942.797381,
    "md5": "84e5efeb89c4eae8f68188982dc290d8",
    "name": "XRP",
    "user": "XRP",
    "usd": "1.41045",
    "exch": 1,
    "rlusd": 1.4101076346726011,
    "marketcap": 63129671205,
    "p24h": 0.01235,
    "pro24h": 0.8833416779915559,
    "holders": 7769799,
    "vol24hxrp": 1856076.248919
  },
  "total": 4,
  "zeroCount": 0,
  "offset": 0,
  "limit": 20,
  "lines": [
    {
      "currency": "4555524356000000000000000000000000000000",
      "issuer": "rUNaS5sqRuxZz6V7rBGhoSaZiVYA3ut4UL",
      "balance": "10000000",
      "limit": "9999999999999999",
      "flags": 1114112,
      "hash": "486D1D18FA6FDF7963E40EE3194AC87986A9F62E3FB341B9A72B8596BBD8B0D0",
      "time": 1760464280
    },
    {
      "currency": "4F55534700000000000000000000000000000000",
      "issuer": "rHuiXXjHLpMP8ZE9sSQU5aADQVWDwv6h5p",
      "balance": "178655.564832",
      "limit": "9999999999999999",
      "flags": 1769472,
      "hash": "12CF97C38A91956D791B5BBDC1469B48E09EC56E10BD49E3399F0505EF397E9D",
      "time": 1773869891
    },
    {
      "currency": "4F55534700000000000000000000000000000000",
      "issuer": "rhb22iJ4dudMMe4WBiRKuDQGDuDiRawKcp",
      "balance": "0",
      "limit": "0",
      "flags": 3276800,
      "hash": "11AE14E96D563BEFF1B815ABABCD62C9EC8FEE46FFB2C488E1A7473790F974CE",
      "time": 1767996950
    },
    {
      "currency": "4F55534700000000000000000000000000000000",
      "issuer": "r718Tqec3zMHz1FgXuPU5kfmZE4xpVAqy",
      "balance": "0",
      "limit": "0",
      "flags": 3276800,
      "hash": "D8195AD31AE824A3B32E0BBBF0BB74D0FABC37B8E47AB2334667ECC86574410A",
      "time": 1780258271
    }
  ],
  "created": [
    {
      "holders": 67472,
      "issuer": "rMxCKbEDwqr76QuheSUMdEGf4B9xJ8m5De",
      "currency": "524C555344000000000000000000000000000000",
      "name": "RLUSD",
      "md5": "0dd550278b74cb6690fdae351e8e0df3",
      "marketcap": 810416001.1494263,
      "user": "Ripple",
      "vol24hxrp": 1266086.370585
    }
  ]
}
Shapeas documented
{
  success,
  took,
  account,
  accountActive,
  accountData,
  xrp,
  total,
  zeroCount,
  offset,
  limit,
  lines[],
  issued[]?,
  tokenCount?,
  totalValue?,
  truncated? + subsetSize? (sort_by_value on accounts >2000 lines),
  partial?
}

What it does

Trustlines with token values

An account is its r-address, e.g. rN7n3473SaZBCG4dFL83w7a1RXtXtbk2D9.
OpenAPI