Class EvmHookSpec

java.lang.Object
com.hedera.hashgraph.sdk.EvmHookSpec
Direct Known Subclasses:
EvmHook

public abstract class EvmHookSpec extends Object
Shared specifications for an EVM hook.

This class defines the source of EVM bytecode for a hook implementation. Currently, hooks can only be implemented by referencing an existing contract that implements the extension point API.

  • Constructor Details

    • EvmHookSpec

      protected EvmHookSpec(ContractId contractId)
      Create a new EvmHookSpec that references a contract.
      Parameters:
      contractId - the ID of the contract that implements the hook
  • Method Details

    • getContractId

      public ContractId getContractId()
      Get the contract ID that implements this hook.
      Returns:
      the contract ID
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object