post https://api.infstones.com/theta/mainnet/
This API returns the value from a storage position at a given address.
Parameters
Object Name | Required | Type | Detail |
---|---|---|---|
address | ✅ | String | address of smart contract |
storage_positon | ✅ | String | storage position |
height | ❌ | String | block height |
"params":[
{
"address":"0xa89c744db76266eca60e2b0f62afcd1f8581b7ed",
"storage_positon": "0"
}
]
Result
Result Fields
Key | Type | Detail |
---|---|---|
value | String | value from a storage position at a given address |
Example
Request
curl <your-endpoint> \
-X POST \
-H "Content-Type: application/json" \
-d'
{
"jsonrpc": "2.0",
"method": "theta.GetStorageAt",
"params": [
{
"address": "0xa89c744db76266eca60e2b0f62afcd1f8581b7ed",
"storage_positon": "0"
}
],
"id": 1
}'
Return
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"value": "0000000000000000000000001336739b05c7ab8a526d40dcc0d04a826b5f8b03"
}
}