# eth\_getStorageAt - Ethereum

## How to Use the eth\_getStorageAt Method

### **Parameters**

ADDRESS \[necessary] - a string that presents the storage’s address (20 bytes).

QUANTITY \[necessary] - a hex code which represents the position in the storage

BLOCK PARAMETER \[required] - the string "latest", "earliest" or "pending", or an integer block number, check the [default block parameter](https://github.com/ethereum/wiki/wiki/JSON-RPC#the-default-block-parameter) for details.

### What you receive

STORAGE VALUE - a hex code that represents the integer indicating the value of the storage position at the given address.

```json
{
    "jsonrpc":"2.0",
    "id":1,
    "result":"0x000000000000000000000000000000000000000000000000000000000000162e"
}
```

### Sample

Here is a typical appliance example.

#### Call

{% tabs %}
{% tab title="Curl" %}

```bash
curl https://eth-mainnet.rpcfast.com/?api_key=<key> \
    -X POST \
    -H "Content-Type: application/json" \
    -d '{"jsonrpc":"2.0", "method": "eth_getStorageAt", "params": ["0x295a70b2de5e3953354a6a8344e616ed314d7251", "0x0", "latest"], "id": 1}'

```

{% endtab %}
{% endtabs %}

#### Outcome

```json
{
    "jsonrpc":"2.0",
    "id":1,
    "result":"0x000000000000000000000000000000000000000000000000000000000000162e"
}
```
