I am trying to decode some transactions logs and have hit a problem with one of the entries. In the event log for 0x1c50c336329a7ee41f722ce5d848ebd066b72bf44a1eaafcaa92e8c0282049d2 the first three events are a transfer, a deposit, and a transfer. The fourth one (# 488) refers to the UniswapV3Pool contract 0xf4ad61db72f114be877e87d62dc5e7bd52df4d9b, for which I can't retrieve the ABI information. When I try it via the Etherscan API, I get back:
{
status: "0",
message: "NOTOK",
result: "Contract source code not verified"
}
Since the Etherscan.io summary provides sane data in respect of this entry, I assume that Etherscan had some way of getting the ABI information?
I am obviously missing something!
Any help is appreciated.
Apologies for being a bit slow with this but I can't seem to get the lookup to work.
My understanding is that I should be able to get the signature by providing the topic as follows:
https://www.4byte.directory/api/v1/signatures/?hex_signature=0xc42079f9
Likewise, I should be able to go the other way and generate the topic as follows:
https://www.4byte.directory/api/v1/signatures/?text_signature=Swap(address,address,int256,int256,uint160,uint128,int24)
However, neither works. Can you advise the URL you used to lookup the hex signature?
– user3115148 Dec 11 '21 at 12:32curlcommand that can be used to retrieve the event signature. Events signatures are 32 bytes in length. – Ismael Dec 11 '21 at 15:55Looking at the verified source on Etherscan it is declared as? – sirjay Feb 24 '24 at 17:10