POSTGet Ledgers Within Range

Data APIhttps://web3.nodit.io/v1/xrpl/mainnet/blockchain/getLedgersWithinRange

Retrieves the list of Ledgers within a specific range.

Path Parameters
chainstring (enum)required

Parameter to specify the target chain for the query.

networkstring (enum)required

Parameter to specify the network of the target chain. Supported networks may vary depending on the chain.

Request Body
fromLedgerstringrequired

Parameter specifying the starting ledger for the query. You can enter one of the following formats:

  • ledger index: Enter ledger number as a decimal string
  • ledger hash: 64-character hexadecimal string (excluding 0x prefix)
  • ledger tag: Enter "earliest" or "latest" (oldest or most recent ledger)

Notes:

  • If provided without toLedger, results are queried from this ledger to the latest ledger.
  • fromLedger value cannot be greater than toLedger value.
  • If fromLedger and toLedger have the same value, only that ledger is queried.
  • "latest" for fromLedger is only allowed when toLedger is "latest".
toLedgerstringrequired

Parameter specifying the ending ledger for the query. You can enter one of the following formats:

  • ledger index: Enter ledger number as a decimal string
  • ledger hash: 64-character hexadecimal string (excluding 0x prefix)
  • ledger tag: Enter "earliest" or "latest" (oldest or most recent ledger)

Notes:

  • If provided without fromLedger, results are queried from genesis ledger to this ledger.
  • toLedger value cannot be less than fromLedger value.
  • If fromLedger and toLedger have the same value, only that ledger is queried.
  • "earliest" for toLedger is only allowed when fromLedger is "earliest".
fromDatestring

Parameter specifying the start date for the query. Date must follow ISO 8601 format (YYYY-MM-DDThh:mm:ss{time zone}) including seconds.

Notes:

  • If provided without toDate, results are queried from this date to the latest block.
  • fromDate value must be equal to or earlier than toDate value.
  • If fromDate and toDate have the same value, only blocks from that date are queried.
  • This field cannot be used together with fromBlock and toBlock.
  • If fromDate and toDate are not provided, the API queries data from the latest 30 days.
toDatestring

Parameter specifying the end date for the query. Date must follow ISO 8601 format (YYYY-MM-DDThh:mm:ss{time zone}) including seconds.

Notes:

  • If provided without fromDate, results are queried from genesis block to this date.
  • toDate value must be equal to or later than fromDate value.
  • If fromDate and toDate have the same value, only blocks from that date are queried.
  • This field cannot be used together with fromBlock and toBlock.
  • If fromDate and toDate are not provided, the API queries data from the latest 30 days.
pageinteger

The page parameter specifies the data page to query. It accepts values up to 100; for pages exceeding 100, use the cursor pagination method.

The page and cursor parameters cannot be used together. If both page and cursor are empty, cursor pagination is used.

rppinteger

rpp stands for results per page and specifies the page size. You can specify a number greater than 0 and up to 100.

cursorstring

The cursor parameter supports pagination and data navigation between pages. Provide the cursor value from the previous page in the next request to load the next page of data.

The page and cursor parameters cannot be used together. If both page and cursor are empty, cursor pagination is used.

withCountboolean

Parameter specifying whether to include the count field in the response. The count field indicates the total number of requested data items. When set to true, the count field is included and response speed may be slower.

Responses
pageinteger

Field representing the page number specified in the page parameter. This field is only included in the response when a value greater than 0 is specified for the page parameter.

rppinteger

Field representing the number of results per page specified in the rpp parameter.

cursorstring

A field for cursor pagination. This value must be provided in the next request to load the next page of data.

countinteger

Field representing the total count of requested data. This field is only included in the response when true is set for the withCount parameter.

fromDatestring

Field representing the start of the query range in Date mode. Returned in ISO 8601 format.

toDatestring

Field representing the end of the query range in Date mode. Returned in ISO 8601 format.

fromBlockinteger

Field representing the start block height of the query range in Block mode.

toBlockinteger

Field representing the end block height of the query range in Block mode.

fromLedgerinteger

Field representing the start ledger index of the query range in Ledger mode.

toLedgerinteger

Field representing the end ledger index of the query range in Ledger mode.

ledgerHashstringrequired

Unique identifier of the current ledger, a 256-bit (64-digit hexadecimal) cryptographic hash. Used for ledger data integrity verification and identification.

