Function zenith_types::decode_txns

source ยท
pub fn decode_txns<C>(block_data: impl AsRef<[u8]>) -> Vec<C::Tx>
where C: Coder,
Expand description

Decode transactions.

A transaction is an RLP-encoded list of EIP-2718-encoded transaction envelopes.

The function is generic over the coder type, which is used to decode the transactions. This allows for different transaction types to be decoded using different coders.