Class EvmAddress

java.lang.Object
com.hedera.hashgraph.sdk.Key
com.hedera.hashgraph.sdk.EvmAddress

public final class EvmAddress extends Key
The ID for a cryptocurrency account on Hedera.
  • Constructor Details

    • EvmAddress

      public EvmAddress(byte[] bytes)
      Constructor
      Parameters:
      bytes - the byte array representation of the address
  • Method Details

    • fromString

      public static EvmAddress fromString(String evmAddress)
      Convert a string to an ethereum address.
      Parameters:
      evmAddress - the string
      Returns:
      the ethereum address
    • fromAliasBytes

      @Nullable static EvmAddress fromAliasBytes(com.google.protobuf.ByteString aliasBytes)
    • fromBytes

      public static EvmAddress fromBytes(byte[] bytes)
      Convert a byte array to an ethereum address.
      Parameters:
      bytes - the byte array
      Returns:
      the ethereum address
    • toProtobufKey

      Key toProtobufKey()
      Description copied from class: Key
      Serialize this key as a protobuf object
      Specified by:
      toProtobufKey in class Key
    • toBytes

      public byte[] toBytes()
      Description copied from class: Key
      Create the byte array.
      Overrides:
      toBytes in class Key
      Returns:
      the byte array representation
    • toString

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

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

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