Namespace: v3hash
Functions
hashDAMode
▸ hashDAMode(nonceDAMode
, feeDAMode
): bigint
Parameters
Name | Type |
---|---|
nonceDAMode | BigNumberish |
feeDAMode | BigNumberish |
Returns
bigint
Defined in
src/utils/hash/transactionHash/v3.ts:24
encodeResourceBoundsL1
▸ encodeResourceBoundsL1(bounds
): bigint
Encode the L1&L2 gas limits of a V3 transaction
Parameters
Name | Type | Description |
---|---|---|
bounds | ResourceBoundsBN | object including the limits for L1 & L2 gas |
Returns
bigint
encoded data
Defined in
src/utils/hash/transactionHash/v3.ts:33
encodeResourceBoundsL2
▸ encodeResourceBoundsL2(bounds
): bigint
Encode the L2 bound of a V3 transaction
Parameters
Name | Type | Description |
---|---|---|
bounds | ResourceBoundsBN | {l1_gas: {max_amount: u64, max_price_per_unit: u128}, l2_gas: {max_amount: u64, max_price_per_unit: u128}} } |
Returns
bigint
encoded data
Defined in
src/utils/hash/transactionHash/v3.ts:49
encodeDataResourceBoundsL1
▸ encodeDataResourceBoundsL1(bounds
): bigint
Parameters
Name | Type |
---|---|
bounds | ResourceBoundsBN |
Returns
bigint
Defined in
src/utils/hash/transactionHash/v3.ts:57
hashFeeFieldV3B3
▸ hashFeeFieldV3B3(tip
, bounds
): bigint
hash tip and resource bounds (3 bounds params) V3 RPC 0.8
Parameters
Name | Type |
---|---|
tip | BigNumberish |
bounds | ResourceBoundsBN |
Returns
bigint
Defined in
src/utils/hash/transactionHash/v3.ts:68
calculateTransactionHashCommon
▸ calculateTransactionHashCommon(txHashPrefix
, version
, senderAddress
, chainId
, nonce
, tip
, paymasterData
, nonceDataAvailabilityMode
, feeDataAvailabilityMode
, resourceBounds
, additionalData?
): string
Parameters
Name | Type | Default value |
---|---|---|
txHashPrefix | "0x6465636c617265" | "0x6465706c6f79" | "0x6465706c6f795f6163636f756e74" | "0x696e766f6b65" | "0x6c315f68616e646c6572" | undefined |
version | BigNumberish | undefined |
senderAddress | BigNumberish | undefined |
chainId | "0x534e5f4d41494e" | "0x534e5f5345504f4c4941" | undefined |
nonce | BigNumberish | undefined |
tip | BigNumberish | undefined |
paymasterData | BigNumberish [] | undefined |
nonceDataAvailabilityMode | EDAMode | undefined |
feeDataAvailabilityMode | EDAMode | undefined |
resourceBounds | ResourceBoundsBN | undefined |
additionalData | BigNumberish [] | [] |
Returns
string
Defined in
src/utils/hash/transactionHash/v3.ts:75
calculateDeployAccountTransactionHash
▸ calculateDeployAccountTransactionHash(contractAddress
, classHash
, compiledConstructorCalldata
, salt
, version
, chainId
, nonce
, nonceDataAvailabilityMode
, feeDataAvailabilityMode
, resourceBounds
, tip
, paymasterData
): string
Calculate v3 deploy_account transaction hash
Parameters
Name | Type |
---|---|
contractAddress | BigNumberish |
classHash | BigNumberish |
compiledConstructorCalldata | Calldata |
salt | BigNumberish |
version | BigNumberish |
chainId | "0x534e5f4d41494e" | "0x534e5f5345504f4c4941" |
nonce | BigNumberish |
nonceDataAvailabilityMode | EDAMode |
feeDataAvailabilityMode | EDAMode |
resourceBounds | ResourceBoundsBN |
tip | BigNumberish |
paymasterData | BigNumberish [] |
Returns
string
format: hex-string
Defined in
src/utils/hash/transactionHash/v3.ts:108
calculateDeclareTransactionHash
▸ calculateDeclareTransactionHash(classHash
, compiledClassHash
, senderAddress
, version
, chainId
, nonce
, accountDeploymentData
, nonceDataAvailabilityMode
, feeDataAvailabilityMode
, resourceBounds
, tip
, paymasterData
): string
Calculate v3 declare transaction hash
Parameters
Name | Type |
---|---|
classHash | string |
compiledClassHash | string |
senderAddress | BigNumberish |
version | BigNumberish |
chainId | "0x534e5f4d41494e" | "0x534e5f5345504f4c4941" |
nonce | BigNumberish |
accountDeploymentData | BigNumberish [] |
nonceDataAvailabilityMode | EDAMode |
feeDataAvailabilityMode | EDAMode |
resourceBounds | ResourceBoundsBN |
tip | BigNumberish |
paymasterData | BigNumberish [] |
Returns
string
format: hex-string
Defined in
src/utils/hash/transactionHash/v3.ts:141
calculateInvokeTransactionHash
▸ calculateInvokeTransactionHash(senderAddress
, version
, compiledCalldata
, chainId
, nonce
, accountDeploymentData
, nonceDataAvailabilityMode
, feeDataAvailabilityMode
, resourceBounds
, tip
, paymasterData
): string
Calculate v3 invoke transaction hash
Parameters
Name | Type |
---|---|
senderAddress | BigNumberish |
version | BigNumberish |
compiledCalldata | Calldata |
chainId | "0x534e5f4d41494e" | "0x534e5f5345504f4c4941" |
nonce | BigNumberish |
accountDeploymentData | BigNumberish [] |
nonceDataAvailabilityMode | EDAMode |
feeDataAvailabilityMode | EDAMode |
resourceBounds | ResourceBoundsBN |
tip | BigNumberish |
paymasterData | BigNumberish [] |
Returns
string
format: hex-string