Function transaction_size

Source
pub fn transaction_size<T: Borrow<Instruction>>(
    ixs: &[T],
    is_versioned_transaction: bool,
    lookup_table: Option<&HashSet<Pubkey>>,
    lookup_table_addresses: usize,
) -> usize
Expand description

Estimated the size of the result transaction.

Based on the docs of Solana Transactions, and referring to the implementation of @pythnetwork/solana-utils.