Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions bitcoin/rpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -654,6 +654,17 @@ def validateaddress(self, address):
r['pubkey'] = unhexlify(r['pubkey'])
return r

def unlockwallet(self, password, timeout=60):
"""Stores the wallet decryption key in memory for 'timeout' seconds.

password - The wallet passphrase.

timeout - The time to keep the decryption key in seconds.
(default=60)
"""
r = self._call('walletpassphrase', password, timeout)
return r

def _addnode(self, node, arg):
r = self._call('addnode', node, arg)
return r
Expand Down