back to methods summary

The reset method allows you to re-sync your wallet or changing your viewSecretKey in case of importing another wallet viewSecretKey.

:!: Specifying the viewSecretKey argument cause the walletd replace the current viewSecretKey by the new specified. This mean you will loose your current wallet if you don't have backups of your keys.

Input.

ArgumentMandatoryDescriptionFormatExample
viewSecretKeyNoview_secret_keystring75817c2ef862dedcbfaafbfab95a8c4d6612d106d9e36522410a8513bcbdb608

No output.


Reset (resync only)

Resets the wallet and re-syncs it.

Input :

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

Curl example:

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

Return :

{
  "id": "test",
  "jsonrpc": "2.0",
  "result": {}
}


Reset ( use another viewSecretKey )


Important: If the viewSecretKey argument is specified, the reset method substitutes the existing wallet with a new one with the new specified viewSecretKey.

This will override your existing wallet file! Don't do that at home without having a backup of your keys!

You have been warned.

Input :

{"params":{
  "viewSecretKey":"75817c2ef862dedcbfaafbfab95a8c4d6612d106d9e36522410a8513bcbdb608"
    },
    "jsonrpc":"2.0",
    "id":"test",
    "method":"reset"
}

Curl example:

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

Return :

{
  "id": "test",
  "jsonrpc": "2.0",
  "result": {}
}

back to methods summary