Table of Contents

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 VersionedModuleSchema

Module schema in hexadecimal.

contractName ContractIdentifier

Contract name.

Returns

Utf8Json

Bytes deserialized as json uft8 encoded.

Exceptions

SchemaJsonException

Thrown when event wasn't able to be deserialized from schema.

ToHexString()

Return hex representation.

public string ToHexString()

Returns

string