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)
Request
- Base URLhttps://svc.blockdaemon.com
- URLhttps://svc.blockdaemon.com/defi/v1/chain/getstorage
- AuthAPI key in header X-API-Key
Query parameters
The unique ID to direct queries or transactions to the correct blockchain. Find more here.
The abbreviated chain name for queries or transactions.
Contract address whose storage data is needed.
Slot index on the smart contract. Defaults to 0 if not specified.
The key of the ledger entry, serialized in a base64 string.
Response
Successful response
Example response
{
"status": 200,
"msg": "success",
"data": {
"data": "0x000000000000000000000001c6f53a31de0ed6753f021224905772c706ee71ea"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.