Class TransactionUtils


  • public class TransactionUtils
    extends java.lang.Object
    Transaction utility functions.
    • Constructor Detail

      • TransactionUtils

        public TransactionUtils()
    • Method Detail

      • generateTransactionHash

        public static byte[] generateTransactionHash​(RawTransaction rawTransaction,
                                                     Credentials credentials)
        Utility method to provide the transaction hash for a given transaction.
        Parameters:
        rawTransaction - we wish to send
        credentials - of the sender
        Returns:
        encoded transaction hash
      • generateTransactionHash

        public static byte[] generateTransactionHash​(RawTransaction rawTransaction,
                                                     byte chainId,
                                                     Credentials credentials)
        Utility method to provide the transaction hash for a given transaction.
        Parameters:
        rawTransaction - we wish to send
        chainId - of the intended chain
        credentials - of the sender
        Returns:
        encoded transaction hash
      • generateTransactionHashHexEncoded

        public static java.lang.String generateTransactionHashHexEncoded​(RawTransaction rawTransaction,
                                                                         Credentials credentials)
        Utility method to provide the transaction hash for a given transaction.
        Parameters:
        rawTransaction - we wish to send
        credentials - of the sender
        Returns:
        transaction hash as a hex encoded string
      • generateTransactionHashHexEncoded

        public static java.lang.String generateTransactionHashHexEncoded​(RawTransaction rawTransaction,
                                                                         byte chainId,
                                                                         Credentials credentials)
        Utility method to provide the transaction hash for a given transaction.
        Parameters:
        rawTransaction - we wish to send
        chainId - of the intended chain
        credentials - of the sender
        Returns:
        transaction hash as a hex encoded string