Checking amount and destination address in transfers from a transaction

I’m using the SDK method getTokenTransfers and getTransactions with the parameters { "address": "0x1111111254fb6c44bac0bed2854e76f90643097d", "chain": "bsc", "from_block": "16054186", "to_block": "16054186" } to obtain the internal transfers from the transaction hash 0x232a9b746f7afb10c111151b78eca9f2cdd34f762c9eec28b44aed727f3a9813 on BSC network but I’m only getting some of the transfers, the most important one, the last, is not being returned. I want to check the amount delivered and destination address.

Would you know what is going on? Am I doing something wrong?

you could try to get this event:

Swapped (address sender, address srcToken, address dstToken, address dstReceiver, uint256 spentAmount, uint256 returnAmount)

that address is a contract address and not a wallet address

This seems to be a specific solution for the problem. I’m sorry for not clearly specify but we also need this information with Ethereum and Avalanche networks. This solution only covers BSC and Polygon. We are using right now but we are trying different solutions because we want the information faster.

you can sync all those events for that specific address or for another address:

I have the same problem as Cassiano, I need to use the getTransactions method to do support for any contracts from 1inch provider, I need to get the last transfer from internal transfers (from a transaction running in a smart contract) and validate if they have the correct value and the correct receiver.
Do you help me to use the method Moralis.Web3API.account.getTransactions correctly?

getTransactions may give you only the transactions made by that address, not also other transactions/calls made internally by a smart contract call

In this case, how can I get this transaction I need using Moralis?

you can get it with this endpoint:


  "result": [
      "transaction_hash": "0x232a9b746f7afb10c111151b78eca9f2cdd34f762c9eec28b44aed727f3a9813",
      "address": "0x1111111254fb6c44bac0bed2854e76f90643097d",
      "block_timestamp": "2022-03-14T14:27:12.000Z",
      "block_number": "16054186",
      "block_hash": "0x4d74a49f8ec58bd17bc5952841ce10e8591840219bed89ec0f542d711dd831d4",
      "data": "0x000000000000000000000000d86137192dc8a2d0d52a63279dc3425072d800070000000000000000000000008ac76a51cc950d9822d68b83fe1ad97b32cd580d000000000000000000000000eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee0000000000000000000000008797267d8cd62ea7e52d3c6e66160ff5db56b524000000000000000000000000000000000000000000000000001c3236405008200000000000000000000000000000000000000000000000000000139945cd094d",
      "topic0": "0xd6d4f5681c246c9f42c203e287975af1601f8df8035a9251f79aab5c8f09e2f8",
      "topic1": null,
      "topic2": null,

When I use Ethereum, the log does not help me, see, I need to get the information of which wallet the last transaction went to.

1 Like

in this particular case, what is that wallet address that you want to find?

1 Like

The final wallet address, the “receiver” of the swap transaction