Interface LogWithMetadata
public interface LogWithMetadata
A Log entry from a transaction execution.
-
Method Summary
Modifier and TypeMethodDescriptionorg.hyperledger.besu.datatypes.HashGets block hash.longGets block number.org.apache.tuweni.bytes.BytesgetData()The data, of possibly unlimited length, for this log entry.org.hyperledger.besu.datatypes.AddressThe address of the contract writing this log message.intGets log index.List<org.hyperledger.besu.datatypes.LogTopic> The list of 32 byte log topics, possibly empty.org.hyperledger.besu.datatypes.HashGets transaction hash.intGets transaction index.booleanIs removed.
-
Method Details
-
getLogger
org.hyperledger.besu.datatypes.Address getLogger()The address of the contract writing this log message.- Returns:
- The loggers address.
-
getTopics
List<org.hyperledger.besu.datatypes.LogTopic> getTopics()The list of 32 byte log topics, possibly empty.- Returns:
- The list, possibly zero length, of log topics.
-
getData
org.apache.tuweni.bytes.Bytes getData()The data, of possibly unlimited length, for this log entry.- Returns:
- The log data.
-
getLogIndex
int getLogIndex()Gets log index.- Returns:
- the log index
-
getBlockNumber
long getBlockNumber()Gets block number.- Returns:
- the block number
-
getBlockHash
org.hyperledger.besu.datatypes.Hash getBlockHash()Gets block hash.- Returns:
- the block hash
-
getTransactionHash
org.hyperledger.besu.datatypes.Hash getTransactionHash()Gets transaction hash.- Returns:
- the transaction hash
-
getTransactionIndex
int getTransactionIndex()Gets transaction index.- Returns:
- the transaction index
-
isRemoved
boolean isRemoved()Is removed.- Returns:
- the boolean
-