[SOLVED] Incorrect values for NFT transfers

When querying a specific token addr and ID, I am not see correct values for sales. For example, the tx according to etherscan:
https://etherscan.io/tx/0x917eb40649a8f4438ed28e129413863bcb9d37a718d27c41009eb8bb4ed85747

Shows a value of 0.24 ETH is transferred, which is also shown on opensea, but in the moralis response it shows a value of 0.

Any suggestions?

{
  "total": 5,
  "page": 0,
  "page_size": 100,
  "cursor": null,
  "result": [
    {
      "block_number": "16183558",
      "block_timestamp": "2022-12-14T14:34:23.000Z",
      "block_hash": "0x8954cadb47c5894ec7794f2392c229d71839c0d3bbeb1d4381cfd1936743eb5e",
      "transaction_hash": "0x3904d1388461a9a3262ed71dc34f6d49f260f6638698e80b5fef1753456994f9",
      "transaction_index": 104,
      "log_index": 248,
      "value": "0",
      "contract_type": "ERC721",
      "transaction_type": "Single",
      "token_address": "0x05da517b1bf9999b7762eaefa8372341a1a47559",
      "token_id": "5675",
      "from_address": "0x812e5c94451fd8de1ad4f7fbf33fff19024d3035",
      "to_address": "0x2487e611ff876c101dd2b31758102953f4760af5",
      "amount": "1",
      "verified": 1,
      "operator": null
    },
    {
      "block_number": "16183361",
      "block_timestamp": "2022-12-14T13:54:35.000Z",
      "block_hash": "0x7992cb26a141b743aeccafc8d3a630adc837db9f553763a024e9fe868dbf40ee",
      "transaction_hash": "0x917eb40649a8f4438ed28e129413863bcb9d37a718d27c41009eb8bb4ed85747",
      "transaction_index": 65,
      "log_index": 89,
      "value": "0",
      "contract_type": "ERC721",
      "transaction_type": "Single",
      "token_address": "0x05da517b1bf9999b7762eaefa8372341a1a47559",
      "token_id": "5675",
      "from_address": "0x6031b736d50f0d4845eb756169e74f7e3756e157",
      "to_address": "0x812e5c94451fd8de1ad4f7fbf33fff19024d3035",
      "amount": "1",
      "verified": 1,
      "operator": null
    },
    {
      "block_number": "16176488",
      "block_timestamp": "2022-12-13T14:51:59.000Z",
      "block_hash": "0x4efd5659fa66b7b6c63a396029ee4b0d762ab2506251e00b6ebd7518a700799b",
      "transaction_hash": "0xef7bc6c9e169e5f19480416f4c206fee4808ce8377fc19dd58c77b78a526b407",
      "transaction_index": 88,
      "log_index": 168,
      "value": "449200000000000000",
      "contract_type": "ERC721",
      "transaction_type": "Single",
      "token_address": "0x05da517b1bf9999b7762eaefa8372341a1a47559",
      "token_id": "5675",
      "from_address": "0xb6a2208ec57110bdfb789d8c21cd86491e474a12",
      "to_address": "0x6031b736d50f0d4845eb756169e74f7e3756e157",
      "amount": "1",
      "verified": 1,
      "operator": null
    },
    {
      "block_number": "15883779",
      "block_timestamp": "2022-11-02T17:18:47.000Z",
      "block_hash": "0x64b3171931db49dc695bf30d4da6eae57365e07397e9b60eb5c8992b47a11638",
      "transaction_hash": "0xa00ff203e333099e9763c299982d60e92e1cfe713114ece37b6b55de8721b6ca",
      "transaction_index": 149,
      "log_index": 268,
      "value": "635000000000000000",
      "contract_type": "ERC721",
      "transaction_type": "Single",
      "token_address": "0x05da517b1bf9999b7762eaefa8372341a1a47559",
      "token_id": "5675",
      "from_address": "0x54c735027499808a178def384c13f90f13914c39",
      "to_address": "0xb6a2208ec57110bdfb789d8c21cd86491e474a12",
      "amount": "1",
      "verified": 1,
      "operator": null
    },
    {
      "block_number": "15883695",
      "block_timestamp": "2022-11-02T17:01:47.000Z",
      "block_hash": "0x511c0ea117f363cf0b4ce95d42fc599d172f3dc35a962304474477bfcdfee438",
      "transaction_hash": "0x274a70fb13abf73212f0e8f3d9bfdeb0aaa342645e517b8a59d4b92bb2bd620b",
      "transaction_index": 43,
      "log_index": 69,
      "value": "400000000000000000",
      "contract_type": "ERC721",
      "transaction_type": "Single",
      "token_address": "0x05da517b1bf9999b7762eaefa8372341a1a47559",
      "token_id": "5675",
      "from_address": "0x0000000000000000000000000000000000000000",
      "to_address": "0x54c735027499808a178def384c13f90f13914c39",
      "amount": "1",
      "verified": 1,
      "operator": null
    }
  ],
  "block_exists": true
}```

Hi @drfalken , As per the etherscan this transactions also shows the value as 0.

Are you referring to a different value?

Yup, 0.24 is transferred as part of the transaction:

This API endpoint only shows the value of transfers in native currencies like ETH, BNB etc.

Since you are looking for ERC20 transfers value you can use gettransaction to read that data from the transaction logs.

1 Like