Problems getting transaction logs for a wallet address

I’m trying to get transaction logs for a particular wallet address on the sepolia netwok, but the response I get is empty. This is the response {“jsonrpc”:“2.0”,“id”:1,“result”:}

I’m a bit of a newbie, so I’m probably missing something obvious. Any help greatly appreciated.

This is the curl that I’m using
curl --request POST
–header ‘accept: application/json’
–header ‘content-type: application/json’
–data ’
“method”: “eth_getLogs”,
“params”: [
“fromBlock”: “earliest”,
“address”: “0xBae5dBF845BC41c7DEa8534a2dAC80927134FD50”
“id”: 1,
“jsonrpc”: “2.0”

Hey Steve,

That’s because you’re using an account address, only the smart contracts are generating events / logs (provided that their code was written in such a way), see for instance Contract Address 0x02d78f2a6117f1aa0153f409b8ea1cd7152dbfe8 | Etherscan


Thank you very much indeed. That was very helpful for me. I was able to get a log and I can parse out the stuff I need.
If I wanted to get a trace of all transactions for a given wallet address how should I tackle that?

It depends if you want to track new incoming transactions or look at historical data:

Thanks a lot, I will try that.

The Moralis link you gave me does the trick :slight_smile: thanks.

1 Like