# `Cartouche.Wei`
[🔗](https://github.com/zenhive/cartouche/blob/main/lib/cartouche/wei.ex#L1)

Conversions between Ethereum denominations and wei.

# `to_wei`

```elixir
@spec to_wei(non_neg_integer() | {non_neg_integer(), :wei | :gwei}) ::
  non_neg_integer()
```

Converts a number to wei, possibly from gwei, etc.

## Examples

    iex> Cartouche.Wei.to_wei(100)
    100

    iex> Cartouche.Wei.to_wei({100, :gwei})
    100000000000

---

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