chain

Get Storage

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)

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

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.

Example:1
chainSymbolstring

The abbreviated chain name for queries or transactions.

Example:ETH
addressstring required

Contract address whose storage data is needed.

Example:0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402
indexstring

Slot index on the smart contract. Defaults to 0 if not specified.

Example:0
keysstring required

The key of the ledger entry, serialized in a base64 string.

Example:AAAABgAAAAFV3d0a2VhBZ

Response

Successful response

statusinteger
msgstring
dataobject

Example response

{
  "status": 200,
  "msg": "success",
  "data": {
    "data": "0x000000000000000000000001c6f53a31de0ed6753f021224905772c706ee71ea"
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.