A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.

Hot answers tagged

2

You use the transaction's hash to obtain the transaction's receipt, if you made a single call to createCourt you have a single event in the receipt. Another option is to accept an random input parameter and use that as id.


1

Yes this is possible. The smart contract needs to emit events which are written to logs. Your entities outside the blockchain can read these logs from the blockchain nodes.


1

For example, should I change my solidity smart contract and for each function add returns(string,uint,uint) That won't do it. Return values are visible to other contracts but they are not visible externally. The problem I have is that it is so impossible to filter information just for a specific player You can filter events but you have to: ...


1

I demonstrated it's inclusive. Here's the experiment I came up with to test this, running against a local geth blockchain: ethLogs, err := client.FilterLogs(context.Background(), ethereum.FilterQuery{ FromBlock: big.NewInt(10), ToBlock: big.NewInt(11), Addresses: []common.Address{address}, }) if err != nil { panic(err) } ...


1

The yellowpaper (version 7e819ec - 2019-10-20) section 6.1 Substate includes a description of: indexable ‘checkpoints’ in VM code execution that allow for contract-calls to be easily tracked byonlookers external to the Ethereum world (such as decentralised application front-ends). The yellowpaper preceded the event terminology, but an event is a way ...


Only top voted, non community-wiki answers of a minimum length are eligible