Class ContractLogInfo

java.lang.Object
com.hedera.hashgraph.sdk.ContractLogInfo

public final class ContractLogInfo extends Object
The log information for an event returned by a smart contract function call. One function call may return several such events.
  • Field Details

    • contractId

      public final ContractId contractId
      Address of a contract that emitted the event.
    • bloom

      public final com.google.protobuf.ByteString bloom
      Bloom filter for a particular log.
    • topics

      public final List<com.google.protobuf.ByteString> topics
      Topics of a particular event.
    • data

      public final com.google.protobuf.ByteString data
      The event data.
  • Method Details

    • fromProtobuf

      static ContractLogInfo fromProtobuf(ContractLoginfo logInfo)
      Convert to a protobuf.
      Parameters:
      logInfo - the log info object
      Returns:
      the protobuf
    • fromBytes

      public static ContractLogInfo fromBytes(byte[] bytes) throws com.google.protobuf.InvalidProtocolBufferException
      Create the contract log info from a byte array.
      Parameters:
      bytes - the byte array
      Returns:
      the contract log info object
      Throws:
      com.google.protobuf.InvalidProtocolBufferException - when there is an issue with the protobuf
    • toProtobuf

      ContractLoginfo toProtobuf()
      Create the protobuf.
      Returns:
      the protobuf representation
    • toBytes

      public byte[] toBytes()
      Create the byte array.
      Returns:
      the byte array representation
    • toString

      public String toString()
      Overrides:
      toString in class Object