post https://api.infstones.com/starknet/mainnet/
Returns the value from a storage position at a given address.
Parameters
Object Name | Required | Type | Detail |
---|---|---|---|
ADDRESS | ✅ | String | Address from logs should originate. |
STORAGE POSITION | ✅ | String | A hex code of an integer that represents the position in the storage. |
BLOCK PARAMETER | ✅ | String | "latest", "pending", or the hash of a block. |
"params": [
"0x044e5b3f0471a26bc749ffa1d8dd8e43640e05f1b33cf05cef6adee6f5b1b4cf",
"0x0000000000000000000000000000000000000000000000000000000000000001",
"latest"
]
Result
A hex code that represents the value at the provided storage position.
Example
Request
curl <your-endpoint> \
-X POST \
-H "Content-Type: application/json" \
-d '{
"id": 1,
"jsonrpc": "2.0",
"method": "starknet_getStorageAt",
"params": [
"0x044e5b3f0471a26bc749ffa1d8dd8e43640e05f1b33cf05cef6adee6f5b1b4cf",
"0x0000000000000000000000000000000000000000000000000000000000000001",
"latest"
]
}'
Return
{
"jsonrpc": "2.0",
"result": "0x0",
"id": 1
}