Encryptwallet
encryptwallet
Encrypts the wallet with 'passphrase'. This is for first time encryption.
Arguments
| Position | Name | Type | Required | Default | Description |
|---|---|---|---|---|---|
Result
"str" (string) A string with further instructions
Examples
Encrypt your wallet
raptoreum-cli encryptwallet "my pass phrase"
Now set the passphrase to use the wallet, such as for signing or sending raptoreum
raptoreum-cli walletpassphrase "my pass phrase"
Now we can do something like sign
raptoreum-cli signmessage "address" "test message"
Now lock the wallet again by removing the passphrase
raptoreum-cli walletlock
As a JSON-RPC call
curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "encryptwallet", "params": ["my pass phrase"] }' -H 'content-type: text/plain;' http://127.0.0.1:10225/