Then you can use this code to use sendmany:
RPC_URL = "http://rpcuser:[email protected]:8332"
bitcoind = AuthServiceProxy(RPC_URL)
try:
recipients = { '14Z1mazY4HfysZyMaKudFr63EwHqQT2njz': 50.0
, '147dRpRoYQxpf5WGnz7dipCcavtANRRfjt': 50.0
}
bitcoind.sendmany("", recipients)
except JSONRPCException as e:
print "Error: %s" % e.error['message']
You can try out the above code on an empty wallet. You should get an "account has insufficient funds" error.
If this code is to your satisfaction, I humbly request the bounty to go to this address: 1fYHRKUXnFfj7ZhjwMMNqddjcnkGtq4wA . :-)