Class EthereumTransactionDataLegacy

java.lang.Object
com.hedera.hashgraph.sdk.EthereumTransactionData
com.hedera.hashgraph.sdk.EthereumTransactionDataLegacy

public class EthereumTransactionDataLegacy extends EthereumTransactionData
The ethereum transaction data, in the legacy format
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    byte[]
    ID of the chain
    byte[]
    The amount of gas available for the transaction
    byte[]
    The price for 1 gas
    byte[]
    Transaction's nonce
    byte[]
    The R value of the signature
    int
    recovery parameter used to ease the signature verification
    byte[]
    The S value of the signature
    byte[]
    The receiver of the transaction
    byte[]
    The V value of the signature
    byte[]
    The transaction value

    Fields inherited from class com.hedera.hashgraph.sdk.EthereumTransactionData

    callData
  • Constructor Summary

    Constructors
    Constructor
    Description
    EthereumTransactionDataLegacy(byte[] nonce, byte[] gasPrice, byte[] gasLimit, byte[] to, byte[] value, byte[] callData, byte[] v, byte[] r, byte[] s)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    fromBytes(byte[] bytes)
    Convert a byte array to an ethereum transaction data.
    byte[]
    Serialize the ethereum transaction data into bytes using RLP
    Serialize the ethereum transaction data into a string

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • chainId

      public byte[] chainId
      ID of the chain
    • nonce

      public byte[] nonce
      Transaction's nonce
    • gasPrice

      public byte[] gasPrice
      The price for 1 gas
    • gasLimit

      public byte[] gasLimit
      The amount of gas available for the transaction
    • to

      public byte[] to
      The receiver of the transaction
    • value

      public byte[] value
      The transaction value
    • v

      public byte[] v
      The V value of the signature
    • recoveryId

      public int recoveryId
      recovery parameter used to ease the signature verification
    • r

      public byte[] r
      The R value of the signature
    • s

      public byte[] s
      The S value of the signature
  • Constructor Details

    • EthereumTransactionDataLegacy

      EthereumTransactionDataLegacy(byte[] nonce, byte[] gasPrice, byte[] gasLimit, byte[] to, byte[] value, byte[] callData, byte[] v, byte[] r, byte[] s)
  • Method Details

    • fromBytes

      public static EthereumTransactionDataLegacy fromBytes(byte[] bytes)
      Convert a byte array to an ethereum transaction data.
      Parameters:
      bytes - the byte array
      Returns:
      the ethereum transaction data
    • toBytes

      public byte[] toBytes()
      Description copied from class: EthereumTransactionData
      Serialize the ethereum transaction data into bytes using RLP
      Specified by:
      toBytes in class EthereumTransactionData
      Returns:
      the serialized transaction as a byte array
    • toString

      public String toString()
      Description copied from class: EthereumTransactionData
      Serialize the ethereum transaction data into a string
      Specified by:
      toString in class EthereumTransactionData
      Returns:
      the serialized transaction as a string