You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 26, 2022. It is now read-only.
I've read it several times now, and I still have no idea how to use an event filter (Events are explained in another page entirely, linked elsewhere.) or the difference between it and a log filter or which account address under options is supposed to refer to (The contract? The account that sent the transaction to start it?) The lower example is unclear. I've only understood it after several readings. Actually, filterString's documentation is incomplete anyway, because it doesn't say what comes out of the callback.
The text was updated successfully, but these errors were encountered:
In solidity::if you have an event defined like so :
event alertMe(byte32 indexed alertText)
you can activate it in a function body for when the function is called i:e
contract spender {
function spend( unit amount) returns (bool spent){
///blah blah blah
//you are calling the event here which logged and will make it easy for filtering
alertMe(byte32 indexed alertText);
return true;
}
}
then assuming you instantiated your contract as "spender" in your client, you can filter for events like :
I've read it several times now, and I still have no idea how to use an event filter (Events are explained in another page entirely, linked elsewhere.) or the difference between it and a log filter or which account
address
under options is supposed to refer to (The contract? The account that sent the transaction to start it?) The lower example is unclear. I've only understood it after several readings. Actually, filterString's documentation is incomplete anyway, because it doesn't say what comes out of the callback.The text was updated successfully, but these errors were encountered: