# Get Ledger Proof
Returns the ledger proof for the given commitment with the current ledger root.

### Arguments

|       Parameter       |   Type   |  Required  |                             Description                              |
|:---------------------:|:--------:|:----------:|:--------------------------------------------------------------------:|
|  `record_commitment`  |  string  |    Yes     |  The record commitment to generate a ledger proof of inclusion for.  |

### Response

| Parameter | Type   | Description                            |
|-----------|--------|----------------------------------------|
| `result`  | string | The ledger proof as hex-encoded bytes. |

#### Ledger Proof (Deserialized)
|            Parameter            |   Type   |                                  Description                                   |
|:-------------------------------:|:--------:|:------------------------------------------------------------------------------:|
|          `ledger_root`          |  string  |                            The current ledger root.                            |
|  `ledger_root_inclusion_proof`  |  string  |         The proof of inclusion for the given given record commitment.          |
|         `record_proof`          |  string  | The proof of inclusion for the record corresponding to the record commitment.  |

### Example Request
```ignore
curl --data-binary '{"jsonrpc": "2.0", "id":"1", "method": "getledgerproof", "params": ["cm1xck4eyf3a3qnz69yyrr3jf698mqzwpjgkqu0j359p0sdr5wyjyqsn0604p"] }' -H 'content-type: application/json' http://127.0.0.1:3030/
```

### Example Response
```json
{
    "jsonrpc": "2.0",
    "result": "[encoded data, 4548 characters]",
    "id": "1"
}
```
