Bitcoin Forum
April 26, 2024, 06:39:39 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: API - sendmany error  (Read 516 times)
icreator (OP)
Legendary
*
Offline Offline

Activity: 1554
Merit: 1008



View Profile WWW
December 24, 2013, 09:31:18 AM
 #1

=conn.getbalance() # here = 0.2
Code:
       conn.settxfee(0.0001)
        main_acc = '.main.'
        bal = conn.getbalance(main_acc, xcurr.conf) # here bal = -177
        print bal, vol
        if bal < vol:
            for (k,v) in conn.listaccounts(xcurr.conf).iteritems():
                if v == 0: continue
                conn.move(k, main_acc, float(v))
                print k,v
        bal = conn.getbalance(main_acc, xcurr.conf)
        print 'NEW bal:', bal # here bal = 0.2
        #res = conn.sendmany( main_acc, sends, xcurr.conf )
        res = conn.sendmany( main_acc,{ '....VMsWBDjDLL5': 0.00200 })
        log(res)

ERROR:
 u'Insufficient funds', u'code': -6

why?
How escape form check the account balance?

Erachain Blockchain is fully ready for use Digital Ecosystem based on blockchain technology for business and government with low transaction costs, identification and built-in functions.
+Decentralized exchange of tokens in Erachain
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!