< {“jsonrpc”:“2.0”,“id”:1,“error”:{“code”:-32602,“message”:“invalid log filter: not enough parameters to decode position”}}
but in the documentation (https://infura.io/docs/ethereum/wss/eth-subscribe) both address and topics are optional. I’ve tried supplying my address but I don’t see any transactions, and I have no idea what a topics is and where I would get one. zero documentation on this on the site
thanks for responding but: 1) why did you repost my original message with a subject that is less relevant to my question, and 2) what does eth_getBalance have to do with my question? why would I look at it?
hi @ekkis, logs are emitted by smart contracts, I don’t think it would work to accomplish your need. You’ll probably need to subscribe for pendingTransactions and filter out your address, see an example here:
I’m picking up pending transactions right now but it’s not a solution for the following reasons:
the transactions haven’t been completed so now I have to monitor the transaction until it’s no longer pending, and
since all I get is a transaction ID, I need to look it up via a getTransaction() call. that means I have to call that method for every transaction that happens i.e. there’s no way to filter. so I’m exceeding the 100,000 call quota
I had a look at the link you provided. sadly, for the pub/sub version of the example, the code is missing. I just see a black empty box. so I can’t see how he has implemented the solution
never mind about the article. something was wrong with the website and the images eventually came through. however, his implementation is what I currently have, which leads me to the problem of calling getTransaction() 100,000 times, leading to the quote problem I mentioned. so that’s not going to work