Show / Hide Table of Contents

Class HookCall

Represents a hook call specification, including the hook's numeric identifier, call data, gas limit, and invocation mode.

Inheritance
object
HookCall
Implements
IEquatable<HookCall>
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Hiero
Assembly: Hiero.dll
Syntax
public sealed record HookCall : IEquatable<HookCall>

Constructors

| Edit this page View Source

HookCall(long, ReadOnlyMemory<byte>, ulong, HookCallMode)

Public Constructor, a 
HookCall

is immutable after creation.

Declaration
public HookCall(long hookId, ReadOnlyMemory<byte> data, ulong gasLimit, HookCallMode callMode = HookCallMode.PreOnly)
Parameters
Type Name Description
long hookId

The numeric id of the hook to call.

ReadOnlyMemory<byte> data

Call data to pass to the hook.

ulong gasLimit

The gas limit to use for the hook execution.

HookCallMode callMode

Specifies when the hook is invoked relative to the transaction. Defaults to PreOnly.

Properties

| Edit this page View Source

CallMode

Specifies when the hook is invoked relative to the transaction.

Declaration
public HookCallMode CallMode { get; }
Property Value
Type Description
HookCallMode
| Edit this page View Source

Data

Call data to pass to the hook via the HookContext data field.

Declaration
public ReadOnlyMemory<byte> Data { get; }
Property Value
Type Description
ReadOnlyMemory<byte>
| Edit this page View Source

GasLimit

The gas limit to use for the hook execution.

Declaration
public ulong GasLimit { get; }
Property Value
Type Description
ulong
| Edit this page View Source

HookId

The numeric id of the hook to call.

Declaration
public long HookId { get; }
Property Value
Type Description
long

Implements

IEquatable<T>
  • Edit this page
  • View Source
In this article
Back to top .NET Client Library for Hiero Network and Hedera Hashgraph