Skip to content

Commit 65e8f15

Browse files
ZZiigguurraattZZiigguurraatt
ZZiigguurraatt
authored and
ZZiigguurraatt
committed
add loadwallet rpc command
1 parent e5bedda commit 65e8f15

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

bitcoin/rpc.py

+10
Original file line numberDiff line numberDiff line change
@@ -799,6 +799,16 @@ def createwallet(self, name):
799799
r = self._call('createwallet', name)
800800
return r
801801

802+
def loadwallet(self, name, load_on_startup=False):
803+
"""load a wallet.
804+
805+
name - The wallet name.
806+
load_on_startup - whether to remember to load it automatically next time bitcoind starts.
807+
808+
"""
809+
r = self._call('loadwallet', name, load_on_startup)
810+
return r
811+
802812
def _addnode(self, node, arg):
803813
r = self._call('addnode', node, arg)
804814
return r

0 commit comments

Comments
 (0)