getTransactionVersionDecoder

function getTransactionVersionDecoder(): VariableSizeDecoder<TransactionVersion>;

Returns a decoder that you can use to decode a byte array representing a TransactionVersion.

When the byte at the current offset is determined to represent a legacy transaction, this decoder will return 'legacy' and will not advance the offset.

Returns

VariableSizeDecoder<TransactionVersion>

On this page