Skip to content

TipAndResourcesHash

Calculates the tip and resource bounds hash component for V3 transactions.

Function Signature

func TipAndResourcesHash(
    tip uint64,
    resourceBounds *rpc.ResourceBoundsMapping,
) (*felt.Felt, error)

Description

This internal helper function computes the hash of tip and resource bounds for V3 transaction hash calculations. It is automatically called by:

V3 transactions use resource bounds (L1 gas, L2 gas, L1 data gas) instead of the simple max_fee used in earlier versions.

Related Functions