Class EthereumTransactionData

java.lang.Object
com.hedera.hashgraph.sdk.EthereumTransactionData
Direct Known Subclasses:
EthereumTransactionDataEip1559, EthereumTransactionDataLegacy

public abstract class EthereumTransactionData extends Object
This class represents the data of an Ethereum transaction.

It may be of subclass EthereumTransactionDataLegacy or of subclass EthereumTransactionDataEip1559

  • Field Details

    • callData

      public byte[] callData
      The raw call data.
  • Constructor Details

    • EthereumTransactionData

      EthereumTransactionData(byte[] callData)
  • Method Details

    • fromBytes

      static EthereumTransactionData fromBytes(byte[] bytes)
    • toBytes

      public abstract byte[] toBytes()
      Serialize the ethereum transaction data into bytes using RLP
      Returns:
      the serialized transaction as a byte array
    • toString

      public abstract String toString()
      Serialize the ethereum transaction data into a string
      Overrides:
      toString in class Object
      Returns:
      the serialized transaction as a string