Skip to content

Commit a71a4cf

Browse files
author
Vedran
committed
Bug fix for the sendMany method
1 parent 48f8780 commit a71a4cf

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

blockchain/wallet.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ def send(self, to, amount, from_address = None, fee = None, note = None):
4646
def send_many(self, recipients, from_address = None, fee = None, note = None):
4747
"""Send bitcoin from your wallet to multiple addresses.
4848
49-
:param str to: recipient bitcoin address
5049
:param dictionary recipients: dictionary with the structure of 'address':amount
5150
:param str from_address: specific address to send from (optional)
5251
:param int fee: transaction fee in satoshi. Must be greater than the default
@@ -64,7 +63,7 @@ def send_many(self, recipients, from_address = None, fee = None, note = None):
6463
params['amount'] = amount
6564
method = 'payment'
6665
else:
67-
params[''] = json.dumps(recipients)
66+
params['recipients'] = json.dumps(recipients)
6867
method = 'sendmany'
6968

7069
if from_address is not None:
@@ -73,8 +72,6 @@ def send_many(self, recipients, from_address = None, fee = None, note = None):
7372
params['fee'] = fee
7473
if note is not None:
7574
params['note'] = note
76-
if self.second_password is not None:
77-
params['second_password'] = self.second_password
7875

7976
response = util.call_api("merchant/{0}/{1}".format(self.identifier, method), params)
8077
json_response = json.loads(response)

0 commit comments

Comments
 (0)