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
calculateInvokeTxV1Hash(Felt contractAddress, List<Felt> calldata, StarknetChainId chainId, TransactionVersion version, Felt nonce, Felt maxFee)
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
calculateDeployAccountV1TxHash(Felt classHash, List<Felt> calldata, Felt salt, StarknetChainId chainId, TransactionVersion version, Felt maxFee, Felt nonce)
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
calculateDeclareV2TxHash(Felt classHash, StarknetChainId chainId, Felt senderAddress, Felt maxFee, TransactionVersion version, Felt nonce, Felt compiledClassHash)
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
-
calculateInvokeTxV1Hash
final static Felt calculateInvokeTxV1Hash(Felt contractAddress, List<Felt> calldata, StarknetChainId chainId, TransactionVersion version, Felt nonce, Felt maxFee)
-
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)
-
calculateDeployAccountV1TxHash
final static Felt calculateDeployAccountV1TxHash(Felt classHash, List<Felt> calldata, Felt salt, StarknetChainId chainId, TransactionVersion version, Felt maxFee, Felt nonce)
-
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)
-
calculateDeclareV2TxHash
final static Felt calculateDeclareV2TxHash(Felt classHash, StarknetChainId chainId, Felt senderAddress, Felt maxFee, TransactionVersion version, Felt nonce, Felt compiledClassHash)
-
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)
-
-
-
-