---
name: walletpassphrasechange
btcversion: 0.20.0
btcgroup: wallet
permalink: en/doc/0.20.0/rpc/wallet/walletpassphrasechange/
---

walletpassphrasechange "oldpassphrase" "newpassphrase"

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

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

Result:
null    (json null)

Examples:
> bitcoin-cli walletpassphrasechange "old one" "new one"
> curl --user myuserna