Skip to content

FeeCalculator⚓︎

calculate_mosaic_rental_fee() ⚓︎

FeeCalculator.calculate_mosaic_rental_fee

Calculates the minimum required mosaic rental fee.

calculate_namespace_rental_fee(is_root) ⚓︎

FeeCalculator.calculate_namespace_rental_fee

Calculates the minimum required namespace rental fee. When is_root is True, calculates the root namespace fee. Otherwise, calculates the child namespace fee.

calculate_transaction_fee(transaction, mosaic_information_lookup=None) ⚓︎

FeeCalculator.calculate_transaction_fee

Calculates the minimum required transaction fee for a transaction. mosaic_information_lookup looks up mosaic information ({supply, divisibility}) given mosaic identifier. When a function, mosaic identifier will be passed as parameter. When an object map, fully qualified mosaic identifier will be used as an index. When None, this function will be unable to calculate fees for custom mosaic transfers.