How to filter events by the event parameters

segovrosegovro SpainMember Posts: 30 ✭✭
edited January 2016 in Smart Contracts and Dapps
I have an event in the contract:

event Transfer(uint _payment, address indexed _from, address indexed _to);

For the HTML page I create a javascript

var transfers = communityCurrency.Transfer({_from : we3.eth.coinbase}, {fromBlock: 0, toBlock: 'latest'}, function(error, result) {, result){
document.getElementById('listSent').innerHTML = "To: " + result.args._to + result.args._payment + " HR";

It does not return my latest Transfer event, it returns the latest Transfer of whoever to whoever. How can I filter to get only the Transfers I made as _from = (my) coinbase ?
Sign In or Register to comment.