Class EthereumTransactionDataEip7702

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

public class EthereumTransactionDataEip7702 extends EthereumTransactionData
The ethereum transaction data, in the format defined in EIP-7702
  • Field Details

    • chainId

      public byte[] chainId
      ID of the chain.
    • nonce

      public byte[] nonce
      Transaction's nonce.
    • maxPriorityGas

      public byte[] maxPriorityGas
      An 'optional' additional fee in Ethereum that is paid directly to miners in order to incentivize them to include your transaction in a block. Not used in Hedera.
    • maxGas

      public byte[] maxGas
      The maximum amount, in tinybars, that the payer of the hedera transaction is willing to pay to complete the transaction.
    • 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.
    • accessList

      public List<byte[]> accessList
      Specifies an array of addresses and storage keys that the transaction plans to access.
    • authorizationList

      The list of delegation authorizations.
    • recoveryId

      public byte[] 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

  • Method Details

    • fromBytes

      public static EthereumTransactionDataEip7702 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
    • sign

      public byte[] sign(PrivateKey privateKey)
      Description copied from class: EthereumTransactionData
      Sign this transaction body with the given ECDSA private key, populating the signature fields (r, s and the recovery id / v), and return the resulting signed RLP encoding.
      Specified by:
      sign in class EthereumTransactionData
      Parameters:
      privateKey - the ECDSA secp256k1 key to sign with
      Returns:
      the signed RLP-encoded transaction
    • toUnsignedRlp

      byte[] toUnsignedRlp()
      RLP-encode the unsigned payload (9 fields through the access list).