Skip to content

Latest commit

 

History

History
41 lines (31 loc) · 589 Bytes

getstorage.md

File metadata and controls

41 lines (31 loc) · 589 Bytes

getstorage Method

Return the stored value according to the contract script hash and the stored key.

{
  "jsonrpc": "2.0",
  "method": "getstorage",
  "params": [script_hash, key],
  "id": 15
}

Parameter Description

  • script_hash: Contract script hash

  • key: The key to look up in storage (in hex string)

Example

Request body:

{
  "jsonrpc": "2.0",
  "method": "getstorage",
  "params": ["03febccf81ac85e3d795bc5cbd4e84e907812aa3", "5065746572"],
  "id": 15
}

Response body:

{
  "jsonrpc": "2.0",
  "id": 15,
  "result": "4c696e"
}