Package org.web3j.crypto
Class TransactionUtils
- java.lang.Object
-
- org.web3j.crypto.TransactionUtils
-
public class TransactionUtils extends java.lang.ObjectTransaction utility functions.
-
-
Constructor Summary
Constructors Constructor Description TransactionUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static byte[]generateTransactionHash(RawTransaction rawTransaction, byte chainId, Credentials credentials)Utility method to provide the transaction hash for a given transaction.static byte[]generateTransactionHash(RawTransaction rawTransaction, Credentials credentials)Utility method to provide the transaction hash for a given transaction.static java.lang.StringgenerateTransactionHashHexEncoded(RawTransaction rawTransaction, byte chainId, Credentials credentials)Utility method to provide the transaction hash for a given transaction.static java.lang.StringgenerateTransactionHashHexEncoded(RawTransaction rawTransaction, Credentials credentials)Utility method to provide the transaction hash for a given transaction.
-
-
-
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 sendcredentials- 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 sendchainId- of the intended chaincredentials- 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 sendcredentials- 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 sendchainId- of the intended chaincredentials- of the sender- Returns:
- transaction hash as a hex encoded string
-
-