priestc / moneywagon

Universal bitcoin/altcoin blockchain client library for Python and the command line
http://multiexplorer.com
MIT License
149 stars 48 forks source link

get_single_transaction type of value field #17

Closed blockonomics closed 7 years ago

blockonomics commented 7 years ago
Got Response: https://insight.bitpay.com/api/tx/e91675777b5096e1549f5b493442b90abe9a3362944ac9d5f0b6bbe75d1a0140
{'inputs': [{'value': 566.53881077, 'address': u'15tYFmUV6wG4e1Gbi1buxBM9zSQzcWSkiK'}], 'total_out': 566.53714271, 'fee': 0.00166806, 'outputs': [{'value': u'0.90075063', 'address': u'19MGBhJbo6tk7iSxv7iXF7epCMEbdmhqm9'}, {'value': u'565.63639208', 'address': u'15tYFmUV6wG4e1Gbi1buxBM9zSQzcWSkiK'}], 'txid': u'e91675777b5096e1549f5b493442b90abe9a3362944ac9d5f0b6bbe75d1a0140', 'confirmations': 10, 'total_in': 566.53881077, 'time': datetime.datetime(2017, 3, 10, 2, 53, 26, tzinfo=tzutc())}
priestc commented 7 years ago

You seem to be using an older version of moneywagon, the newest version has these issues fixed

shivaenigma commented 7 years ago

Updated version. Yes, sorry its fixed. We may still want to update the README which has amounts in BTC and the command line invocation has changed

moneywagon single-transaction --txid 3642d3a5fda10785e1b286bae754e7138e1804a8d8bec0886ef8b219eada9c1d btc
{"inputs": [{"amount": 22415821, "txid": "c3482f02202ad4c8851f41d87e949c09e9d4cdc2786f9872995bd6b9026f4908", "address": "1EmvR3o6zW7tPq2GSv2SsPm45HHTZ1UAJR"}], "total_out": 22144601, "fee": 271220, "outputs": [{"amount": 4356937, "scriptPubKey": "76a914964d1333487e170210f3b2403efca3115cfd574688ac", "address": "1Ehih3HzoENXLcWDLjPfVMV8SfLwwKfV5Z"}, {"amount": 17787664, "scriptPubKey": "76a91470e7fcb07ba088a01b79be812e348be4e60e25bc88ac", "address": "1BHzbEHabLxhMoEMLAch6vkLiRbR9nCmF7"}], "txid": "3642d3a5fda10785e1b286bae754e7138e1804a8d8bec0886ef8b219eada9c1d", "confirmations": 23, "total_in": 22415821, "time": "2017-03-10T01:27:49+00:00", "size": 225}
shivaenigma commented 7 years ago

Feel free to close this