Linked Questions

3
votes
1answer
2k views

Listening to Events from another smart contract [duplicate]

I want to listen to an event from inside another (deployed) smart contract. I am a complete noob to Ethereum and Solidity. So please excuse me for stupid questions, I might have misunderstood ...
0
votes
1answer
893 views

How to watch events on smart contract? [duplicate]

All the existing questions explains to catch the event on client end or server. How to catch the event on smart contract itself? Here's what I'm looking for: Contract A emits the event Contract B ...
1
vote
1answer
81 views

How read events from solidity [duplicate]

I made a solidity contract but I want to get the event in another contract, is it possible to watch the event in that way?
28
votes
5answers
18k views

How to access the event log by knowing the contract address (web3)?

How can I access a log stored in one of the tx of the contract via web3? Code example: event newtest(string indexed name, uint indexed idlevel,string indexed multib, string objmulti, uint objnm); ...
24
votes
2answers
2k views

Is it a good practice to log an event every time I throw in Solidity?

In Solidity (0.3.2) I am aware that there is no way to throw specific exceptions. (Everything is an invalid JUMP error.) It seems beneficial to have a way to log specific errors. Does it make sense to ...
19
votes
1answer
2k views

Are events permanently stored and reliably available to contracts in the future?

I've seen this forum post about using Ethereum as an event store: Events in Solidity, using blockchain as eventstore. However, it doesn't seem conclusive. For instance it says: I confirmed with ...
7
votes
1answer
1k views

What's cheaper — contract storage | log data | transaction input?

I want to collect user data and store it on the blockchain. Let's say I need to store usernames. Is the cost of storing 1 byte on the blockchain different for contract storage/log data/transaction ...
6
votes
1answer
294 views

What are the benefits of using events over dedicated indexed variable?

Good day. I'm trying to grasp the concept of events in the EVM and I just can't understand what is the incentive of using events. Why not just use a dedicated public index that will hold information? ...
1
vote
3answers
306 views

Is it possible for smart contract to link received tokens to the senders

I know when my smart contract has a payable fallback function, I can record who have sent ether to the contract and how much ether each of them have sent by storing the msg.sender and msg.value data ...
2
votes
1answer
221 views

Can a contract that receives a token know the origin of the tokens?

Can a contract that receives a token know the origin of the tokens? (Assuming the token follows the token standard.)
0
votes
0answers
36 views

Can I subscribe to events emitted by another contract?

I am trying to subscribe to an event emitted by an existing library's smart contract. I've found examples of how to subscribe to events emitted by my contract using web sockets and my contract ABI as ...