Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

transaction receipt logs are empty Ethereum

I have a smart contract call and I am trying to monitor the event, but I got an empty logs of the transaction receipt

like image 710
linerking Avatar asked Nov 18 '25 13:11

linerking


1 Answers

First: You could check is the transaction ended without error

second: define an event in contract and then wherever you want that log to appear, call it in your functions.

A transaction's receipt is only generated if the transaction ends in success. If the transaction ran out of gas or threw an exception, the receipt will not be generated..

like image 60
Diego B Avatar answered Nov 20 '25 17:11

Diego B



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!