Interpreting Token Transfer Events

Using the rpc api from alfajores blockscout, I managed to fetch a list of token transfer events for an address. However, I am not sure how to determine what kind of transaction was sent.

  1. When the sender submit a transaction using stable token as gas, the sender will transfer the stable token to two other addresses in addition to the original transfer. Is this always true? Is there an easier way to identify the transfers as gas fees?
  2. If gateway fee is specified, the sender will always transfer the gateway fee after all the other transfers?

For example, if A sends 10CELO to B with CUSD gas fees and CEUR gateway fee(to C).
The transfers will be:
A → B 10CELO
A → UNKNOWN 0.0005CUSD
A → UNKNOWN 0.001CUSD
A → C 0.1CEUR

1 Like