I'm using ethers.js library, I have decoded TX, where I see logs, events, etc.
But is there any way how to check that this transaction contains incoming ETH?
When sending ETH, there is .value attribute, but I didn't find a way how to detect that some contract call caused ETH send.
I can detect token send via transfer
event, or I can detect withdraw
for WETH->ETH conversion, but I would need some universal way how to get amount of incoming ETH.
Is it possible in any way?
Thanks
value
to the log at this line : github.com/ethereum/go-ethereum/blob/… add something like:log.Info("value_is","value",value.String(),"contract_addr",addr.String())
(just at the beginning of the function). You will also have to import "github.com/ethereum/go-ethereum/log" package. Thengo build
and run this custom geth node. Parse the log to extract all the dataStaticCall()
,DelegateCall()
and all the call variations