# ledger_current

[[Source]](https://github.com/XRPLF/rippled/blob/master/src/xrpld/rpc/handlers/LedgerCurrent.cpp)

The `ledger_current` method returns the unique identifiers of the current in-progress [ledger](/docs/concepts/ledgers). This command is mostly useful for testing, because the ledger returned is still in flux.

## Request Format

An example of the request format:

WebSocket

```json
{
   "id": 2,
   "command": "ledger_current"
}
```

JSON-RPC

```json
{
    "method": "ledger_current",
    "params": [
        {}
    ]
}
```

Commandline

```sh
#Syntax: ledger_current
rippled ledger_current
```

The request contains no parameters.

## Response Format

An example of a successful response:

WebSocket

```json
{
  "id": 2,
  "status": "success",
  "type": "response",
  "result": {
    "ledger_current_index": 6643240
  }
}
```

JSON-RPC

```json
200 OK

{
    "result": {
        "ledger_current_index": 8696233,
        "status": "success"
    }
}
```

Commandline

```json
{
   "result" : {
      "ledger_current_index" : 56844050,
      "status" : "success"
   }
}
```

The response follows the [standard format](/docs/references/http-websocket-apis/api-conventions/response-formatting), with a successful result containing the following field:

| `Field` | Type | Description |
|  --- | --- | --- |
| `ledger_current_index` | Unsigned Integer - [Ledger Index](/docs/references/protocol/data-types/basic-data-types#ledger-index) | The ledger index of this ledger version. |


A `ledger_hash` field is not provided, because the hash of the current ledger is constantly changing along with its contents.

## Possible Errors

* Any of the [universal error types](/docs/references/http-websocket-apis/api-conventions/error-formatting#universal-errors).