> For the complete documentation index, see [llms.txt](https://tutorial.neoline.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tutorial.neoline.io/reference/neo3-provider-api/getstorage.md).

# getStorage

Gets a storage entry from the specified contract.

## Parameters

#### 1. hash *(required)*

`UInt160`

The script hash of the contract.

#### 2. key *(required)*

`Base64Encoded`

The storage key encoded as base64.

## Returns

`Promise<Base64Encoded>`

The raw storage value encoded as base64.

## Errors

| Code    | Name        | Description                       |
| ------- | ----------- | --------------------------------- |
| `10002` | `INVALID`   | One or more inputs are invalid.   |
| `10003` | `NOTFOUND`  | The storage entry does not exist. |
| `10008` | `RPC_ERROR` | The RPC server returned an error. |

## Example

### Request

```js
const value = await provider.getStorage(
  "0x99042d380f2b754175717bb932a911bc0bb0ad7d",
  "aGVsbG8=",
);
```

### Response

```js
"d29ybGQ="
```
