Skip to main content

Event

Namespace: IotaSdk

An event emitted during the successful execution of a transaction.

This mirrors the core chain [iota_sdk::types::Event] one-to-one: every field is required and the type round-trips through BCS/JSON. For events returned by the GraphQL events query — which may originate from system transactions and therefore lack a sender or emitting module — see GraphQlEvent.

BCS

The BCS serialized form for this type is defined by the following ABNF:

event = object-id identifier address struct-tag bytes
public record class Event : System.IDisposable, System.IEquatable`1[[IotaSdk.Event, IotaSdk, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]

Inheritance ObjectEvent
Implements IDisposable, IEquatable<Event>
Attributes NullableContextAttribute, NullableAttribute

Properties

PackageId

Package id of the top-level function invoked by a MoveCall command which triggered this event to be emitted.

public ObjectId PackageId { get; init; }

Property Value

ObjectId

Module

Module name of the top-level function invoked by a MoveCall command which triggered this event to be emitted.

public string Module { get; init; }

Property Value

String

Sender

Address of the account that sent the transaction where this event was emitted.

public Address Sender { get; init; }

Property Value

Address

StructTag

The type of the event emitted

public string StructTag { get; init; }

Property Value

String

Contents

BCS serialized bytes of the event

public Byte[] Contents { get; init; }

Property Value

Byte[]

Constructors

Event(ObjectId, String, Address, String, Byte[])

An event emitted during the successful execution of a transaction.

This mirrors the core chain [iota_sdk::types::Event] one-to-one: every field is required and the type round-trips through BCS/JSON. For events returned by the GraphQL events query — which may originate from system transactions and therefore lack a sender or emitting module — see GraphQlEvent.

BCS

The BCS serialized form for this type is defined by the following ABNF:

event = object-id identifier address struct-tag bytes
public Event(ObjectId PackageId, string Module, Address Sender, string StructTag, Byte[] Contents)

Parameters

PackageId ObjectId
Package id of the top-level function invoked by a MoveCall command which triggered this event to be emitted.

Module String
Module name of the top-level function invoked by a MoveCall command which triggered this event to be emitted.

Sender Address
Address of the account that sent the transaction where this event was emitted.

StructTag String
The type of the event emitted

Contents Byte[]
BCS serialized bytes of the event

Methods

Dispose()

public void Dispose()