I am using the "Get a list of 'Normal' Transactions By Address" method from the Etherscan.io API. The problem is that the results from the API are different than from results from the 'Download CSV export' you get on the this page.
Link to the API: https://etherscan.io/apis#accounts
For this address:
The API Get request:
The problem is that the 'value' does not match the 'Value_IN(ETH)' when downloading the data as a .csv file.
In the .csv file the results look like:
Value_IN(ETH) : 0.0500459770509325
The .csv file is correct. That is what happened with that wallet there.
However in the .json object returned from the API call I get these results:
hash : '0x1f55419fa826e9d9b5487ce745f22c0d6066cf8da8e02bb84a105f6fcf34f8e2'
value : '50045977050932511'
I don't understand why these values are different. Is it something in the encoding that I am missing?