> ## Documentation Index
> Fetch the complete documentation index at: https://docs.uniblock.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# getLatestLedger

> Returns information about the latest ingested ledger.

### Parameters

<ParamField query="chainId" type="string" default="stellar-soroban" required>
  Unique identifier for a blockchain network.
</ParamField>

<ParamField body="id" type="number" default={1} required>
  Request identifier used to match responses.
</ParamField>

<ParamField body="jsonrpc" type="string" default="2.0" required>
  JSON-RPC version.
</ParamField>

<ParamField body="method" type="string" default="getLatestLedger" required>
  JSON-RPC method name.
</ParamField>

This method does not require any parameters.

### Returns

<ResponseField name="result" type="object">
  Latest ledger metadata.

  <Expandable title="properties">
    <ResponseField name="sequence" type="integer">
      Ledger sequence number.
    </ResponseField>

    <ResponseField name="hash" type="string">
      Ledger hash.
    </ResponseField>

    <ResponseField name="closeTime" type="integer">
      Close time as Unix timestamp (seconds).
    </ResponseField>

    <ResponseField name="protocolVersion" type="integer">
      Stellar protocol version used for this ledger.
    </ResponseField>
  </Expandable>
</ResponseField>

<RequestExample>
  ```bash Curl theme={null}
  curl --request POST \
    --url https://api.uniblock.dev/uni/v1/json-rpc?chainId=stellar-soroban \
    --header 'content-type: application/json' \
    --data '{
      "id": 1,
      "jsonrpc": "2.0",
      "method": "getLatestLedger",
      "params": []
    }'
  ```
</RequestExample>

<ResponseExample>
  ```json Success theme={null}
  {
    "jsonrpc": "2.0",
    "id": 1,
    "result": {}
  }
  ```
</ResponseExample>
