post https://api.infstones.com/neo/mainnet/
Returns the value with the contract script hash and the key.
Parameters
Object Name | Required | Type | Detail |
---|---|---|---|
SCRIPT HASH | ✅ | String | The contract script hash or contract ID |
KEY | ✅ | String | The key to look up in storage. (Base64-encoded) |
"params":[
"0x2b6ab054615c2386c9c0e4f35dc5f2d5e35768fa",
"SGVsbG8="
]
Result
The stored value according to the contract script hash and the stored key.
Example
Request
curl <your-endpoint> \
-X POST \
-H "Content-Type: application/json" \
-d '{"jsonrpc": "2.0", "method": "getstorage", "params":["0x2b6ab054615c2386c9c0e4f35dc5f2d5e35768fa", "SGVsbG8="],"id": 1}'
Return
{
"jsonrpc": "2.0",
"id": 1,
"result": "V29ybGQ="
}