Skip to content

Commit fa48ff3

Browse files
committed
Merge pull request #34 from ogasser/add_dumpprivkey_function
Add dumpprivkey() function.
2 parents f70d663 + 6056a28 commit fa48ff3

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/bitcoinrpc/connection.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -594,3 +594,14 @@ def walletpassphrasechange(self, oldpassphrase, newpassphrase, dont_raise=False)
594594
if dont_raise and isinstance(exception, WalletPassphraseIncorrect):
595595
return False
596596
raise exception
597+
598+
def dumpprivkey(self, address):
599+
"""
600+
Returns the private key belonging to <address>.
601+
602+
Arguments:
603+
604+
- *address* -- Bitcoin address whose private key should be returned.
605+
"""
606+
return self.proxy.dumpprivkey(address)
607+

0 commit comments

Comments
 (0)