bitcoin rpc api createrawtransaction with python returns -3: Expected type array, got object experimenting with JSON RPC API using bitcoinrpc.authproxy for python. so far it works in all instances accept when i try to create a raw transaction. somewhere along the way im passing parameters in wrong format. i created helper methods to create my inputs/outputs like this: def getTransactionJsonInput(self, sourcetransaction) -> str: return {"txid": sourcetransaction['txid'] ,"vout":sourcetransaction['vout']} def getTransactionJsonOutput(self, new_address, amount, returnaddress, returnamount) -> str: return { new_address: amount, returnaddress: returnamount } and when i print my call to createrawtransaction it appears to be correct print('TRANSACTION inputs', [input], type([input])) print('TRANSACTION outputs', output, type(output)) return svc.createrawtransaction(input, output) TRAN...
Comments
Post a Comment