getproof Method
Gets proof by querying root hash, contract hash, and storage key.
[!Note]
You must install the plugin StateService and RpcServer before you can invoke the method.
Parameter Description
roothash: root hash of state root
scripthash: Contract script hash
key: key of the storage; Base64-encoded.
Configuration
Before you can invoke the getproof method you must install the plugin StateService and RpcServer, and then modify the following fields in the StateService config.json file:
FullState: Set to true, or the error message is returned as follows:
Network: Set to the same value as
Network
in the Neo-cli config.json.AutoVerify: Set whether to enable verification by default, and if yes, the default active wallet in Neo-cli is used as the verification node.
Example
Request body:
Response body: