Skip to content

walletpassphrasechange JSON-RPC command

walletpassphrasechange "oldpassphrase" "newpassphrase"

Changes the wallet passphrase from 'oldpassphrase' to 'newpassphrase'.


1. "oldpassphrase"    (string, required) The current passphrase
2. "newpassphrase"    (string, required) The new passphrase


> bitcoin-cli walletpassphrasechange "old one" "new one"
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "walletpassphrasechange", "params": ["old one", "new one"] }' -H 'content-type: text/plain;'

Bitcoin Cash Node Daemon version v27.0.1-7ef8bf2

Documentation on reflects the current master branch in Git, and may include API changes that are not yet present in the latest release.