neo

NEO (NEO)

Method: POST getstorage

dropdown

POST getstorage

Returns the stored value according to the contract script hash and the stored 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/mainnet/' 
--header 'x-api-key: YOUR-API-KEY' 
--header 'Content-Type: application/json' 
--data-raw '{"jsonrpc": "2.0",
"method": "getstorage",
"params": [null, null],
"id": "getblock.io"}'


Response

{
    "id": "getblock.io",
    "jsonrpc": "2.0",
    "result": "d29ybGQ="
}