Package com.swmansion.starknet.data
Object TransactionHashCalculator
-
- All Implemented Interfaces:
public class TransactionHashCalculator
Toolkit for calculating hashes of transactions.
-
-
Field Summary
Fields Modifier and Type Field Description public final static TransactionHashCalculator
INSTANCE
-
Method Summary
Modifier and Type Method Description final static Felt
calculateInvokeTxV3Hash(Felt senderAddress, List<Felt> calldata, StarknetChainId chainId, TransactionVersion version, Felt nonce, Uint64 tip, ResourceBoundsMapping resourceBounds, List<Felt> paymasterData, List<Felt> accountDeploymentData, DAMode feeDataAvailabilityMode, DAMode nonceDataAvailabilityMode)
final static Felt
calculateDeployAccountV3TxHash(Felt classHash, List<Felt> constructorCalldata, Felt salt, List<Felt> paymasterData, StarknetChainId chainId, TransactionVersion version, Felt nonce, Uint64 tip, ResourceBoundsMapping resourceBounds, DAMode feeDataAvailabilityMode, DAMode nonceDataAvailabilityMode)
final static Felt
calculateDeclareV3TxHash(Felt classHash, StarknetChainId chainId, Felt senderAddress, TransactionVersion version, Felt nonce, Felt compiledClassHash, Uint64 tip, ResourceBoundsMapping resourceBounds, List<Felt> paymasterData, List<Felt> accountDeploymentData, DAMode feeDataAvailabilityMode, DAMode nonceDataAvailabilityMode)
-
-
Method Detail
-
calculateInvokeTxV3Hash
final static Felt calculateInvokeTxV3Hash(Felt senderAddress, List<Felt> calldata, StarknetChainId chainId, TransactionVersion version, Felt nonce, Uint64 tip, ResourceBoundsMapping resourceBounds, List<Felt> paymasterData, List<Felt> accountDeploymentData, DAMode feeDataAvailabilityMode, DAMode nonceDataAvailabilityMode)
-
calculateDeployAccountV3TxHash
final static Felt calculateDeployAccountV3TxHash(Felt classHash, List<Felt> constructorCalldata, Felt salt, List<Felt> paymasterData, StarknetChainId chainId, TransactionVersion version, Felt nonce, Uint64 tip, ResourceBoundsMapping resourceBounds, DAMode feeDataAvailabilityMode, DAMode nonceDataAvailabilityMode)
-
calculateDeclareV3TxHash
final static Felt calculateDeclareV3TxHash(Felt classHash, StarknetChainId chainId, Felt senderAddress, TransactionVersion version, Felt nonce, Felt compiledClassHash, Uint64 tip, ResourceBoundsMapping resourceBounds, List<Felt> paymasterData, List<Felt> accountDeploymentData, DAMode feeDataAvailabilityMode, DAMode nonceDataAvailabilityMode)
-
-
-
-