aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Perry <enmaku@gmail.com>2011-10-03 14:04:11 -0700
committerDavid Perry <enmaku@gmail.com>2011-10-03 14:04:11 -0700
commit8ad100a55be07efd481641319efe70ba430e8d23 (patch)
treeb29ec38f8190d9a649d44f3ea6efa2770630fd92
parent35048017783fcd69fa4f77e4ca557e4f48472ef4 (diff)
downloadbitcoin-8ad100a55be07efd481641319efe70ba430e8d23.tar.xz
Added wallet tools
Signed-off-by: David Perry <enmaku@gmail.com>
-rw-r--r--contrib/wallettools/walletchangepass.py5
-rw-r--r--contrib/wallettools/walletunlock.py4
2 files changed, 9 insertions, 0 deletions
diff --git a/contrib/wallettools/walletchangepass.py b/contrib/wallettools/walletchangepass.py
new file mode 100644
index 0000000000..30f3f5b26a
--- /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 0000000000..f847c6fe61
--- /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