# `EEVM.Transaction.Envelope`
[🔗](https://github.com/mw2000/eevm/blob/main/lib/eevm/transaction/envelope.ex#L1)

Transaction envelope encoding/decoding for legacy and typed transactions.

# `decode`

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

Decode a transaction from wire format.

# `encode`

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

Encode a transaction to its wire format (binary).

---

*Consult [api-reference.md](api-reference.md) for complete listing*
