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. Ledger

Ledger info

This endpoint retrieves ledger object identified by a given ledger index.

Request

GET /api/v1/ledger/{LEDGER_INDEX}
GET /api/v1/ledger/{LEDGER_HASH}

Example

curl https://api.xrpscan.com/api/v1/ledger/80000000
curl https://api.xrpscan.com/api/v1/ledger/DB978F031B...14858A55DF

Response

{
  "ledger_index": 80000000,
  "ledger_hash": "DB978F031BB14734213998060E077D5F813358222DAB07CA8148588D852A55DF",
  "close_flags": 0,
  "close_time": 1684953531,
  "close_time_human": "2023-05-24T18:38:51.000Z",
  "close_time_resolution": 10,
  "parent_close_time": 1684953530,
  "parent_hash": "E70235CEAA964202C74CD81132C69F8F44FE539F9E347F82AA3131410B7CDBEF",
  "transaction_hash": "CDA48280EF5F88BC86164A77E1072296899B384619D552445D71C922026A3E8C",
  "tx_count": 36,
  "total_coins": 99988894618845390
}

Response format

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

PreviousLedgersNextTransactions

Last updated 2 months ago

📘
Logoledger | XRPL.org