1
0

custom json encoder for transactions

This commit is contained in:
ThomasV
2013-09-14 21:53:56 +02:00
parent 72d7d0b07a
commit f957837e21
3 changed files with 13 additions and 10 deletions

View File

@@ -115,12 +115,12 @@ class Commands:
i['index'] = i['vout']
outputs = map(lambda x: (x[0],int(1e8*x[1])), outputs.items())
tx = Transaction.from_io(inputs, outputs)
return tx.as_dict()
return tx
def signrawtransaction(self, raw_tx, input_info, private_keys):
tx = Transaction(raw_tx)
self.wallet.signrawtransaction(tx, input_info, private_keys, self.password)
return tx.as_dict()
return tx
def decoderawtransaction(self, raw):
tx = Transaction(raw)
@@ -251,7 +251,7 @@ class Commands:
def mksendmanytx(self, outputs, fee = None, change_addr = None, domain = None):
tx = self._mktx(outputs, fee, change_addr, domain)
return tx.as_dict()
return tx
def payto(self, to_address, amount, fee = None, change_addr = None, domain = None):