Skip to content

GeneratorSummary (Class)

A class containing a summary produced by transaction Generator.

This class contains the number of transactions, the aggregated fees, the aggregated UTXOs and the final transaction amount that includes both network and QoS (priority) fees.

See Also

create_transactions, Generator

fees property

fees: int

The total fees across all generated transactions in sompi.

final_amount property

final_amount: Optional[int]

The final transaction amount in sompi, or None if not applicable.

final_transaction_id property

final_transaction_id: Optional[str]

The ID of the final transaction, or None if not yet generated.

mass property

mass: int

The total mass of the generated transactions.

network_id property

network_id: str

The network id used for generation.

network_type property

network_type: str

The network type used for generation.

stages property

stages: int

The number of generated stages.

transactions property

transactions: int

The number of transactions generated.

utxos property

utxos: int

The total number of UTXOs consumed.

__eq__

__eq__(other: GeneratorSummary) -> bool

to_dict

to_dict() -> dict

Get a dictionary representation of the GeneratorSummary.

RETURNS DESCRIPTION
dict

the GeneratorSummary in dictionary form.

TYPE: dict