getstorage Method
Returns the stored value according to the contract script hash and the stored key. Both key and value are Base64-encoded.
[!Note]
You must install the plugin RpcServer before you can invoke the method.
Parameter Description
script_hash: Contract script hash or contract ID
key: The key to look up in storage (Base64-encoded)
Example
Request body:
hello
is converted into the Base64 string aGVsbG8=
.
Response body:
d29ybGQ=
is converted into the string world
.