NEO
NEO
POST
GET
Last updated on January 1, 1970
1 min read
Method getstorage NEO (NEO)
connect with JSON-RPC protocol
getstorage
Returns the stored value according to the contract script hash and thestored key. Both key and value are Base64-encoded.
Parameters
script_hash
- string
Contract script hash or contract ID
key
- string
The key to look up in storage (Base64-encoded)
Request
curl --location --request POST 'https://neo.getblock.io'
--header 'x-api-key: YOUR-API-KEY'
--header 'Content-Type: application/json'
--data-raw '{"jsonrpc": "2.0",
"method": "getstorage",
"params": ["0x99042d380f2b754175717bb932a911bc0bb0ad7d", "aGVsbG8="],
"id": "getblock.io"}'
Response
{
"id": "getblock.io",
"jsonrpc": "2.0",
"result": "d29ybGQ="
}
Start Building with GetBlock RPCs for Free
Previous
{ "overview": "Overview", "guides": "Guides", "get-started": "Get Started", "rpc-service": "Nodes Methods", "getblock-explorer": "Explorer API", "getblock-tracker": "Tracker API", "nodes-endpoints": "Nodes Endpoints" }
Next
{ "overview": "Overview", "guides": "Guides", "get-started": "Get Started", "rpc-service": "Nodes Methods", "getblock-explorer": "Explorer API", "getblock-tracker": "Tracker API", "nodes-endpoints": "Nodes Endpoints" }