TransactionHashInvokeV0
Calculates the transaction hash for an Invoke V0 transaction using the deprecated Pedersen-based hash calculation.
Function Signature
func TransactionHashInvokeV0(
txn *rpc.InvokeTxnV0,
chainID *felt.Felt,
) (*felt.Felt, error)Parameters
txn- The Invoke V0 transaction containing:Version- Transaction version stringContractAddress- Address of the contract being invokedEntryPointSelector- Selector of the function to callCalldata- Array of felt values as function parametersMaxFee- Maximum fee willing to pay
chainID- The Starknet chain ID
Returns
*felt.Felt- The calculated transaction hasherror- Error if required parameters are missing
Description
This function calculates the transaction hash for deprecated Invoke V0 transactions. It uses the Pedersen hash algorithm and is maintained for compatibility with historical transactions. Internally calls CalculateDeprecatedTransactionHashCommon.

