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:29
encodeResourceBoundsL1​
â–¸ encodeResourceBoundsL1(bounds): bigint
Encode the L1&L2 gas limits of a V3 transaction
Parameters​
| Name | Type | Description |
|---|---|---|
bounds | ResourceBounds | object including the limits for L1 & L2 gas |
Returns​
bigint
encoded data
Defined in​
src/utils/hash/transactionHash/v3.ts:38
encodeResourceBoundsL2​
â–¸ encodeResourceBoundsL2(bounds): bigint
Encode the L2 bound of a V3 transaction
Parameters​
| Name | Type | Description |
|---|---|---|
bounds | RESOURCE_BOUNDS_MAPPING | {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:54
encodeDataResourceBoundsL1​
â–¸ encodeDataResourceBoundsL1(bounds): bigint
Parameters​
| Name | Type |
|---|---|
bounds | RESOURCE_BOUNDS_MAPPING |
Returns​
bigint
Defined in​
src/utils/hash/transactionHash/v3.ts:62
hashFeeField​
â–¸ hashFeeField(tip, bounds): bigint
hash tip and resource bounds (2 bound parameters) V3 RPC 0.7
Parameters​
| Name | Type |
|---|---|
tip | BigNumberish |
bounds | RESOURCE_BOUNDS_MAPPING |
Returns​
bigint
Defined in​
src/utils/hash/transactionHash/v3.ts:73
hashFeeFieldV3B3​
â–¸ hashFeeFieldV3B3(tip, bounds): bigint
hash tip and resource bounds (3 bounds params) V3 RPC 0.8
Parameters​
| Name | Type |
|---|---|
tip | BigNumberish |
bounds | RESOURCE_BOUNDS_MAPPING |
Returns​
bigint
Defined in​
src/utils/hash/transactionHash/v3.ts:82
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 | ResourceBounds | undefined |
additionalData | BigNumberish[] | [] |
Returns​
string
Defined in​
src/utils/hash/transactionHash/v3.ts:89
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 | ResourceBounds |
tip | BigNumberish |
paymasterData | BigNumberish[] |
Returns​
string
format: hex-string
Defined in​
src/utils/hash/transactionHash/v3.ts:124
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 | ResourceBounds |
tip | BigNumberish |
paymasterData | BigNumberish[] |
Returns​
string
format: hex-string
Defined in​
src/utils/hash/transactionHash/v3.ts:157
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 | ResourceBounds |
tip | BigNumberish |
paymasterData | BigNumberish[] |
Returns​
string
format: hex-string