I have a trivial contract and I want to get notification of all events for the contract. But I don't see any events being called for my contract:

contract MainContract{
    event Evt(address indexed _sender,string jsn);
    function deposit(string jsn) returns (int256) {
        Evt(msg.sender, jsn);

var contract = web3.eth.contract(abi).at("0xe45866ac5d51067ce292bc656c790e94ddcf0766");
        web3.eth.filter({},function(err,res) {
            console.log("on filter",res.address);
        contract.deposit('hello there',function (res) {

You can see in console that deposit() worked successfully, but no callback calls matching my address call present in console. Why is this? Is this expected behaviour?

console screenshot

1 Answer 1


The problem was that I was using my wallet address instead of contract address here:


current web3 API doesn't inform if address here is incorrect...

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.