Added wallet tools
authorDavid Perry <enmaku@gmail.com>
Mon, 3 Oct 2011 21:04:11 +0000 (14:04 -0700)
committerDavid Perry <enmaku@gmail.com>
Mon, 3 Oct 2011 21:04:11 +0000 (14:04 -0700)
Signed-off-by: David Perry <enmaku@gmail.com>

contrib/wallettools/walletchangepass.py [new file with mode: 0644]
contrib/wallettools/walletunlock.py [new file with mode: 0644]

diff --git a/contrib/wallettools/walletchangepass.py b/contrib/wallettools/walletchangepass.py
new file mode 100644 (file)
index 0000000..30f3f5b
--- /dev/null
@@ -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 (file)
index 0000000..f847c6f
--- /dev/null
@@ -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