3
var filter = web3.eth.filter({fromBlock: 350000, toBlock: 'latest',address:"0x075da4ebae466b80d451b0627296d5d38b3e99c1"});

var myResults1 = filter.watch(function (error, log) {

   console.log(error); 
   console.log(log); 
 });

filter.get(function(error, result){ console.log(error, result); });

The above code always shows empty result. What is the problem?

If I change like this it returns nothing:

var filter = web3.eth.filter({fromBlock: 350000, toBlock: 'latest'});
filter.get(function(error, result){ console.log(error, result); });

I need to get the transactions details by the account if there another option please give that idea.

2

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.