For example if I look at an address like this: https://bscscan.com/tx/0xfbe65ad3eed6b28d59bf6043debf1166d3420d214020ef54f12d2e0583a66f13

I can see the transactions, but is it possible to see what smart contract was responsible to create these transactions?

I assume no, or at best you can only see the byte code but not the original solidity source code?

  • By the way, what's that tx? It is definitely not a regular arbitrage. It looks like some kind of exploit using flash loans.
    – Undead8
    Commented Jun 3, 2021 at 17:53
  • Yep, just like I thought: coinmarketcap.com/headlines/news/…
    – Undead8
    Commented Jun 3, 2021 at 17:59
  • oh yes one article was saying it's a complex arb that's why i said arb.
    – Joan Venge
    Commented Jun 4, 2021 at 1:07

1 Answer 1


It depends.

In the transaction that you linked to in your question, the person call a function swap() directly on the pair contract. The code of the pair contract is public (verified). So, in that case, yes you can see exactly what the public contract did when called.

However, calling the swap() function on a pair directly is a very bad way of doing arbitrages and it is actually the first time that I see that. Normally, the arbitrageur will call a function on a custom contract that is not public (verified). In that case, you cannot know what the custom contract is doing exactly and can only see the final result.

EDIT: After looking carefully at the transaction above, it is in fact indirectly using a custom contract that is not verified, so it is very hard to know what was done exactly by that custom contract.

  • thx a lot. how did you know he called swap directly? if you don't do this, how can you do a swap using pancake or uniswap using code? like swap my BNB with ETH for example? do they have an API? i had the impression the API is the public contract.
    – Joan Venge
    Commented Jun 4, 2021 at 1:09
  • The To address is a pancake swap pair, so it is a function of that contract that was called directly. Also, the Input Data line on bscscan shows that the swap function was called.
    – Undead8
    Commented Jun 4, 2021 at 1:53
  • thx a lot also you linked the custom contract but bscscan also allows decompiling this byte code, though not as readable, isn't this the same smart contract that he used? just not the original source code but the decompiled one?
    – Joan Venge
    Commented Jun 4, 2021 at 2:04
  • Yes it's the same, but good luck trying to understand decompiled contracts without the source code!
    – Undead8
    Commented Jun 4, 2021 at 2:42
  • thx man :) .....
    – Joan Venge
    Commented Jun 4, 2021 at 3:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.