back to methods summary

getViewKey method returns the view key.

No input.

Return :

ArgumentDescriptionFormatExample
viewSecretKeyPrivate view keystring75817c2ef862dedcbfaafbfab95a8c4d6612d106d9e36522410a8513bcbdb608

Example:

{
  "params":{},
  "jsonrpc":"2.0",
  "id":"test",
  "method":"getViewKey"
}

$ curl -s -X POST -d '{"params":{},"jsonrpc":"2.0","id":"test","method":"getViewKey"}' localhost:14101/json_rpc | jq

Return value example:

{
  "id": "test",
  "jsonrpc": "2.0",
  "result": {
    "viewSecretKey": "75817c2ef862dedcbfaafbfab95a8c4d6612d106d9e36522410a8513bcbdb608"
  }
}

back to methods summary