XRPSCAN
HomeMetricsValidatorsAmendments
  • 📖Build with XRPSCAN
  • 📘API Documentation
    • Introduction
    • Pricing
      • Pay as you Go (PAYG)
    • API Concepts
      • Pagination
    • Account
      • Account info
      • Activations
      • Ancestry
      • Assets
      • Deposit Preauths
      • DEX Orders
      • Escrows
      • Issued tokens
      • Issued token balance
      • NFTs
      • Settings
      • Trustlines
      • Transactions
      • Xumm KYC status
    • Transaction
      • Transaction info
    • Ledger
      • Ledgers
      • Ledger info
      • Transactions
    • NFT
      • NFT info
    • AMM
      • AMM info
      • Pools
    • Object
      • Object info
    • Amendment
      • Amendments
      • Amendment info
    • Validator
      • Registry
      • Validator info
      • Report
    • Node
      • Nodes
      • Node info
    • Network
      • Fee
      • Server info
      • Server versions
    • Account Name
      • Well known accounts
    • Balance
      • Balances
    • Fact
      • Facts in namespace
      • Fact
    • Metrics
      • Metrics
    • Health
      • Ping
  • 📗Help
    • Integration guide
    • Validator
    • Contribute
    • Privacy policy
    • Contact us
  • 📙FAQs
    • How to report scams
Powered by GitBook
On this page
  • Request
  • Example
  • Response
  • Response format
  1. API Documentation
  2. Account

Trustlines

This endpoint retrieves information about an account's trust lines, which contain balances in all non-XRP currencies and assets. All information retrieved is relative to a last validated ledger.

Request

GET /api/v1/account/{ACCOUNT}/trustlines2

Example

curl https://api.xrpscan.com/api/v1/account/rf1BiGeXwwQoi8Z2ueFYTEXSwuJYfV2Jpn/trustlines2

Response

{
  "account": "rf1BiGeXwwQoi8Z2ueFYTEXSwuJYfV2Jpn",
  "ledger_current_index": 81505485,
  "lines": [
    {
      "account": "rJF9txJpy3RG7XkXsiL72us5X5txbQDFgA",
      "balance": "0",
      "currency": "VGB",
      "limit": "0",
      "limit_peer": "100000000",
      "no_ripple": false,
      "no_ripple_peer": true,
      "quality_in": 0,
      "quality_out": 0
    },
    {
      "account": "rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B",
      "balance": "0",
      "currency": "USD",
      "limit": "1000000000",
      "limit_peer": "0",
      "no_ripple": true,
      "no_ripple_peer": false,
      "quality_in": 0,
      "quality_out": 0
    },
    {
      "account": "r9qheokwreSsfdFqvYzYerrTa6xGpD8N5r",
      "balance": "0",
      "currency": "USD",
      "limit": "0",
      "limit_peer": "10000",
      "no_ripple": false,
      "no_ripple_peer": false,
      "quality_in": 0,
      "quality_out": 0
    },
    {
      "account": "ra5nK24KXen9AHvsdFTKHSANinZseWnPcX",
      "balance": "-14.0301",
      "currency": "USD",
      "limit": "0",
      "limit_peer": "100",
      "no_ripple": false,
      "no_ripple_peer": false,
      "quality_in": 0,
      "quality_out": 0
    },
    {
      "account": "rMwjYedjc7qqtKYVLiAccJSmCwih4LnE2q",
      "balance": "0.0001",
      "currency": "USD",
      "limit": "110",
      "limit_peer": "0",
      "no_ripple": true,
      "no_ripple_peer": false,
      "quality_in": 0,
      "quality_out": 0
    },
    {
      "account": "rsA2LpzuawewSBQXkiju3YQTMzW13pAAdW",
      "balance": "0",
      "currency": "USD",
      "freeze": true,
      "limit": "110",
      "limit_peer": "0",
      "peer_authorized": true,
      "quality_in": 0,
      "quality_out": 0
    },
    {
      "account": "rKaSUCRdBL5tnjEfbnA67JfbzHtCKsyNyE",
      "balance": "0",
      "currency": "USD",
      "limit": "0",
      "limit_peer": "10000000",
      "no_ripple": false,
      "no_ripple_peer": false,
      "quality_in": 0,
      "quality_out": 0
    }
  ],
  "validated": false
}

Response format

Additional properties may be available in the response based on rippled account_lines command.

PreviousSettingsNextTransactions

Last updated 1 year ago

📘
Logoaccount_lines | XRPL.org