Get the storage value at a specific position for a contract
GET/:network/contract/storage
Get the storage value at a specific position for a contract
Request
Path Parameters
Blockchain network name or chain id
Query Parameters
Optional block number for which the balance is requested. Provide only block height or timestamp you want to check for.
Optional Date timestamp for which the balance is requested (ISO 8601 format). Provide only block height or timestamp you want to check for.
Address of the contract
Storage position to fetch (can be in decimal or hex format)
The id of your project. Can be found in your Histori dashboard.
Responses
- 200
- 400
Contract storage value fetched successfully.
- application/json
- Schema
- Example (from schema)
Schema
Name of the blockchain network
Chain ID of the blockchain network
Address of the contract
Storage position queried
Value stored at the given position
{
"network": "eth-mainnet",
"chain_id": 1,
"contract_address": "0x1234567890abcdef1234567890abcdef12345678",
"position": "0",
"storage_value": "0x0000000000000000000000000000000000000000000000000000000000000001"
}
Invalid contract address, position, or network name.