Function: calculateTransactionHashCommon()
calculateTransactionHashCommon(
txHashPrefix,version,contractAddress,entryPointSelector,calldata,maxFee,chainId,additionalData?):string
Defined in: src/utils/hash/transactionHash/v2.ts:29
Calculate transaction pedersen hash for common properties
Following implementation is based on this python implementation #
Parameters
txHashPrefix
"0x6465636c617265" | "0x6465706c6f79" | "0x6465706c6f795f6163636f756e74" | "0x696e766f6b65" | "0x6c315f68616e646c6572"
version
contractAddress
entryPointSelector
calldata
maxFee
chainId
"0x534e5f4d41494e" | "0x534e5f5345504f4c4941"
additionalData?
BigNumberish[] = []
Returns
string
format: hex-string