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 response4 ms · just now · 2.7 KB · 92 lines
https://api.xrpl.to/v1/trustlines/rJqiMb94hyz41SBTNr2AyPNW8AzELa8nE
{
  "success": true,
  "took": 2,
  "account": "rJqiMb94hyz41SBTNr2AyPNW8AzELa8nE",
  "accountActive": true,
  "accountData": {
    "balance": 167380145.229464,
    "total": 167380146.829464,
    "balanceDrops": 167380146829464,
    "spendableDrops": 167380145229464,
    "ownerCount": 3,
    "sequence": 67314589,
    "flags": 0,
    "reserve": 1.6,
    "reserveDrops": 1600000,
    "previousTxnID": "3EA4FAE2BE3D2FD96D20470535106AFC4CFED0FCD99CECC8359D5F07C8E1870C",
    "previousTxnLgrSeq": 107072724,
    "ledgerEntryType": "AccountRoot",
    "index": "FA35F8F693F566F164D678CBD24B21AA9A5FC5F0DD8D676A138404B8CBFE3132"
  },
  "xrp": {
    "currency": "XRP",
    "issuer": "XRPL",
    "balance": "167380145.229464",
    "value": 167380145.229464,
    "md5": "84e5efeb89c4eae8f68188982dc290d8",
    "name": "XRP",
    "user": "XRP",
    "usd": "1.4356",
    "exch": 1,
    "rlusd": 1.4336264351486816,
    "marketcap": 61977843307,
    "p24h": 0.0529,
    "pro24h": 3.8258479785926003,
    "holders": 7718951,
    "vol24hxrp": 5732375.131878
  },
  "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": 67329,
      "issuer": "rMxCKbEDwqr76QuheSUMdEGf4B9xJ8m5De",
      "currency": "524C555344000000000000000000000000000000",
      "name": "RLUSD",
      "md5": "0dd550278b74cb6690fdae351e8e0df3",
      "marketcap": 722909128.6686453,
      "user": "Ripple",
      "vol24hxrp": 4724048.342188
    }
  ]
}
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