Enum Class HookExtensionPoint

java.lang.Object
java.lang.Enum<HookExtensionPoint>
com.hedera.hashgraph.sdk.HookExtensionPoint
All Implemented Interfaces:
Serializable, Comparable<HookExtensionPoint>, Constable

public enum HookExtensionPoint extends Enum<HookExtensionPoint>
Enum representing the Hiero extension points that accept a hook.

Extension points define where hooks can be attached to customize behavior in the Hiero network.

  • Enum Constant Details

    • ACCOUNT_ALLOWANCE_HOOK

      public static final HookExtensionPoint ACCOUNT_ALLOWANCE_HOOK
      Used to customize an account's allowances during a CryptoTransfer transaction.

      This hook allows accounts to define custom logic for approving or rejecting token transfers, providing fine-grained control over allowance behavior.

  • Method Details

    • values

      public static HookExtensionPoint[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static HookExtensionPoint valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getProtoValue

      public HookExtensionPoint getProtoValue()
      Get the protobuf value for this extension point.
      Returns:
      the protobuf enum value
    • fromProtobuf

      public static HookExtensionPoint fromProtobuf(HookExtensionPoint protoValue)
      Create a HookExtensionPoint from a protobuf value.
      Parameters:
      protoValue - the protobuf enum value
      Returns:
      the corresponding HookExtensionPoint
      Throws:
      IllegalArgumentException - if the protobuf value is not recognized