# `Ethers.Transaction.Legacy`
[🔗](https://github.com/ExWeb3/elixir_ethers/blob/v0.6.12/lib/ethers/transaction/legacy.ex#L1)

Legacy transaction struct and implementation of Transaction.Protocol.

# `t`

```elixir
@type t() :: %Ethers.Transaction.Legacy{
  chain_id: non_neg_integer() | nil,
  gas: non_neg_integer(),
  gas_price: non_neg_integer(),
  input: binary(),
  nonce: non_neg_integer(),
  to: Ethers.Types.t_address() | nil,
  value: non_neg_integer()
}
```

Legacy transaction type (Type-0) incorporating the following fields:
- nonce: Transaction sequence number for the sending account
- gas_price: Price willing to pay for each unit of gas (in wei)
- gas: Maximum number of gas units willing to pay for
- to: Recipient address or nil for contract creation
- value: Amount of ether to transfer in wei
- input: Transaction data payload, also called 'data'
- chain_id: Network ID from [EIP-155](https://eips.ethereum.org/EIPS/eip-155), defaults to nil for legacy

---

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