algokit_transact_ffi

Function estimate_transaction_size

Source
pub fn estimate_transaction_size(
    transaction: Transaction,
) -> Result<u64, AlgoKitTransactError>
Expand description

Return the size of the transaction in bytes as if it was already signed and encoded. This is useful for estimating the fee for the transaction.