From 8ad100a55be07efd481641319efe70ba430e8d23 Mon Sep 17 00:00:00 2001 From: David Perry Date: Mon, 3 Oct 2011 14:04:11 -0700 Subject: [PATCH] Added wallet tools Signed-off-by: David Perry --- contrib/wallettools/walletchangepass.py | 5 +++++ contrib/wallettools/walletunlock.py | 4 ++++ 2 files changed, 9 insertions(+) create mode 100644 contrib/wallettools/walletchangepass.py create mode 100644 contrib/wallettools/walletunlock.py diff --git a/contrib/wallettools/walletchangepass.py b/contrib/wallettools/walletchangepass.py new file mode 100644 index 000000000..30f3f5b26 --- /dev/null +++ b/contrib/wallettools/walletchangepass.py @@ -0,0 +1,5 @@ +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) \ No newline at end of file diff --git a/contrib/wallettools/walletunlock.py b/contrib/wallettools/walletunlock.py new file mode 100644 index 000000000..f847c6fe6 --- /dev/null +++ b/contrib/wallettools/walletunlock.py @@ -0,0 +1,4 @@ +from jsonrpc import ServiceProxy +access = ServiceProxy("http://127.0.0.1:8332") +pwd = raw_input("Enter wallet passphrase: ") +access.walletpassphrase(pwd, 60) \ No newline at end of file