Skip to content

update_transaction_mass (Func)

Calculate and update the mass field of an unsigned transaction.

PARAMETER DESCRIPTION
network_id

The network identifier.

TYPE: NetworkId

tx

The transaction to update.

TYPE: Transaction

minimum_signatures

Minimum signatures per input (default: 1).

TYPE: Optional[int] DEFAULT: None

RETURNS DESCRIPTION
bool

True if mass is within limits and was updated, False if too large.

TYPE: bool

RAISES DESCRIPTION
Exception

If mass calculation fails.