java.lang.Object
com.hedera.hashgraph.sdk.ContractLogInfo
The log information for an event returned by a smart contract function call.
One function call may return several such events.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal com.google.protobuf.ByteStringBloom filter for a particular log.final ContractIdAddress of a contract that emitted the event.final com.google.protobuf.ByteStringThe event data.final List<com.google.protobuf.ByteString> Topics of a particular event. -
Method Summary
Modifier and TypeMethodDescriptionstatic ContractLogInfofromBytes(byte[] bytes) Create the contract log info from a byte array.(package private) static ContractLogInfofromProtobuf(ContractLoginfo logInfo) Convert to a protobuf.byte[]toBytes()Create the byte array.(package private) ContractLoginfoCreate the protobuf.toString()
-
Field Details
-
contractId
Address of a contract that emitted the event. -
bloom
public final com.google.protobuf.ByteString bloomBloom filter for a particular log. -
topics
Topics of a particular event. -
data
public final com.google.protobuf.ByteString dataThe event data.
-
-
Method Details
-
fromProtobuf
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
-