예: 655EB9D740CC572BFFEC725ABB0AA0D813AAF01C91F8577076F29258794D9445

ledgerIndexintegerrequired

Integer value indicating the creation order of the ledger, used to identify its position (sequence number) on the network.

예: 95444296

ledgerTimestampintegerrequired

The ledger's close time converted to a Unix timestamp. The close time recorded in the ledger header is expressed in seconds since the Ripple Epoch (January 1, 2000 00:00 UTC), which differs from the Unix Epoch (January 1, 1970 00:00 UTC) by 946,684,800 seconds. Thus ledgerTimestamp is the recorded close time plus 946,684,800 seconds.

예: 1744608171

parentLedgerHashstringrequired

256-bit (64-digit hexadecimal) hash identifying the ledger immediately preceding the current ledger. References the previous ledger's hash to maintain chain integrity.

예: 45E963AA7A3BB017D626D088C91E6C646B6BBF558DD027AAD974CBBE9A3977D3

accountHashstringrequired

256-bit (64-digit hexadecimal) hash summarizing all account state information recorded in the ledger. Used to verify consistency and integrity of account data.

예: 43DA3A81948A7392D14E4DDFB8215372C4B0590E3B28691C599296E4478B12AC

totalCoinsstringrequired

Total quantity of XRP (in XRP units) owned by accounts recorded in the ledger. This value excludes XRP burned as transaction fees. The actual circulating XRP may be lower than this value because some accounts may be in a "black hole" state (accounts with no key).

예: 99986231517.566048

transactionHashstringrequired

256-bit (64-digit hexadecimal) Merkle tree root hash summarizing all transaction data included in the ledger. Used for transaction history integrity verification.

예: 8BAD7583234AC463E09D6CF160E352DFF5B008FC071DD5226A53809D89E7F409

transactionCountintegerrequired

Integer value indicating the total number of transactions included in the ledger. Used to assess the scale and activity of ledger transaction history.

예: 40

transactionsstring[]required

Array of transaction hashes included in the ledger. Each hash is a 256-bit (64-digit hexadecimal) cryptographic hash uniquely identifying a transaction, used for transaction data integrity and identification.

예: 044CD9B107E209F24F5342393F34493E7AFE99AE6F5051F2D75E186F07E1EAE8,0D1DDF6974EA31918EB531F9212FC76BC47BCE9193839496474010D133C0BB1E,1069423CDB7F19E082E6F418C779B19A0126B593832016D134A679EFB752CF0A

X-API-KEY
RequestCU150
cURL
curl -X POST "https://web3.nodit.io/v1/xrpl/mainnet/blockchain/getLedgersWithinRange" \
  -H "X-API-KEY: {YOUR_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{
  "fromDate": "2026-01-01T00:00:00Z",
  "toDate": "2026-02-01T00:00:00Z",
  "page": 1,
  "rpp": 10
}'
Response
Example · 200
{
  "page": 0,
  "rpp": 0,
  "cursor": "string",
  "count": 0,
  "range": {
    "fromDate": "string",
    "toDate": "string",
    "fromBlock": 0,
    "toBlock": 0,
    "fromLedger": 0,
    "toLedger": 0
  },
  "items": [
    {
      "ledgerHash": "655EB9D740CC572BFFEC725ABB0AA0D813AAF01C91F8577076F29258794D9445",
      "ledgerIndex": 95444296,
      "ledgerTimestamp": 1744608171,
      "parentLedgerHash": "45E963AA7A3BB017D626D088C91E6C646B6BBF558DD027AAD974CBBE9A3977D3",
      "accountHash": "43DA3A81948A7392D14E4DDFB8215372C4B0590E3B28691C599296E4478B12AC",
      "totalCoins": "99986231517.566048",
      "transactionHash": "8BAD7583234AC463E09D6CF160E352DFF5B008FC071DD5226A53809D89E7F409",
      "transactionCount": 40,
      "transactions": [
        "044CD9B107E209F24F5342393F34493E7AFE99AE6F5051F2D75E186F07E1EAE8",
        "0D1DDF6974EA31918EB531F9212FC76BC47BCE9193839496474010D133C0BB1E",
        "1069423CDB7F19E082E6F418C779B19A0126B593832016D134A679EFB752CF0A"
      ]
    }
  ]
}