EEVM.Transaction.Envelope (eevm v0.1.0)

Copy Markdown View Source

Transaction envelope encoding/decoding for legacy and typed transactions.

Summary

Functions

Decode a transaction from wire format.

Encode a transaction to its wire format (binary).

Functions

decode(encoded)

@spec decode(binary()) :: {:ok, EEVM.Transaction.t()} | {:error, atom()}

Decode a transaction from wire format.

encode(tx)

@spec encode(EEVM.Transaction.t()) :: binary()

Encode a transaction to its wire format (binary).