I'm trying to get a subscription to logs from a "target" address, but I wasn't able to make filters works. Subscribe method works without filter but I wasn't able to print a result without it, I get the Subscription ID so I'm connected but 0 logs after that. The transaction used to test is a simple eth transfer on goerli.
import Web3 from 'web3';
let web3 = new Web3(new Web3.providers.WebsocketProvider("wss://node-name.ethereum-goerli.discover.quiknode.pro/myKey/"));
web3.eth.subscribe('logs', {
address: '0x0000000000000000000000000000000000000000'
}, function (error, result) {
if (!error)
console.log(result);
})
.on("connected", function (subscriptionId) {
console.log("SubsID", subscriptionId);
})
.on("data", function (log) {
console.log(log);
})
.on("changed", function (log) {
});