Skip to content

calculate_storage_mass (Func)

Calculate the storage mass for a transaction.

Storage mass penalizes transactions that increase the UTXO set size or create many small outputs.

PARAMETER DESCRIPTION
network_id

The network identifier.

TYPE: NetworkId

input_values

List of input values in sompi.

TYPE: Sequence[int]

output_values

List of output values in sompi.

TYPE: Sequence[int]

RETURNS DESCRIPTION
Optional[int]

int | None: The storage mass, or None if not applicable.