Class ContractEvent
- Namespace
- Concordium.Sdk.Types
- Assembly
- Concordium.Sdk.dll
An event generated by a smart contract.
public sealed record ContractEvent : IEquatable<ContractEvent>
- Inheritance
-
ContractEvent
- Implements
- Inherited Members
Constructors
ContractEvent(byte[])
An event generated by a smart contract.
public ContractEvent(byte[] Bytes)
Parameters
Bytes
byte[]
Properties
Bytes
public byte[] Bytes { get; init; }
Property Value
- byte[]
Methods
GetDeserializeEvent(VersionedModuleSchema, ContractIdentifier)
Deserialize event from schema
.
public Utf8Json GetDeserializeEvent(VersionedModuleSchema schema, ContractIdentifier contractName)
Parameters
schema
VersionedModuleSchemaModule schema in hexadecimal.
contractName
ContractIdentifierContract name.
Returns
Exceptions
- SchemaJsonException
Thrown when event wasn't able to be deserialized from schema.
ToHexString()
Return hex representation.
public string ToHexString()