Thanks a lot for this library ![]()
I’m trying to put a listener on a smart contract, to be notified in real time of a transaction.
In Ethers JS I can do it like that:
const socketProvider = new ethers.providers.WebSocketProvider(
ALCHEMY_ETHER_SEPOLIA_WEBSOCKET_URL
);
this.websocketContract = new ethers.Contract(CONTRACT_ADDRESS, contract.abi, socketProvider);
...
this.websocketContract.on("Transfer", (to, from, amount) => {
...
});
I didn’t find any listener capability in the doc or source code.
Would it be an interesting feature to add?
I personally don’t like the idea of having my listener embedded in an ephemere front end web page ![]()
If the user closes it, the notification would be lost.
Thanks a lot






















