Eth_subscribe not returning new transactions

Hi

I’m trying to stay listen for transactions of given address, but I’m receiving nothing.

wss://mainnet.infura.io/ws/v3/XXXXXX (hiden my real ID)

{“jsonrpc”:“2.0”, “id”: 1123123, “method”: “eth_subscribe”, “params”: [“logs”, {“address”: “0x0681d8Db095565FE8A346fA0277bFfdE9C0eDBBF”}]}

Result: {“jsonrpc”:“2.0”,“id”:1123123,“result”:“0xfe0f94f9e94c6a9cd6a9fcf3a3033aa0”}

But only this, nothing happens. This is the Binance wallet. I was expecting to receive address transactions.

Anybody can help me?

We dug in a bit on this and it appears you are setting the subscription correctly but that address receives very few events, the BAT address (0x0D8775F648430679A709E98d2b0Cb6250d2887EF) however does appear to be getting more transactions.

Update: I discovered that: when subscribed address receives TOKENS it returns logs, but when receive Ether, return nothing.

Hi Mike!

Tnks to replied. The address (0x0681d8Db095565FE8A346fA0277bFfdE9C0eDBBF) is from binance, so it has a lot of transaction for seconds. I tried with the address that your suggest (0x0D8775F648430679A709E98d2b0Cb6250d2887EF) and it is receiving.

With a new address it is receiving nothing too

{“jsonrpc”:“2.0”, “id”: 1, “method”: “eth_subscribe”, “params”: [“logs”, {“address”: “0x721dBF115E293Ac0b0355B7a437c974bbee6FCEf”}]}

{“jsonrpc”:“2.0”,“id”:1,“result”:“0x68f9e4b46066123f5be095fbc9310f11”}

Why some address received logs and others no?

tnks

So what can I do to subscribe works?

Event logs are generated by smart contract function calls. Token transfers are called “Internal Transactions” because they are generated internally by the Ethereum Virtual Machine as a side-effect of a smart contract executing a “write” to the blockchain.

Transfers of Ether are considered “External Transactions” because they are initiated externally from the network (i.e. a user signing a transaction and sending it to the network). These events do not create event logs, they create transactions and transaction receipts.