---
title: "Get Storage"
method: GET
path: "/defi/v1/chain/getstorage"
tags: ["chain"]
---

# Get Storage

`GET /defi/v1/chain/getstorage`

## Request

- Base URL: `https://svc.blockdaemon.com`
- URL: `https://svc.blockdaemon.com/defi/v1/chain/getstorage`
- Auth: API key in header `X-API-Key`

Accesses and returns detailed storage data for a specified smart contract, including its state variables, code, and ledger entries. This endpoint leverages base64-encoded keys to accurately retrieve binary data from the contract’s storage, ensuring that complex on-chain state information is properly encoded and accessible.

> 💡 
**Compute Unit Value:** `30` (Fixed)

## Query parameters

- `chainId` '1' | '25' | '11155111' | '56' | '97' | '43114' | '338' | '43113' | '42161' | '421614' | '10' | '11155420' | '4002' | '324' | '300' | '101' | '102' | '103' | '137' | '80002' | '250' | '8453' | '84532' | '400' | '401' | '1500' | '1501' | '17000' | '5000' | '5003' | '8217' | '1001': The unique ID to direct queries or transactions to the correct blockchain. Find more [here](https://docs.blockdaemon.com/docs/defi-api-supported-protocols#supported-chains).
- `chainSymbol` string: The abbreviated chain name for queries or transactions.
- `address` string, required: Contract address whose storage data is needed.
- `index` string: Slot index on the smart contract. Defaults to 0 if not specified.
- `keys` string, required: The key of the ledger entry, serialized in a base64 string.

## Response `200`

Successful response

- object
  - `status` integer
  - `msg` string
  - `data` object

---

[API](https://skmtc.dev/blockdaemon/apis/blockdaemon-defi-api.md) - [All operations](https://skmtc.dev/blockdaemon/apis/blockdaemon-defi-api/llms.txt) - [OpenAPI document](https://skmtc.dev/blockdaemon/apis/blockdaemon-defi-api/revisions/ec053b7c8041?raw)
