When there’s a WETH purchase, sometimes the API only returns the ETH amount of the transaction
One example:
https://etherscan.io/tx/0x8ae72444be8d188c97eec8e10337306b90b23b909ae9a4da8c1c8ff77ef5c55d
Moralis API returns:
[hash] => 0x8ae72444be8d188c97eec8e10337306b90b23b909ae9a4da8c1c8ff77ef5c55d
[nonce] => 204
[transaction_index] => 75
[from_address] => 0xcda5bf55b7c825470e6141f1d58a3c420f1f2380
[to_address] => 0x59728544b08ab483533076417fbbb2fd0b17ce3a
[value] => 2454000000000000000
[gas] => 331407
[gas_price] => 47550175598
[input] => 0xb4e4b296000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000cda5bf55b7c825470e6141f1d58a3c420f1f23800000000000000000000000000000000000000000000000010cf3975203120000000000000000000000000000000000000000000000000000000000000000109c000000000000000000000000000000000000000000000000000000000000213400000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000bd12c0bbc893340492266fd7450aa737ab22a45e000000000000000000000000ed5af388653567af2f388e6224dc7c4b3241c5440000000000000000000000000000000000000000000000010cf3975203120000000000000000000000000000000000000000000000000000000000000000109c000000000000000000000000000000000000000000000000000000000000000100000000000000000000000056244bb70cbd3ea9dc8007399f61dfc065190031000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc20000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000006244252300000000000000000000000000000000000000000000000000000000625eb57500000000000000000000000000000000000000000000000000000000000021340000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000001bd40d62728d063e67b93663750a125fbaaf03eb377b81b127f05c4619d12a78c53a1a1052c32639463b8c26dfbdd1af9f5474f57ff9b23e46b6eea400a4bb3c4b0000000000000000000000000000000000000000000000000000000000000000
[receipt_cumulative_gas_used] => 19123039
[receipt_gas_used] => 237545
[receipt_contract_address] =>
[receipt_root] =>
[receipt_status] => 1
[block_timestamp] => 2022-03-31T05:47:37.000Z
[block_number] => 14492141
[block_hash] => 0x5c5d075bc9bd8324c6a3bf09508304da463882cfd47a5d3ebefa3307b48475cb