Skip to content

Missing Synthetic Logs for CRYPTOTRANSFER initiated by another smart contract #3616

@ted-yeh-vc

Description

@ted-yeh-vc

Description

Here is a transfer of an HTS token where the log is emitted (by calling eth_getTransactionReceipt)
https://hashscan.io/mainnet/transaction/1718615133.322411003

Here is a transfer of an HTS token where the log is not emitted (calling eth_getTransactionReceipt returns an empty logs:[] field)
https://hashscan.io/mainnet/transaction/1719939759.390625006

If we were to look at the account involved in the transactions above (https://hashscan.io/mainnet/account/0.0.1142) and we filter by CRYPTOTRANSFERs involving the USDC token (https://hashscan.io/mainnet/token/0.0.456858),

we can find 14 transactions using the mirror node (GET /api/v1/transactions)

+-------------------+---------------------------+----------------------------------+-------------+--------------------+--------------------------------------------------------------+
| Consensus Time    | Timestamp                 | Transaction ID                   | Amount      | Found using relay  | Hashscan                                                     |
+-------------------+---------------------------+----------------------------------+-------------+--------------------+--------------------------------------------------------------+
| 1718615133.322411 | 2024-06-17T03:05:33-06:00 | 0.0.1142-1718615118-649398668    | 910507      | yes                | https://hashscan.io/mainnet/transaction/1718615133.322411003 |
| 1719939713.971043 | 2024-07-02T11:01:53-06:00 | 0.0.1055166-1719939703-963875922 | 2500000000  | yes                | https://hashscan.io/mainnet/transaction/1719939713.971042604 |
| 1719939759.390625 | 2024-07-02T11:02:39-06:00 | 0.0.1142-1719939746-108341164    | -2500910507 | no                 | https://hashscan.io/mainnet/transaction/1719939759.390625006 |
| 1722611485.493561 | 2024-08-02T09:11:25-06:00 | 0.0.1055166-1722611474-820259951 | 5560000000  | yes                | https://hashscan.io/mainnet/transaction/1722611485.493561003 |
| 1725040591.048449 | 2024-08-30T11:56:31-06:00 | 0.0.1142-1725040578-542090317    | -5560000000 | no                 | https://hashscan.io/mainnet/transaction/1725040591.048449006 |
| 1728572921.126551 | 2024-10-10T09:08:41-06:00 | 0.0.1142-1728572906-600505512    | 548175267   | yes                | https://hashscan.io/mainnet/transaction/1728572921.126551000 |
| 1731778794.676574 | 2024-11-16T10:39:54-07:00 | 0.0.1142-1731778780-544248843    | -492720371  | yes                | https://hashscan.io/mainnet/transaction/1731778794.676573449 |
| 1733161187.159266 | 2024-12-02T10:39:47-07:00 | 0.0.1142-1733161175-642389744    | 2496776839  | no                 | https://hashscan.io/mainnet/transaction/1733161187.159266003 |
| 1733408148.596359 | 2024-12-05T07:15:48-07:00 | 0.0.1142-1733408135-630249835    | -600000000  | no                 | https://hashscan.io/mainnet/transaction/1733408148.596359003 |
| 1734014534.596779 | 2024-12-12T07:42:14-07:00 | 0.0.1142-1734014522-621639492    | 2366428717  | no                 | https://hashscan.io/mainnet/transaction/1734014534.596779001 |
| 1735919476.561095 | 2025-01-03T08:51:16-07:00 | 0.0.1142-1735919462-730386058    | -875000000  | yes                | https://hashscan.io/mainnet/transaction/1735919476.561095000 |
| 1735919716.706294 | 2025-01-03T08:55:16-07:00 | 0.0.1142-1735919703-841779418    | -313000000  | yes                | https://hashscan.io/mainnet/transaction/1735919716.706294000 |
| 1740814994.812307 | 2025-03-01T00:43:14-07:00 | 0.0.1142-1740814985-663330866    | 1557412236  | no                 | https://hashscan.io/mainnet/transaction/1740814994.812307001 |
| 1740936081.111070 | 2025-03-02T10:21:21-07:00 | 0.0.1142-1740936073-664158289    | 1066011127  | no                 | https://hashscan.io/mainnet/transaction/1740936081.111070001 |
+-------------------+---------------------------+----------------------------------+-------------+--------------------+--------------------------------------------------------------+

2025/03/28 10:55:08     Mirror Node Transfers: 14

and 7 using the relay

+---------------------------+----------------+------------+--------------------------------------------------------------------+
| Timestamp                 | Consensus Time | Value      | Transaction ID                                                     |
+---------------------------+----------------+------------+--------------------------------------------------------------------+
| 2024-06-17T03:05:32-06:00 | 1718615132.00  | 910507     | 0xf700ce9f9ba9c2bcb049980323fe1724ea5f65837c6e4d196a3b85655fc80dcb |
| 2024-07-02T11:01:52-06:00 | 1719939712.00  | 2500000000 | 0xfd988861653f97b334e2f81a5c70a705eb0a39664ac35d767105c0caa234f0bf |
| 2024-08-02T09:11:24-06:00 | 1722611484.00  | 5560000000 | 0xd8f770b3ba619e13b213422819b4badd39e25ce85ee645922182377bbe84652c |
| 2024-10-10T09:08:40-06:00 | 1728572920.00  | 548175267  | 0x022e6e63fe57de9a66c743b46a53d022302b6318fe803a4a0473d3e5a52f6d01 |
| 2024-11-16T10:39:54-07:00 | 1731778794.00  | -492720371 | 0xdb2c71a6ec000bfcfbb2f34281fd4ad33856d26346aad466e59c46c361901404 |
| 2025-01-03T08:51:16-07:00 | 1735919476.00  | -875000000 | 0x08fd4cc5cb6ad7ee5a0df8088acb666c07c95cd11237b2108db7d80b6ce0735a |
| 2025-01-03T08:55:16-07:00 | 1735919716.00  | -313000000 | 0x759e15f759f7bfce53f7645745db51ab3f31f384635d365167542fe66351ec27 |
+---------------------------+----------------+------------+--------------------------------------------------------------------+

2025/03/28 10:55:07        EVM Event Transfers: 7

Steps to reproduce

  1. get list of transactions using the mirror node for a account <-> token pair
  2. get list of transactions using the relay by iterating over all blocks and looking for logs emitted from the token contract involving the account in question
  3. find that relay returns much few transfer logs than the mirror node.

Additional context

No response

Hedera network

mainnet

Version

v0.66.0

Operating system

None

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions