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": 3,
  "account": "rJqiMb94hyz41SBTNr2AyPNW8AzELa8nE",
  "accountActive": true,
  "accountData": {
    "balance": 112632824.027281,
    "total": 112632825.627281,
    "balanceDrops": 112632825627281,
    "spendableDrops": 112632824027281,
    "ownerCount": 3,
    "sequence": 67314624,
    "flags": 0,
    "reserve": 1.6,
    "reserveDrops": 1600000,
    "previousTxnID": "258B3113FACCA105034BA376B6A566E6434C9B9471AD02A431B2CB86DE4797F0",
    "previousTxnLgrSeq": 107700922,
    "ledgerEntryType": "AccountRoot",
    "index": "FA35F8F693F566F164D678CBD24B21AA9A5FC5F0DD8D676A138404B8CBFE3132"
  },
  "xrp": {
    "currency": "XRP",
    "issuer": "XRPL",
    "balance": "112632824.027281",
    "value": 112632824.027281,
    "md5": "84e5efeb89c4eae8f68188982dc290d8",
    "name": "XRP",
    "user": "XRP",
    "usd": "1.31405",
    "exch": 1,
    "rlusd": 1.312177888253122,
    "marketcap": 63129671205,
    "p24h": 0.01605,
    "pro24h": 1.236517719568564,
    "holders": 7788544,
    "vol24hxrp": 4133363.646772
  },
  "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": 67590,
      "issuer": "rMxCKbEDwqr76QuheSUMdEGf4B9xJ8m5De",
      "currency": "524C555344000000000000000000000000000000",
      "name": "RLUSD",
      "md5": "0dd550278b74cb6690fdae351e8e0df3",
      "marketcap": 777519138.9788443,
      "user": "Ripple",
      "vol24hxrp": 3108916.943476
    }
  ]
}
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