algokit_transact_ffi

Function encode_transactions

Source
pub fn encode_transactions(
    txs: Vec<Transaction>,
) -> Result<Vec<Vec<u8>>, AlgoKitTransactError>
Expand description

Encode transactions to MsgPack with the domain separation (e.g. “TX”) prefix.

§Parameters

  • txs - A collection of transactions to encode

§Returns

A collection of MsgPack encoded bytes or an error if encoding fails.