Skip to content

Instantly share code, notes, and snippets.

@enmaku
Created October 4, 2011 00:16
Show Gist options
  • Save enmaku/1260604 to your computer and use it in GitHub Desktop.
Save enmaku/1260604 to your computer and use it in GitHub Desktop.
Demo of how to change Bitcoin wallet password using JSON RPC
from jsonrpc import ServiceProxy
access = ServiceProxy("http://127.0.0.1:8332")
pwd = raw_input("Enter old wallet passphrase: ")
pwd2 = raw_input("Enter new wallet passphrase: ")
access.walletpassphrasechange(pwd, pwd2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment